Skip to content

StatementStatistics: improve lock contention performance #106789

@j82w

Description

@j82w
  1. This lock for the stats object is taken for the rest of the method. The lock should be released here before the insights method is called.

  2. Any computation like converting to string and getting the percentiles should be done before taking the lock to reduce the time the lock needs to be held.

  3. Remove unnecessary set as it is part of the key.

Jira issue: CRDB-29716

Metadata

Metadata

Assignees

Labels

A-cluster-observabilityRelated to cluster observabilityC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions