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

Connection level bulk copy metadata caching #2464

Merged
merged 9 commits into from
Jul 5, 2024

Conversation

tkyc
Copy link
Member

@tkyc tkyc commented Jul 2, 2024

  • Added connection level cache for destination column metadata.
  • Added cacheBulkCopyMetadata boolean connection property.
    • true: driver will cache the metadata at the connection level
    • false: driver will not do any connection level metadata caching

Caveat: If the table changes in any way (column definition, new columns, deleted columns, etc..), then during a bulk copy the operation may or may not error out when caching is enabled. Just a note that there could be unintended consequences without warning.

barryw-mssql
barryw-mssql previously approved these changes Jul 3, 2024
@Jeffery-Wasty Jeffery-Wasty added this to the 12.7.1 milestone Jul 3, 2024
barryw-mssql
barryw-mssql previously approved these changes Jul 4, 2024
barryw-mssql
barryw-mssql previously approved these changes Jul 5, 2024
Jeffery-Wasty
Jeffery-Wasty previously approved these changes Jul 5, 2024
@tkyc tkyc dismissed stale reviews from Jeffery-Wasty and barryw-mssql via cbcfa45 July 5, 2024 17:39
@Jeffery-Wasty
Copy link
Contributor

@microsoft-github-policy-service agree company="Microsoft"

Jeffery-Wasty
Jeffery-Wasty previously approved these changes Jul 5, 2024
@tkyc tkyc dismissed Jeffery-Wasty’s stale review July 5, 2024 17:49

The merge-base changed after approval.

barryw-mssql
barryw-mssql previously approved these changes Jul 5, 2024
Jeffery-Wasty
Jeffery-Wasty previously approved these changes Jul 5, 2024
@tkyc tkyc dismissed stale reviews from Jeffery-Wasty and barryw-mssql July 5, 2024 17:54

The merge-base changed after approval.

Jeffery-Wasty
Jeffery-Wasty previously approved these changes Jul 5, 2024
barryw-mssql
barryw-mssql previously approved these changes Jul 5, 2024
@tkyc tkyc dismissed stale reviews from barryw-mssql and Jeffery-Wasty July 5, 2024 17:59

The merge-base changed after approval.

@tkyc tkyc force-pushed the bulkcopy-conn-lvl-cache branch from cbcfa45 to 77f8f78 Compare July 5, 2024 18:15
@Jeffery-Wasty Jeffery-Wasty merged commit a3a9ca7 into main Jul 5, 2024
17 checks passed
@tkyc tkyc deleted the bulkcopy-conn-lvl-cache branch July 5, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed/Merged PRs
Development

Successfully merging this pull request may close these issues.

5 participants