-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add Cosmos bulk execution #37033
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
+684
−183
Merged
Add Cosmos bulk execution #37033
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c6f9282
Add BulkExecutionEnabled to CosmosDbContextOptionsBuilder
JoasE 47a6773
Remove blank line
JoasE 841868e
Update docs
JoasE 29768f1
Merge branch 'main' of https://github.com/dotnet/efcore into feature/…
JoasE 79793d6
Merge branch 'main' of https://github.com/dotnet/efcore into feature/…
JoasE e633d42
WIP
JoasE 423732b
Add warning
JoasE a3dae7a
Move to SharedStoreFixtureBase for CosmosTransactionalBatchTest
JoasE 1127f4b
Add some tests and fix Always behaviour
JoasE 9d8eaf5
Fix empty savechanges
JoasE e5186d3
Add more tests
JoasE 39ace79
Cleanup
JoasE 5451acd
Make public api virtual
JoasE f8d12d6
Fix small mistake in test ConcurrencyContext CreateContext
JoasE 02a6c44
Apply suggestions from code review
JoasE 55dcd35
Reorganize tests
JoasE 0f7535c
Small comment fixes
JoasE e255573
Update CosmosBulkExecutionTest.cs
JoasE bdc54be
Configure warning to throw by default
JoasE File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
src/EFCore.Cosmos/Diagnostics/AutoTransactionBehaviorEventData.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| namespace Microsoft.EntityFrameworkCore.Cosmos.Diagnostics; | ||
|
|
||
| /// <summary> | ||
| /// A <see cref="DiagnosticSource" /> event payload class for Cosmos events related to AutoTransactionBehavior | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// See <see href="https://aka.ms/efcore-docs-diagnostics">Logging, events, and diagnostics</see> for more information and examples. | ||
| /// </remarks> | ||
| public class AutoTransactionBehaviorEventData : EventData | ||
| { | ||
| /// <summary> | ||
| /// Constructs the event payload. | ||
| /// </summary> | ||
| /// <param name="eventDefinition">The event definition.</param> | ||
| /// <param name="messageGenerator">A delegate that generates a log message for this event.</param> | ||
| /// <param name="autoTransactionBehavior">The AutoTransactionBehavior that was used.</param> | ||
| public AutoTransactionBehaviorEventData( | ||
| EventDefinitionBase eventDefinition, | ||
| Func<EventDefinitionBase, EventData, string> messageGenerator, | ||
| AutoTransactionBehavior autoTransactionBehavior) : base(eventDefinition, messageGenerator) | ||
| { | ||
| AutoTransactionBehavior = autoTransactionBehavior; | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// The AutoTransactionBehavior that was used. | ||
| /// </summary> | ||
| public virtual AutoTransactionBehavior AutoTransactionBehavior { get; } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
src/EFCore.Cosmos/Diagnostics/CosmosTransactionalBatchExecutedEventData.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.