简体   繁体   中英

Does 1 mb size limit apply to a sub collection in inside a document in Firestore?

If I create a sub collection in certain document would this sub collection and its nested documents have the size limit of the parent document of that sub-collection? Or once a sub-collection gets created a new limit for its documents is available? In other words does firestore regard a sub collection as a part of a parent document regarding size?

If you create a sub-collection under a document, that sub-collection doesn't count towards the 1 MiB limitation of the document. Besides that, all documents within that sub-collection have their own 1 MiB maximum limitation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM