sql: implement virtual index on crdb_internal.{statement, transaction}_statistics
#69321
Labels
A-sql-observability
Related to observability of the SQL layer
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Currently
crdb_internal.{statement, transaction}_statistics
is implemented usinggenerator
for the virtual table. This causes us to issue queries that perform full table scan onsystem.{statement, transaction}_statistics
.Since we are mostly doing scan based on
aggregated_ts
time ranges, we should add support for virtual index. This can enable us to issue better queries and avoid full table scan.The text was updated successfully, but these errors were encountered: