forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roachpb/server: add new endpoint for getting a table's index stats
Partially addresses cockroachdb#67647 Previously, we had an RPC endpoint for retrieving all index usage statistics. However, this endpoint should only be used for internal purposes. We needed an endpoint that can be exposed to the frontend, for use in the Index Stats table (which will be created in a following commit). Hence, this commit creates a new RPC endpoint and functions that read the required index usage statistics directly from the database using SQL. Instead of returning all index usage statistics, we only retrieve the indexes for a specified database and table. Release note (api change): Add new api endpoint for getting a table's index statistics.
- Loading branch information
1 parent
eb026ff
commit 9f0bd08
Showing
9 changed files
with
1,676 additions
and
518 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.