Neil Kumar
06/14/2025, 11:27 PMFanis Tharropoulos
06/16/2025, 7:26 AMNeil Kumar
06/16/2025, 3:10 PMHarpreet Sangar
06/16/2025, 3:14 PMIf I delete the collection_A document that the documents in collection_B refer to, but I don't delete them in collection_B, will this cause a problem?We cascade delete all the documents that reference a particular document.
For my last question, I was wondering about a schema change -- if I drop the reference definition from the schema, will it take a long time?No. It would take the exact same time as if deleting a normal field.
Neil Kumar
06/16/2025, 3:15 PMNeil Kumar
06/16/2025, 3:16 PMHarpreet Sangar
06/16/2025, 3:19 PMFor a large collection, does dropping a column take a long time? Is the collection blocked during during this time?I'm not sure, I'll let you know.
if I drop the join/reference condition from the schema, I should be able to delete without dealing with the cascade delete happening?Cascade deletion happens when you delete a document that is referenced in some other collection. Say collection_A document is deleted in you case. When you drop the reference field (collection_B in your case), no cascade deletion will be triggered.
Harpreet Sangar
06/17/2025, 5:49 AMFor a large collection, does dropping a column take a long time? Is the collection blocked during during this time?During this time the collection will only be blocked for write operations.
Neil Kumar
06/25/2025, 2:52 AM