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 master branch #31

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

Conversation

t104360088
Copy link

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

@t104360088 t104360088 changed the title Use batch to delete firestore's data Use batch to delete firestore's data in master branch Mar 25, 2021
Copy link

@wayjake wayjake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

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.

2 participants