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

perf(core): implement bulk deletes #757

Merged
merged 1 commit into from Aug 19, 2020
Merged

perf(core): implement bulk deletes #757

merged 1 commit into from Aug 19, 2020

Conversation

B4nan
Copy link
Member

@B4nan B4nan commented Aug 19, 2020

UoW will now group change sets based on the type and entity. Instead of ordering
all the change sets based on the type and entity, we can now travers those groups
based on the commit order.

em.remove(book1);
em.remove(book2);
em.remove(book3);

// flushing will fire only one delete query like `delete from book where id in (1, 2, 3)`
await em.flush();

Related: #732

UoW will now group change sets based on the type and entity. Instead of ordering
all the change sets based on the type and entity, we can now travers those groups
based on the commit order.

Related: #732
@B4nan B4nan merged commit d83f648 into master Aug 19, 2020
@B4nan B4nan deleted the bulk-delete branch August 19, 2020 08:06
This was referenced Aug 19, 2020
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

Successfully merging this pull request may close these issues.

None yet

1 participant