Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Use batch to delete firestore's data in solution branch #32

Open
wants to merge 1 commit into
base: solution
Choose a base branch
from

Conversation

t104360088
Copy link

This is the same as PR #31 , but for solution branch

Hi, I found that the way to delete room data in the code is one-by-one deletion, which will make multiple connections to firestore, causing the deletion speed to be slow.
Therefore, I use the batch deletion method and submit the batch operation at the end, which is much faster , I hope to contribute to the project to make it better.

The following is the link to the data deleted by firestore in batch:
https://firebase.google.com/docs/firestore/manage-data/delete-data?authuser=0#node.js_2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant