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?
CodePudding user response:
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.