This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
since firebase doesn't delete a subcollection automatically once the document is deleted, I'm thinking of a workaround using an "admin" app.
- I have the documents have a field called "marked_for_deletion" with a default value of false.
The view check for this field and if it's true, doesn't show them
When the user deletes the document, set this field true.
Then at a later time, my other app deletes all the documents recursively or iteratively.
this way, I avoid the performance hit in my original app.
What's wrong with my idea? It's probably wrong, but I don't know why.
Edit: Or I could just leave the documents marked for deletion as is and ignore them.
Subreddit
Post Details
- Posted
- 7 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Firebase/co...