Add Create time as the default Last Used time for Index Stats table #73766
Labels
A-sql-console-general
SQL Observability issues on the DB console spanning multiple areas. Includes Cockroach Cloud Console
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Is your feature request related to a problem? Please describe.
Blocked by #72626
Currently, the Last Used column on the Index Stats table shows either Last Read or Last Reset, depending on whatever was more recent. If there is no Last Read or Last Reset timestamp, it simply displays "Never".
Describe the solution you'd like
Once index create time is added as a column to the
crdb_internal.index_usage_statistics
table, we want to show "Created" as the default value for the Last Used column, for when there is no Last Read or Last Reset time.Additional context
Refer to Figma mocks for more context: https://www.figma.com/file/xdmwvnFQd6KkO9RJ0XLDH0/22.1_SQL-obsrv_query-performance?node-id=3498%3A33376
Code pointer:
cockroach/pkg/ui/workspaces/cluster-ui/src/databaseTablePage/databaseTablePage.tsx
Line 217 in 406e0fe
Epic CRDB-9075
Jira issue: CRDB-11735
The text was updated successfully, but these errors were encountered: