-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Reduce SaveChanges roundtrips #27713
Conversation
The secondary sort is very important to prevent deadlocks in concurrency scenarios. This might also mean that the same-table edges would also need to be batch-breaking. I was thinking that |
Can you give a concrete example for the secondary sort, so i know what it's about? Sure, we could expose the extra bool flag batch boundary. Another idea is to do the secondary sort inside the Multigraph, before appending the new roots to the batch. |
8c99af0
to
7751ac1
Compare
609fe1e
to
d12b383
Compare
New version up @AndriySvyryd. Some additional comments:
For the record, this improves the followings scenarios:
|
d12b383
to
156cbcc
Compare
Hello @roji! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Apologies, while this PR appears ready to be merged, I've been configured to only merge when all checks have explicitly passed. The following integrations have not reported any progress on their checks and are blocking auto-merge:
These integrations are possibly never going to report a check, and unblocking auto-merge likely requires a human being to update my configuration to exempt these integrations from requiring a passing check. Give feedback on thisFrom the bot dev teamWe've tried to tune the bot such that it posts a comment like this only when auto-merge is blocked for exceptional, non-intuitive reasons. When the bot's auto-merge capability is properly configured, auto-merge should operate as you would intuitively expect and you should not see any spurious comments. Please reach out to us at fabricbotservices@microsoft.com to provide feedback if you believe you're seeing this comment appear spuriously. Please note that we usually are unable to update your bot configuration on your team's behalf, but we're happy to help you identify your bot admin. |
This is a draft for allowing batching in more cases by only applying a batch boundary for foreign keys where a principal key property is database-generated. There's still work and failing tests, but it seems like a good point to get feedback on the general approach.
See tests BatchCommands_does_not_create_batch_without_principal_key_database_generation, BatchCommands_creates_batch_with_principal_key_database_generation, Delete_Add_with_same_entity_types.
Closes #20664