Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 56b8929

Browse files
committed
acrolinx updates
1 parent 1becaa0 commit 56b8929

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/relational-databases/system-catalog-views/sys-database-query-store-options-transact-sql.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||= azure-sqldw-latest||=sq
2828

2929
Returns the Query Store options for this database.
3030

31-
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] ( [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] through [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)]), [!INCLUDE[sqldbesa](../../includes/sqldbesa-md.md)].
31+
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] ([!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] through [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)]), [!INCLUDE[sqldbesa](../../includes/sqldbesa-md.md)].
3232

3333
|Column name|Data type|Description|
3434
|-----------------|---------------|-----------------|
@@ -39,13 +39,13 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||= azure-sqldw-latest||=sq
3939
|**readonly_reason**|**int**|When the **desired_state_desc** is READ_WRITE and the **actual_state_desc** is READ_ONLY, **readonly_reason** returns a bit map to indicate why the Query Store is in readonly mode.<br /><br /> **1** - database is in read-only mode<br /><br /> **2** - database is in single-user mode<br /><br /> **4** - database is in emergency mode<br /><br /> **8** - database is secondary replica (applies to Always On and [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)] geo-replication). This value can be effectively observed only on **readable** secondary replicas<br /><br /> **65536** - the Query Store has reached the size limit set by the MAX_STORAGE_SIZE_MB option.<br /><br /> **131072** - The number of different statements in Query Store has reached the internal memory limit. Consider removing queries that you do not need or upgrading to a higher service tier to enable transferring Query Store to read-write mode.<br />**Applies to:** [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)].<br /><br /> **262144** - Size of in-memory items waiting to be persisted on disk has reached the internal memory limit. Query Store will be in read-only mode temporarily until the in-memory items are persisted on disk. <br />**Applies to:** [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)].<br /><br /> **524288** - Database has reached disk size limit. Query Store is part of user database, so if there is no more available space for a database, that means that Query Store cannot grow further anymore.<br />**Applies to:** [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)]. <br /> <br /> To switch the Query Store operations mode back to read-write, see **Verify Query Store is Collecting Query Data Continuously** section of [Best Practice with the Query Store](../../relational-databases/performance/best-practice-with-the-query-store.md#Verify).|
4040
|**current_storage_size_mb**|**bigint**|Size of Query Store on disk in megabytes.|
4141
|**flush_interval_seconds**|**bigint**|The period for regular flushing of Query Store data to disk in seconds. Default value is **900** (15 min).<br /><br /> Change by using the `ALTER DATABASE <database> SET QUERY_STORE (DATA_FLUSH_INTERVAL_SECONDS = <interval>)` statement.|
42-
|**interval_length_minutes**|**bigint**|The statistics aggregation interval in minutes. Arbitrary values are not allowed . Use one of the following: 1, 5, 10, 15, 30, 60, and 1440 minutes. The default value is **60** minutes.|
42+
|**interval_length_minutes**|**bigint**|The statistics aggregation interval in minutes. Arbitrary values are not allowed. Use one of the following: 1, 5, 10, 15, 30, 60, and 1440 minutes. The default value is **60** minutes.|
4343
|**max_storage_size_mb**|**bigint**|Maximum disk size for the Query Store in megabytes (MB). Default value is **100** MB.<br />For [!INCLUDE[sqldbesa](../../includes/sqldbesa-md.md)] Premium edition, default is 1 GB and for [!INCLUDE[sqldbesa](../../includes/sqldbesa-md.md)] Basic edition, default is 10 MB.<br /><br /> Change by using the `ALTER DATABASE <database> SET QUERY_STORE (MAX_STORAGE_SIZE_MB = <size>)` statement.|
4444
|**stale_query_threshold_days**|**bigint**|Number of days that queries with no policy settings are kept in Query Store. Default value is **30**. Set to 0 to disable the retention policy.<br />For [!INCLUDE[sqldbesa](../../includes/sqldbesa-md.md)] Basic edition, default is 7 days.<br /><br /> Change by using the `ALTER DATABASE <database> SET QUERY_STORE ( CLEANUP_POLICY = ( STALE_QUERY_THRESHOLD_DAYS = <value> ) )` statement.|
4545
|**max_plans_per_query**|**bigint**|Limits the maximum number of stored plans. Default value is **200**. If the maximum value is reached, Query Store stops capturing new plans for that query. Setting to 0 removes the limitation with regards to the number of captured plans.<br /><br /> Change by using the `ALTER DATABASE<database> SET QUERY_STORE (MAX_PLANS_PER_QUERY = <n>)` statement.|
46-
|**query_capture_mode**|**smallint**|The currently active query capture mode:<br /><br /> **1** = ALL - all queries are captured. This is the default configuration value for [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] ([!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] through [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)]).<br /><br /> 2 = AUTO - capture relevant queries based on execution count and resource consumption. This is the default configuration value for [!INCLUDE[sqldbesa](../../includes/sqldbesa-md.md)].<br /><br /> 3 = NONE - stop capturing new queries. Query Store will continue to collect compile and runtime statistics for queries that were captured already. Use this configuration cautiously since you may miss to capture important queries.|
46+
|**query_capture_mode**|**smallint**|The currently active query capture mode:<br /><br /> **1** = ALL - all queries are captured. This is the default configuration value for [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] ([!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] through [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)]).<br /><br /> 2 = AUTO - capture relevant queries based on execution count and resource consumption. This is the default configuration value for [!INCLUDE[sqldbesa](../../includes/sqldbesa-md.md)].<br /><br /> 3 = NONE - stop capturing new queries. Query Store will continue to collect compile and runtime statistics for queries that were captured already. Use this configuration cautiously since you may miss capturing important queries.|
4747
|**query_capture_mode_desc**|**nvarchar(60)**|Textual description of the actual capture mode of Query Store:<br /><br /> ALL (default for [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)])<br /><br /> **AUTO** (default for [!INCLUDE[sqldbesa](../../includes/sqldbesa-md.md)])<br /><br /> NONE|
48-
|**size_based_cleanup_mode**|**smallint**|Controls whether cleanup will be automatically activated when total amount of data gets close to maximum size:<br /><br /> 0 = OFF - size based cleanup won't be automatically activated.<br /><br /> **1** = AUTO - size based cleanup will be automatically activated when size on disk reaches **90 percent** of *max_storage_size_mb*. This is the default configuration value.<br /><br />Size based cleanup removes the least expensive and oldest queries first. It stops when approximately **80 percent** of *max_storage_size_mb* is reached.|
48+
|**size_based_cleanup_mode**|**smallint**|Controls whether cleanup will be automatically activated when total amount of data gets close to maximum size:<br /><br /> 0 = OFF - size-based cleanup won't be automatically activated.<br /><br /> **1** = AUTO - size-based cleanup will be automatically activated when size on disk reaches **90 percent** of *max_storage_size_mb*. This is the default configuration value.<br /><br />Size-based cleanup removes the least expensive and oldest queries first. It stops when approximately **80 percent** of *max_storage_size_mb* is reached.|
4949
|**size_based_cleanup_mode_desc**|**nvarchar(60)**|Textual description of the actual size-based cleanup mode of Query Store:<br /><br /> OFF <br /> **AUTO** (default)|
5050
|**wait_stats_capture_mode**|**smallint**|Controls whether Query Store performs capture of wait statistics: <br /><br /> 0 = OFF <br /> **1** = ON<br /> **Applies to**: [!INCLUDE[ssSQL17](../../includes/sssql17-md.md)] through [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)].|
5151
|**wait_stats_capture_mode_desc**|**nvarchar(60)**|Textual description of the actual wait statistics capture mode: <br /><br /> OFF <br /> **ON** (default)<br /> **Applies to**: [!INCLUDE[ssSQL17](../../includes/sssql17-md.md)] through [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)].|

0 commit comments

Comments
 (0)