8000 🚀 Enhancement: Bulk delete · Issue #8758 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🚀 Enhancement: Bulk delete #8758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
Aarush-Acharya opened this issue Oct 4, 2024 · 3 comments
Closed
2 tasks done

🚀 Enhancement: Bulk delete #8758

Aarush-Acharya opened this issue Oct 4, 2024 · 3 comments
Labels
enhancement New feature or request product / databases Fixes and upgrades for the Appwrite Database.

Comments

@Aarush-Acharya
Copy link

🔖 Enhancement description

There should be a function inside the Database Class in client side sdks, that takes in the databaseID, collectionID and a query then will delete all the documents in the collection that matches the query.

Right now to achieve this functionality requests are sent to different endpoint of the server from client. One request to listAllDocuments with the query and then running a for loop on the list and making request to deleteDocument endpoint for each document in the list

the input parameter structure of this function is similar to that of the listAllDocuments function, listallDocuments just lists the documents that match the query while, deleteAllDocuments() will delete the documents that match the query

🎤 Pitch

I believe just to delete documents based on a query should not cost one request just to fetch the documents that satisfy the query, then individually make requests to delete a particular document

This heavy methodology could easily be lightened, if there were to exist an endpoint that deletes documents based on a query. So the extra time that the request takes to reach the server for deletion of a document will be saved

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@Aarush-Acharya Aarush-Acharya added the enhancement New feature or request label Oct 4, 2024
@asmit27rai
Copy link
asmit27rai commented Oct 6, 2024

@Aarush-Acharya @tomer @sesam i want to work on this issue.
Please Assign it to me.

@stnguyen90
Copy link
Contributor

@asmit27rai, if you're looking to contribute, please look for issues labeled with "good first issue" or "help wanted". Those will be the best ones to pick up.

@stnguyen90 stnguyen90 added the product / databases Fixes and upgrades for the Appwrite Database. label Oct 18, 2024
@stnguyen90 stnguyen90 changed the title 🚀 Enhancement: Delete on Query 🚀 Enhancement: Bulk delete Oct 18, 2024
@stnguyen90
Copy link
Contributor
stnguyen90 commented Oct 18, 2024

@Aarush-Acharya, thanks for creating this issue! 🙏🏼 This is very similar to #3520 so I think it would be best if you added a 👍🏼 in that issue and commented with your use case.

For now, I'm going to close this as a duplicate.

@stnguyen90 stnguyen90 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request product / databases Fixes and upgrades for the Appwrite Database.
Projects
None yet
Development

No branches or pull requests

3 participants
0