sql: add row count estimates to show tables #48755
Labels
A-sql-ui
Why is my query slow?
A-webui-queryperf
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
C-performance
Perf of queries or internals. Solution not expected to change functional behavior.
It's important for developers to know the approximate table size in rows when optimizing query performance. Currently, you can't see table row size estimates in CockroachDB without running something like:
We should add estimated row counts to show tables and to the ERD proposed in #48418.
To avoid running the equivalent of select count (*) everytime we run SHOW TABLES we could use the last value collected from automatic statistics.
The text was updated successfully, but these errors were encountered: