-
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: SHOW CREATE takes advantage of virtual index
This commit updates the implementation of SHOW CREATE so that it doesn't have to filter every single table in the database. It does 2 things: 1. Stop outputting zone configs in crdb_internal.create_statements 2. Start outputting partitioning status in the above instead 3. Get zone configs from the SQL query in SHOW CREATE with a subquery from the zone configs table and join together in SQL This strategy makes it possible to give crdb_internal.create_statements a virtual index. Now SHOW CREATE is really fast! Release note (performance improvement): SHOW CREATE is much more efficient
- Loading branch information
1 parent
0cfb4f4
commit 4386d16
Showing
5 changed files
with
103 additions
and
151 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
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