-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: add MVCC steps and seeks to EXPLAIN ANALYZE
This commit adds 4 new fields to EXPLAIN ANALYZE for each operator that reads data from disk: MVCC steps and seeks, as well as MVCC "internal" steps and seeks when verbose mode is toggled. MVCC steps is the number of times that the underlying storage iterator stepped forward during the work to serve the operator's reads, including stepping over MVCC keys that were too old for user in a scan. MVCC seeks is the number of times that the underlying storage iterator jumped (seeked) to a different data location. Seeks are more expensive than steps. Comparing MVCC steps to KVs read helps indicate to a user when a scan might be slower than expected due to MVCC garbage in the middle of the keyspace being scanned. A high number of MVCC seeks might also indicate a lot of skipped MVCC garbage, especially when doing a sequential scan. Release note (sql change): EXPLAIN ANALYZE now contains more information about the MVCC behavior of operators that scan data from disk. See commit message for more details.
- Loading branch information
1 parent
f757393
commit 62a6ce1
Showing
26 changed files
with
1,298 additions
and
557 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.