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.
sql/server: add function to reset index usage stats
Previously, there was no existing way to clear index usage statistics from the crdb_internal.index_usage_statistics table. This commit adds a function that enables developers to clear index usage metrics using RPC fanout to reach all nodes in a cluster. We have also added a new metadata field that tracks the last reset time. Currently, this functionality can be accessed via the SQL shell, and is not yet accessible from the frontend console. Release note (sql change): Add function crdb_internal.reset_index_usage_stats() to clear index usage stats. This can be invoked from the SQL shell.
- Loading branch information
1 parent
10e1fd9
commit f85b8ff
Showing
18 changed files
with
1,398 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
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.