You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/enterprise_edition/plans.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,13 @@ Query plan collection is disabled by default and can be enabled in `pgdog.toml`:
16
16
```toml
17
17
[query_stats]
18
18
enabled = true
19
-
query_plan_threshold = 100 # Queries slower than 100ms will be planned.
19
+
query_plans_threshold = 100 # Queries slower than 100ms will be planned.
20
20
```
21
21
=== "Helm chart"
22
22
```yaml
23
23
queryStats:
24
24
enabled: true
25
-
queryPlanThreshold: 100
25
+
queryPlansThreshold: 100
26
26
```
27
27
28
28
The plans are stored in memory and deduplicated by _normalized_ SQL of the query. This means that queries with different parameters will be tied to the same query plan, making sure PgDog doesn't plan the same query multiple times.
@@ -33,30 +33,30 @@ The query plan cache is configurable:
33
33
34
34
| Argument | Description | Example |
35
35
|-|-|-|
36
-
|`query_plan_threshold`| Minimum query runtime that triggers a query plan (in ms). |`100`|
36
+
|`query_plans_threshold`| Minimum query runtime that triggers a query plan (in ms). |`100`|
37
37
|`query_plans_sample_rate`| Percentage of all queries executed through PgDog that will be planned, irrespective of their runtime (between 0.0 and 1.0). |`0.5`|
38
38
|`query_plans_cache`| Maximum number of entries in the in-memory plan cache. |`500`|
39
-
|`query_plan_max_age`| Query plans older than this are considered stale and will be replanned if the query is executed again (in ms). |`15_000`|
39
+
|`query_plans_max_age`| Query plans older than this are considered stale and will be replanned if the query is executed again (in ms). |`15_000`|
0 commit comments