Skip to content

Optimize entity deletions in multiple methods by batching operations into single transactions #7702

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

Merged
merged 1 commit into from
May 29, 2025

Conversation

atiq-bs23
Copy link
Contributor

Previously, entity deletions were executed one by one using individual async calls, which introduced unnecessary database round-trips. This PR optimizes the following methods to delete lists of entities in bulk within a single transaction:

DeleteProductAttributeValuePicturesAsync
DeleteProductCategoriesAsync
DeleteProductManufacturersAsync

This improves performance.

…ategories, and ProductManufacturers to use batch deletions in a single transaction instead of individual db calls
@atiq-bs23
Copy link
Contributor Author

@skoshelev

@skoshelev skoshelev merged commit 107a835 into nopSolutions:develop May 29, 2025
@skoshelev
Copy link
Contributor

Hi @atiq-bs23!

Thank you for your help

@atiq-bs23 atiq-bs23 deleted the optimize-multiple-methods branch May 29, 2025 16:01
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.

Optimize entity deletions in multiple methods by batching operations into single transactions
3 participants