Changed the scope of BULK_COPY_OPERATION_CACHE to connection.#2594
Merged
Changed the scope of BULK_COPY_OPERATION_CACHE to connection.#2594
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2594 +/- ##
============================================
+ Coverage 51.49% 51.50% +0.01%
+ Complexity 3993 3992 -1
============================================
Files 147 147
Lines 33690 33694 +4
Branches 5629 5630 +1
============================================
+ Hits 17348 17355 +7
+ Misses 13902 13882 -20
- Partials 2440 2457 +17 ☔ View full report in Codecov by Sentry. |
Contributor
|
More importantly, it solves a problem when a driver instance is used to connect to different SQLServers. Tables from different databases could end up in the same static cache. |
David-Engel
approved these changes
Jan 29, 2025
lilgreenbird
approved these changes
Feb 4, 2025
Jeffery-Wasty
approved these changes
Feb 10, 2025
tkyc
approved these changes
Feb 12, 2025
Contributor
Author
|
ADO tests are good for this PR |
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description:
The BULK_COPY_OPERATION_CACHE should be defined at connection scope and not global scope to avoid incorrect cache hits across connections and potential OOM issues.
Testing: