Skip to content

Commit

Permalink
Revert "content/en/docs/19.0: document QueryCache{Hits,Misses} stats (#…
Browse files Browse the repository at this point in the history
…1663)"

This reverts commit d7e2589.
  • Loading branch information
maxenglander committed Feb 12, 2024
1 parent 678e7d8 commit 0bbd279
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,9 @@ There are other internal pools used by vttablet that are not very consequential.

The above three variables are table acl stats. They are broken out by table, plan and user.

#### `QueryCacheCapacity`, `QueryCacheEvictions`, `QueryCacheHits`, `QueryCacheMisses`, `QueryCacheSize`
#### `QueryPlanCacheSize`

VTTablet maintains a cache of query plans, and instruments cache usage in `QueryCache*` stats.

If the application does not make good use of bind variables, `QueryCacheSize` will reach the value of `QueryCacheCapacity`, at which point `QueryCacheEvictions` would increase. Monitoring the current `QueryCacheSize`will give you a clue about where the misuse is happening.

`QueryCacheHits` and `QueryCacheMisses` provide visibility, respectively, into how many queries are being sped up by the cache or else have to fall back to the slower path of query parsing and planning.
If the application does not make good use of bind variables, this value would reach the QueryCacheCapacity. If so, inspecting the current query cache will give you a clue about where the misuse is happening.

#### `QueryCounts`, `QueryErrorCounts`, `QueryRowCounts`, `QueryTimesNs`

Expand Down

0 comments on commit 0bbd279

Please sign in to comment.