Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firestore - How many Documents can I retrieve in one Collection request?

I wasn't able to find anywhere the limit to the number of documents I can get in one Collection get. Say I have 1,000,000,000 docs... Is that even possible? And if I tried to get them all, would it actually give me an array of 1,000,000,000?

like image 447
Jus10 Avatar asked Jan 18 '18 16:01

Jus10


1 Answers

There's essentially no limit to the number of documents you can store in a collection or retrieve in one request.

That said, there are plenty of reasons why retrieving a trillion documents at once would be a bad idea -- things like cost, bandwidth and free space on the client would start to factor in here. So if you really want to store a trillion documents in a collection, you probably want to add a limit to your queries.

like image 137
Todd Kerpelman Avatar answered Oct 16 '22 08:10

Todd Kerpelman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!