Skip to content
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

[Feature Request] Delete Collections #213

Open
brcourt opened this issue Feb 1, 2023 · 1 comment
Open

[Feature Request] Delete Collections #213

brcourt opened this issue Feb 1, 2023 · 1 comment

Comments

@brcourt
Copy link

brcourt commented Feb 1, 2023

It would be nice to offload the task of querying items in a collection and then performing batch delete operations to ElectroDB. In a multi-tenant application, I model the tenant as a collection of entities (tenant-metadata, tenant-members, tenant-invitations, etc...), all of which would be deleted to remove a tenant. A simple helper would be a nice-to-have feature.

@tywalch
Copy link
Owner

tywalch commented Apr 3, 2024

The library avoid performing two part fetch/act actions (in this case query then batchWrite) to avoid abstractions that obscure atomic/non-atomic operations. DynamoDB is already a difficult database to build abstractions on top of, due to the wide variety of implementations seen in the wild, so with ElectroDB I try to focus on improving the DX of the core functionality so folks can use the library as a more effective building block.

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

No branches or pull requests

2 participants