diff --git a/v19.2/cost-based-optimizer.md b/v19.2/cost-based-optimizer.md index 0d2faa109e7..b707937bcaf 100644 --- a/v19.2/cost-based-optimizer.md +++ b/v19.2/cost-based-optimizer.md @@ -22,7 +22,7 @@ The most important factor in determining the quality of a plan is cardinality (i The cost-based optimizer can often find more performant query plans if it has access to statistical data on the contents of your tables. This data needs to be generated from scratch for new tables, and regenerated periodically for existing tables. -By default, CockroachDB generates table statistics automatically as tables are updated. It does this [using a background job](create-statistics.html#view-statistics-jobs) that automatically determines which columns to get statistics on — specifically, it chooses: +By default, CockroachDB generates table statistics automatically when tables are [created](create-table.html), and as they are [updated](update.html). It does this [using a background job](create-statistics.html#view-statistics-jobs) that automatically determines which columns to get statistics on — specifically, it chooses: - Columns that are part of the primary key or an index (in other words, all indexed columns). - Up to 100 non-indexed columns.