On a , you must be an or a SQL user with the privilege on a database.
- The databases configured.
- The tables in each database and the indexes on each table.
- The grants assigned to each role and user.
- Index recommendations.
- Databases List Page: initial page that lists the databases on the cluster.
- Database Details Page
- Tables List Tab: lists tables in a database.
- Database Grants Tab: lists privileges on a database.
- Table Details Page
- Overview Tab: displays a table’s details.
- Table Grants Tab: lists privileges on a table.
- Indexes List Tab: lists indexes on a table with index recommendations and actions.
- Index Details Page: displays an index’s details with index recommendations.
Index recommendations
The Indexes List Tab of the Table Details Page shows recommendations to drop indexes based on index usage with a Drop index button. Admin users can click this to drop an unused index. The Index Details Page also shows recommendations to drop the selected index based on index usage. To configure the threshold for when CockroachDB will recommend that you drop an index due to low usage, change thesql.index_recommendation.drop_unused_duration cluster setting. The default value is 7 days.
Databases List Page
To view this page, click Databases in the left side navigation menu. The Databases List Page shows:- Whether automatic statistics collection is enabled for the cluster. The Auto stats collection indicator is on the top right.
- A list of the databases on the cluster.
Search and filter databases
By default, the Databases List Page displays up to 10 databases on page 1. If more than 10 databases exist, use the page navigation at the bottom of the page to display the additional databases. To search for specific databases, use the search field above the list table:- Enter a string in the search box.
-
Press
Enter. The list of databases is filtered by the string.
- Click the dropdown arrow.
- Select one or more nodes. You may need to scroll down for nodes in different regions. You may also type in the beginning of the node name to narrow the list. The list of databases is filtered by the nodes selected.
Refresh data
Thesystem.table_metadata table caches the necessary metadata of a table that populates the following:
- Databases List Page
- Tables List Tab of the Database Details Page
- Overview Tab of the Table Details Page
system.table_metadata table are:
obs.tablemetadata.automatic_updates.enabled(default:false) enables automatic updates of the table metadata cachesystem.table_metadata.obs.tablemetadata.data_valid_duration(default:20m0s) is the duration for which the data insystem.table_metadatais considered valid.
- Automatically: Set the cluster setting
obs.tablemetadata.automatic_updates.enabledtotrue. The frequency of refreshes is controlled by the cluster settingobs.tablemetadata.data_valid_duration. Automatic updates is disabled by default to avoid unnecessarily consuming resources. However, if you want databases and tables information immediately when you visit the corresponding page, then enable automatic updates. - Manually: When any user clicks the Refresh data icon button to the right of the Last refreshed indicator. If a refresh job has been triggered, the Refresh data icon button will be disabled and the hover text will display the time the job was started and the progress of the job.
- Additionally, when any user visits the Databases List Page, the Last refreshed timestamp is compared to the cluster setting
obs.tablemetadata.data_valid_duration. If the time since the Last refreshed timestamp exceeds theobs.tablemetadata.data_valid_duration, then a cache refresh is triggered.
Database Details Page
To view this page, click on a database name on the Databases List Page. The Database Details Page has two tabs: Tables and Grants.Tables List Tab
Click on the Tables tab of the Database Details Page to view a list of the tables in the selected database. You can refresh the data that is displayed on this page. Note: This also refreshes data on the Databases List Page. The following information is displayed for each table:Search and filter tables
By default, the Tables List Tab displays up to 10 tables of the selected database on page 1. If more than 10 tables exist, use the page navigation at the bottom of the page to display the additional tables. To search for specific tables, use the search field above the list table:- Enter a string in the search box.
-
Press
Enter. The list of tables is filtered by the string.
- Click the dropdown arrow.
- Select one or more nodes. You may need to scroll down for nodes in different regions. You may also type in the beginning of the node name to narrow the list. The list of tables is filtered by the nodes selected.
Database Grants Tab
Click on the Grants tab Database Details Page to show the privileges granted to users and roles on the database. The following information is displayed for each grantee:
For more details about grants and privileges, refer to
GRANT.
Table Details Page
To view this page, click on a table name on the Tables List Tab of the Database Details Page.Overview Tab
Click on the Overview tab of the Table Details Page to view the SQL statement used to create the table and other table details. The following information is displayed for the table:Last updated
The Last updated timestamp is the actual time the metadata was last refreshed for the selected table. When the refresh job runs to update thesystem.table_metadata table, if it encounters an error retrieving the metadata for the selected table, an error indicator will appear next to the Last updated timestamp and the error message will appear in the hover text.
Table Grants Tab
Click on the Grants tab of the Table Details Page to view the privileges granted to users and roles on the table. The following information is displayed for each grantee:
For more details about grants and privileges, refer to
GRANT.

