简体   繁体   中英

Does Firestore TTL delete documents in subcollections?

I know that in Firestore deleting a document doesn't delete its sub-collections.

Does this hold true for documents deleted by the newly added TTL policies? The documentation doesn't state either way.

The documentation does explicitly state that this policy is defined for collection groups. A collection group refers to all of the documentation in collections with the same name . Subcollections with different names do not participate in a collection group. So you can be sure, based on the documentation, that a TTL configuration does not apply to subcollections with different names than the collection group where you establish the policy.

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