Query Store settings#
List of Querona’s Query Store settings:
Configuration option |
Default value |
Requires restart? |
Description |
|---|---|---|---|
Archived Record Age Max |
4 |
No |
Archived statement expiration interval (aka. max age), after which statement will be purged. 0 indicates no limit (not recommended). Default value is in days. |
Buffer Capacity |
8000 |
Yes |
Maximum capacity of buffer that holds completed statements ready for storing. |
Buffer Full Mode |
DropOldest |
Yes |
Behavior of the buffer when the buffer is full and new items arrive. Supported values are:
|
Buffer FlushMode |
Batch |
Flush mode for the QueryStore’s statement buffer. This property determines how the buffer is flushed during runtime. Supported values are:
|
|
Checkpoint Interval |
6 |
No |
Interval of flushing a completed statement buffer to database (checkpoint), in seconds. |
Capture Mode |
Auto |
No |
The capture mode determines which queries are captured by the Query Store. Supported values are:
|
Capture Policy Query Duration Min |
0 |
No |
A filter on statement duration that get accepted for saving. |
Capture Policy Query Status |
All |
No |
A single-value filter on statement status that get accepted for saving. Supported values are:
|
Enabled |
False |
Yes |
Controls whether Query Store functionality is enabled. True if the Query Store is enabled, otherwise, False. |
Runtime Max Storage Size Mb |
100 |
Yes |
Gets or sets the maximum storage size, in megabytes, allocated for the runtime engine. |
Runtime Engine Name |
SqLite |
Yes |
Database engine used by the Query Store to store data at runtime. |
Runtime Engine Connection String |
Tes |
Connection string used by the selected Query Store runtime storage engine. The connection string is database-engine specific and includes settings such as memory limits. Environment variables can be used within the connection string and will be expanded at runtime. Replacement only occurs for environment variables that are set, otherwise the variable name remains unchanged. The default value points to a SqLite database file located in the %QUERONA_HOME% directory. Example connection string for SqLite database:
|
Note
Currently, only SqLite engine is supported as Query Store’s storage engine.