-
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 keys read; seeks to EXPLAIN ANALYZE
This commit adds 2 new fields to EXPLAIN ANALYZE for each operator that reads data from disk: MVCC keys read, and MVCC seeks. MVCC keys read is a metric that counts the number of MVCC keys that were iterated to, including MVCC keys that were too old for use in a scan. MVCC seeks is a metric that counts the number of times that the MVCC iterator had to "jump" to a new data location. Comparing MVCC keys read 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
1627810
commit cd7beb4
Showing
24 changed files
with
1,106 additions
and
596 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.