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.
Browse files
Browse the repository at this point in the history
71896: sql/server: add function to reset index usage stats r=lindseyjin a=lindseyjin 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. ![image](https://user-images.githubusercontent.com/29153209/138530064-31eb8bbf-aafc-4e5f-995c-bd575b0ba60a.png) 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. 72042: kvserver: batch intents in `MVCCIterator.CheckForKeyCollisions` r=nvanbenschoten a=erikgrinaker `MVCCIterator.CheckForKeyCollisions()` is used by `AddSSTable` to check for key collisions when `DisallowShadowing` is set. If it encounters any intents, it returns `WriteIntentError` to resolve these before retrying. However, this returned an error for each individual intent, which has quadratic performance. This patch changes it to instead collect and return a batch of intents, for more efficient intent resolution. The batch size is controlled by the existing setting `storage.mvcc.max_intents_per_error`, which defaults to 5000. Resolves cockroachdb#71697. Release note (performance improvement): Improved `IMPORT INTO` performance in cases where it encounters large numbers of unresolved write intents. 72136: opt: fix regression in many-columns-and-indexes microbenchmark r=rytaft a=rytaft This commit fixes a regression that was due to unnecessary computation of interesting orderings. We now only compute interesting orderings when it may be beneficial for planning purposes. Fixes cockroachdb#72001 Release note (performance improvement): Fixed a performance regression in planning that could occur for simple queries on schemas with a large number of indexes. Co-authored-by: Lindsey Jin <[email protected]> Co-authored-by: Erik Grinaker <[email protected]> Co-authored-by: Rebecca Taft <[email protected]>
- Loading branch information
Showing
32 changed files
with
1,565 additions
and
600 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
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.