-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add index create_date to crdb_internal.table_indexes #72626
Comments
I suspect that there's more to fulfiling this user story than just tracking in the low-level SQL schema APIs. We've been bitten a bit in the past by not thinking through how we ultimately want to surface this in terms of the |
Thanks - I thought all information surfaced in crdb_internal is accessible by the console - @lindseyjin and @maryliag, mind chiming in? This information would be surfaced on the following page: https://www.figma.com/file/xdmwvnFQd6KkO9RJ0XLDH0/22.1_SQL-obsrv_query-performance?node-id=3498%3A33376 |
We don't have an API for the index usage yet, @lindseyjin is working on this and the API will return the content of crdb_internal.index_usage_statistics so it can be displayed on the console. We use the values on the table indexes to generate the list of indexes for the index_usage_statistics, so the new column for creation date can be used the same way |
Hi! I'm planning on creating a new API endpoint Although another option I do have is piggybacking off the current Table Details endpoint at |
Knowing when an index was created will help developers determine whether they should drop the index if there has been no reads on that index. If the index was created 'far' in the past with no reads, it's a definite signal to drop. If it was recently created, the developer may want to hold off until they run their workload to see if the index will be used. This would complement crdb_internal.index_usage_statistics.
Epic: CRDB-9075
The text was updated successfully, but these errors were encountered: