Limitation to number of documents under one Collection in firebase firestore
Asked Answered
L

4

33

I am new to firebase firestore and searched, but could not find the limitation for the number of documents that can be handled under one collection. Can anybody help me out to know please.

Littoral answered 6/2, 2018 at 1:43 Comment(0)
C
87

firebaser here

There is no documented limit to the number of documents that can be stored in a Cloud Firestore collection. The system is designed to scale to huge data sets.

Checkroom answered 6/2, 2018 at 4:56 Comment(0)
M
13

There is no limitation on the number of documents in Firestore collection but it has a limitation of the size of the document. The maximum size of a document is roughly 1 MiB (1,048,576 bytes).

There are many more limits that are listed in the below link. Limits of firestore

Morrissey answered 16/1, 2020 at 6:34 Comment(0)
C
1

There is no document limit under one collection

Official documentation for clearness: Click here

But there is limitation in maximum depth of subcollections

Cistaceous answered 27/5, 2022 at 2:1 Comment(0)
D
0

It doesn't say.

However, you're allowed 1500 bytes for an id, which is approx 750 UTF-8 characters.

There are about 150,000 unicode characters.

That means there are approx 750^150000 possible ids, which is a number with about a million digits, so as good as infinite.

You'll run into other limits e.g. costs, before you get anywhere near that.

Ductile answered 27/3, 2024 at 13:53 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.