Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: add computed columns to crdb_internal persisted sql stats views
Follows #99042, #99148. This commit adds the following computed columns to both crdb_internal.statement_statistics_persisted and crdb_internal.transaction_statistics_persisted views: -execution_count -service_latency -cpu_sql_nanos -contention_time -total_estimated_execution_time -p99_latency These computed columns are indexed in the system tables from which these views are created. Epic: None Release note: The crdb_internal.statement_statistics_persisted and crdb_internal.transaction_statistics_persisted views now include computed columns, to optimize the performance of frequently-queried expressions.
- Loading branch information