Skip to content

Commit d21f6a7

Browse files
two changes from Becca's feedback
1 parent 8949a08 commit d21f6a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/current/v25.4/troubleshoot-query-plan-regressions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ You might not be certain that any particular SQL statement has had a query plan
3232

3333
If you observe that your application is responding more slowly than usual, and this behavior hasn't been explained by recent changes to table schemas or data, or by changes to cluster workloads, it's worth considering a query plan regression.
3434

35-
If application activity slows at a particular time of day, note the time interval so that you can isolate SQL statements that tend to run in that interval.
35+
If application performance slows at a particular time of day, note the time interval so that you can isolate SQL statements that tend to run in that interval.
3636

3737
If instead the latency is associated with a particular action (for example, adding a new user), note the action. Then search through your application's codebase to isolate SQL queries associated with that action.
3838

@@ -124,6 +124,8 @@ It's possible that the new index is well-chosen but that the schema change trigg
124124

125125
If you suspect that the query plan change is the cause of the latency increase, and you suspect that the query plan changed due to stale statistics, you may want to [manually refresh the statistics for the table]({% link {{ page.version.version }}/create-statistics.md %}#examples).
126126

127+
You may also want to consider the rare case in which sampling for [histogram]({% link {{ page.version.version }}/cost-based-optimizer.md %}#control-histogram-collection) collection missed important values that would impact planning. You might want to increase the [number of rows sampled for histograms]({% link {{ page.version.version }}/cluster-settings.md %}#setting-sql-stats-histogram-samples-count) before refreshing the table statistics.
128+
127129
#### Determine if a literal in the SQL statement has changed
128130

129131
If the SQL statement fingerprint contains placeholder values ("_"), it's possible that a change in that literal is responsible for a query plan regression. This is also worth considering in the case of [multiple valid query plans](#multiple-valid-query-plans), if a change in the distribution of plans has led to a higher average execution time.

0 commit comments

Comments
 (0)