-
Notifications
You must be signed in to change notification settings - Fork 2.3k
vdiff: do not sort by table name in summary, it is not necessary #18972
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
Conversation
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Nick Van Wiggeren <[email protected]>
3b6bfd4 to
d43be9a
Compare
Signed-off-by: Nick Van Wiggeren <[email protected]>
d43be9a to
b8c0f98
Compare
Signed-off-by: Nick Van Wiggeren <[email protected]>
Signed-off-by: Nick Van Wiggeren <[email protected]>
02bbeff to
c93a71c
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18972 +/- ##
==========================================
- Coverage 69.77% 69.77% -0.01%
==========================================
Files 1608 1608
Lines 214908 214942 +34
==========================================
+ Hits 149953 149967 +14
- Misses 64955 64975 +20 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mattlord
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks, @nickvanw! ❤️
|
Makes sense to me, nice catch! 🚀 |
) Signed-off-by: Nick Van Wiggeren <[email protected]>
) Signed-off-by: Nick Van Wiggeren <[email protected]>
… necessary (#18972) (#18977) Signed-off-by: Nick Van Wiggeren <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
… necessary (#18972) (#18978) Signed-off-by: Nick Van Wiggeren <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
Description
Removes the unnecessary
ORDER BY table_nameclause from the VDiff summary query. This ordering was causing MySQL to perform a filesort on potentially large JSON report blobs, leading to "Out of sort memory" errors when VDiffs involve many tables. The sort provided no value since the results are stored in Go maps which have non-deterministic iteration order anyway.I'm backporting this as it can effectively break certain VDiff commands without reconfiguring MySQL unnecessarily.
Related Issue(s)
Checklist
AI Disclosure
AI was not used to remove the ORDER BY clause, though it's opinion was asked on whether that was a safe change to make, as well as to generate the commit message.