Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SHOW TABLES requires a lookup of table stats. This lookup can experience contention with the job that writes new stats. In multi-region clusters, the stats-writing job can take seconds, so this is likely. In 21.1, we likely will remove the stats from the SHOW TABLES output by default, and introduce a WITH STATISTICS modifier. The smaller change here is meant for backporting to 20.2 touches cockroachdb#58189 Release note (performance improvement): The SHOW TABLES command could experience undesirable latency due to contention when looking up table statistics. Now the contention is reduced.
- Loading branch information