-
Notifications
You must be signed in to change notification settings - Fork 438
Add order Hints for Bulk Copy operations #2701
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
Open
divang
wants to merge
31
commits into
main
Choose a base branch
from
user/divang/order_hints_bulk_copy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2701 +/- ##
============================================
+ Coverage 51.50% 51.55% +0.05%
- Complexity 4050 4064 +14
============================================
Files 149 149
Lines 34136 34177 +41
Branches 5700 5707 +7
============================================
+ Hits 17581 17620 +39
- Misses 14076 14086 +10
+ Partials 2479 2471 -8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
machavan
approved these changes
Jul 10, 2025
muskan124947
approved these changes
Jul 11, 2025
Ananya2
approved these changes
Jul 11, 2025
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
This PR adds support for specifying order hints during Bulk Copy operations in the Microsoft JDBC Driver for SQL Server. Order hints can be used to optimize data loading performance by informing SQL Server about the order of the incoming data, potentially improving index maintenance and query execution plans.
Changes
Motivation
Enabling order hints helps users optimize large data transfers when loading sorted data into SQL Server tables, improving performance in ETL and data warehousing scenarios.
Testing
Notes
Test Code
Performance result
FINAL 10-MINUTE PERFORMANCE RESULTS
Total iterations: 20
Rows per iteration: 25000
Total rows processed: 1500000
COMPREHENSIVE PERFORMANCE STATISTICS
Baseline (No Hints) : avg=8241.9 ms, min=8042 ms, max=9339 ms, stddev=300.9 ms, samples=20
Optimal (Correct Hints): avg=8173.9 ms, min=7998 ms, max=8746 ms, stddev=196.4 ms, samples=20
PERFORMANCE COMPARISON
Optimal is 0.8% FASTER than baseline