-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add VEXPLAIN KEYS for improved sharding key selection #16830
Conversation
Signed-off-by: Andres Taylor <[email protected]>
Signed-off-by: Andres Taylor <[email protected]>
Signed-off-by: Andres Taylor <[email protected]>
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
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16830 +/- ##
==========================================
+ Coverage 69.41% 69.45% +0.03%
==========================================
Files 1570 1571 +1
Lines 202945 203004 +59
==========================================
+ Hits 140880 140993 +113
+ Misses 62065 62011 -54 ☔ View full report in Codecov by Sentry. |
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!
Signed-off-by: Andres Taylor <[email protected]>
Signed-off-by: Andres Taylor <[email protected]>
Signed-off-by: Andres Taylor <[email protected]>
Signed-off-by: Andres Taylor <[email protected]>
562e4a6
to
ac6138e
Compare
Description:
This PR introduces a new VEXPLAIN type called KEYS, designed to assist developers and database administrators in making informed decisions about sharding keys. The VEXPLAIN KEYS command provides a concise summary of the query structure, highlighting columns used in joins, filters, and grouping operations.
Key features:
The output focuses on the structural elements of the query that are most relevant to sharding decisions, without executing the query or providing execution statistics.
Example usage:
This output provides valuable insights for sharding decisions:
By analyzing this information across multiple queries, developers can make more informed decisions about sharding strategies, potentially improving query performance and data distribution.
Related Issue(s)
#16768
Docs: vitessio/website#1853
Checklist