{"id":12281,"date":"2019-05-15T21:41:59","date_gmt":"2019-05-15T21:41:59","guid":{"rendered":"https:\/\/dbtut.com\/?p=12281"},"modified":"2019-05-15T21:42:00","modified_gmt":"2019-05-15T21:42:00","slug":"what-is-query-store-in-sql-server","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/","title":{"rendered":"What is Query Store in SQL Server"},"content":{"rendered":"<p>The Query Store is a feature that introduced in SQL Server 2016. In order to understand the Query Store, it is necessary to understand the query plan (execution plan). In the article &#8220;<a href=\"https:\/\/dbtut.com\/index.php\/2018\/06\/18\/what-is-execution-plan-on-sql-server\/\" target=\"_blank\" rel=\"noopener noreferrer\">What is Execution Plan On SQL Server<\/a>&#8221; you can find detailed information about the execution plan.<\/p>\n<p>With Query Store feature, we can better comprehend execution plan selection and its impact on performance.<\/p>\n<h2>What is Stored in Query Store?<\/h2>\n<p>Query Store stores the history of queries, query plans, and runtime statistics. Thus, we can easily identify the problems caused by the change of the query plan.<\/p>\n<p>The query plan for a query changes over time for many reasons. In some cases, this change causes the query to run slowly. Before the Query Store, it was hard to find whether the query started working slowly because of query plan change. With Query Store, this process has become very simple.<\/p>\n<p>There are multiple query plans for a query in the Query Store. And with plan forcing, a specific query plan can be used. With the help of Plan forcing, the performance problems caused by the change of the query plan can be solved in a short time.<\/p>\n<p>In Query Store, the query&#8217;s CPU consumption, read and write information is also stored.<\/p>\n<p>We could see the wait types in SQL Server at the instance level. With SQL Server 2017, we can see wait types from the Query Store.<\/p>\n<p>With the help of the new dmw in SQL Server 2017, we can see wait types of queries and query plans.<\/p>\n<pre class=\"lang:default decode:true\">select * from sys.query_store_wait_stats \n<\/pre>\n<h2>Find Wait Types of a Specific Query Plan<\/h2>\n<p>We can find out wait types of a specific query plan with the help of the following query.<\/p>\n<pre class=\"lang:default decode:true \">select wait_category_desc AS 'Bekleme T\u00fcr\u00fc', \nsum(total_query_wait_time_ms) AS 'SorguToplamBeklemeS\u00fcresi_sn'\nfrom sys.query_store_wait_stats\nwhere plan_id = 9\ngroup by wait_category_desc\n<\/pre>\n<p>We can enable Query Store at the database level. Right click on the database and click Properties and go to the Query Store tab.<\/p>\n<h3>Operation Mode<\/h3>\n<p>We select Read Write from Operation Mode. This allows the Query Store to collect the required information.<\/p>\n<h3>Data Flush<\/h3>\n<p>The value in the Data Flush section also indicates how often the collected data is written to the disk. Since writing to the disk is asynchronous, it does not cause a serious performance problem.<\/p>\n<h3>Statistics Collection Interval<\/h3>\n<p>Statistics Collection Interval is 1 Hour by default. The Query Store splits the time according to the setting we specify in statistics collection interval and stores the statistics in this range for each execution plan in the Query Store. Setting the Statistics Collection Interval to a lower value will help you solve the problem. But this will increase the size of the Query Store. You can leave it with the default settings and change if needed later.<\/p>\n<h3>Max Size (MB)<\/h3>\n<p>In Max Size (MB), we set the maximum size that the Query Store can reach in MB. When this value is exceeded, the Operation Mode will automatically change to Read Only.<\/p>\n<h3>Query Store The Capture Mode<\/h3>\n<p>Query Store The Capture Mode section determines which queries the query store will capture.<\/p>\n<p>Default is All. So it is enable for all queries.<\/p>\n<p>If you select Auto, it doesn&#8217;t catch queries that are not frequent.<\/p>\n<p>If you select None, it will not catch any queries.<\/p>\n<h3>Size Based Cleanup Mode<\/h3>\n<p>In the Size Based Cleanup Mode section, we determine whether automatic data cleaning will run automatically when the max size limit is reached. Default is Auto and Microsoft recommends that you do not change it.<\/p>\n<h3>Stale Query Threshold<\/h3>\n<p>In the Stale Query Threshold section, we specify how long the information stored in the query store should no longer be stored. Default is 30 days. You can set this time according to your needs. I would not advise you to store it unnecessarily. I think a week will be enough for this setting.<\/p>\n<p id=\"wtkzhsw\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12282  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5cdc799f23b9a.png\" alt=\"\" width=\"758\" height=\"621\"><\/p>\n<p>Once the query store has been created, you can select what you want to investigate by right-clicking the query store as follows.<\/p>\n<p id=\"gAiITVE\"><img loading=\"lazy\" decoding=\"async\" width=\"528\" height=\"221\" class=\"size-full wp-image-12283  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5cdc7a3889c36.png\" alt=\"\"><\/p>\n<p>For example, you can capture the most costly queries, and then select the query plan that best works from the graph on the right.<\/p>\n<p id=\"btjoppD\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-12284  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5cdc7a9fb47e6.png\" alt=\"\" width=\"768\" height=\"443\"><\/p>\n<p>Or, you can identify slow running queries because of the change of execution plan from the Regressed Queries and force them to work with the correct execution plan.<\/p>\n<p>Let&#8217;s make an example to understand the topic.<\/p>\n<h2>Example<\/h2>\n<p>We are creating a table as follows.<\/p>\n<pre class=\"lang:default decode:true \">CREATE TABLE [dbo].[City](\n\t[ID] [bigint] IDENTITY(1,1) NOT NULL,\n\t[CityName] [varchar](250) NULL,\n CONSTRAINT [PK_City] PRIMARY KEY CLUSTERED \n(\n\t[ID] ASC\n)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, \nALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]\n) ON [PRIMARY]\nGO\n<\/pre>\n<p>Then add some records to this table with the following script.<\/p>\n<pre class=\"lang:default decode:true \">INSERT INTO [dbo].[City]([CityName]) VALUES ('Newyork'),('London'),('Istanbul'),('Ankara'),('Paris')\n<\/pre>\n<p>We are creating a stored procedure that reads data from this table.<\/p>\n<pre class=\"lang:default decode:true \">CREATE PROCEDURE QueryStoreExample \n@CityName varchar(200)\nAS\nBEGIN\n\tselect * FROM [dbo].[City]\n      WHERE CityName=@CityName\nEND\nGO\n<\/pre>\n<p>Let&#8217;s run this stored procedure as follows and look at the query plan.<\/p>\n<pre class=\"lang:default decode:true \">Exec QueryStoreExample 'Istanbul'\n<\/pre>\n<p>As you can see, since there is no index in the table, Clustered Index Scan is performed.<\/p>\n<p id=\"GIMIuub\"><img loading=\"lazy\" decoding=\"async\" width=\"778\" height=\"471\" class=\"size-full wp-image-12286  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5cdc7c794400a.png\" alt=\"\"><\/p>\n<p>Now let&#8217;s create an index in the CityName column as follows and look at the query plan again.<\/p>\n<pre class=\"lang:default decode:true \">CREATE NONCLUSTERED INDEX [IX_CityName] ON [dbo].[City]\n(\n\t[CityName] ASC\n)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, \nDROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)<\/pre>\n<p>Now you will see index seek.<\/p>\n<p id=\"yukrbku\"><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"430\" class=\"size-full wp-image-12288  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5cdc7d5748e0d.png\" alt=\"\"><\/p>\n<p>Now delete the index and right click on the query store and click on view reggressed queries.<\/p>\n<p>A screen will appear. You can work more easily by clicking the &#8220;View regressed queries in a grid format with additional details&#8221; box.<\/p>\n<p>Find the query and look at the query plans on the right.<\/p>\n<p>Two round shapes appear. These query plans saved for this query.<\/p>\n<p>It is completed in approximately 80 milliseconds when it uses the top query plan.<\/p>\n<p>When it uses the query plan at the bottom, it is almost complete in 0 milliseconds. You can see the details by coming over the rounds.<\/p>\n<p id=\"YQmlnok\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12289  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5cdc7fb46baec.png\" alt=\"\" width=\"760\" height=\"369\"><\/p>\n<p>In some cases the query may work with an incorrect query plan for some reasons. For example parameter sniffing or out-of-date statistics.<\/p>\n<p>You can find details in articles named &#8220;What is Parameter Sniffing&#8221; and &#8220;Statistics Concept and Performance Effect On SQL Server&#8221;.<\/p>\n<p>When the query runs with the wrong query plan, it will decrease the performance of your query. Using the Query Store, you can detect and easily fix it.<\/p>\n<p>For example, we have two query plans for our query in the Query Store. We can choose the faster one and choose Force Plan as below.<\/p>\n<p id=\"jXQPDNp\"><img loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"450\" class=\"size-full wp-image-12290  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5cdc80e6c655c.png\" alt=\"\"><\/p>\n<p>We have set the query plan to perform index seek. But as you know, there&#8217;s no index. Therefore, the query will not work with the query plan we set. In this case, it chosse the best query plan itself.<\/p>\n<p>Right click on the Query Store and click on &#8220;View Queries with Forced Plans&#8221; to access the enforced query plans.<\/p>\n<p id=\"PlBEUat\"><img loading=\"lazy\" decoding=\"async\" width=\"565\" height=\"204\" class=\"size-full wp-image-12291  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5cdc8252f36c6.png\" alt=\"\"><\/p>\n\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_12281\" class=\"pvc_stats all  \" data-element-id=\"12281\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Query Store is a feature that introduced in SQL Server 2016. In order to understand the Query Store, it is necessary to understand the query plan (execution plan). In the article &#8220;What is Execution Plan On SQL Server&#8221; you can find detailed information about the execution plan. With Query Store feature, we can better &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_12281\" class=\"pvc_stats all  \" data-element-id=\"12281\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":12293,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3],"tags":[4365,4321,4360,4366,4368,4370,4363,4369,4372,4364,4371,4367,4362,4359,4361],"class_list":["post-12281","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-mssql","tag-getting-started-with-the-query-store-feature","tag-how-can-check-database-performance-in-sql-server","tag-how-do-i-find-the-execution-plan-in-sql-server","tag-how-to-enable-query-store-in-sql-server","tag-how-to-enable-query-store-in-sql-server-2012","tag-how-to-enable-query-store-in-sql-server-2014","tag-monitoring-performance-by-using-the-query-store","tag-query-store-in-sql-server-2017","tag-query-store-tracked-queries","tag-sql-server-2016-query-store","tag-sql-server-check-if-query-store-is-enabled","tag-sql-server-query-store-performance-impact","tag-use-cases-for-query-store-in-sql-server","tag-what-is-a-query-store","tag-what-is-query-store-in-sql-server-2016"],"aioseo_notices":[],"a3_pvc":{"activated":true,"total_views":654,"today_views":0},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is Query Store in SQL Server - Database Tutorials<\/title>\n<meta name=\"description\" content=\"What is Query Store in SQL Server\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Query Store in SQL Server - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"What is Query Store in SQL Server\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-15T21:41:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-15T21:42:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-51.png\" \/>\n\t<meta property=\"og:image:width\" content=\"630\" \/>\n\t<meta property=\"og:image:height\" content=\"359\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"dbtut\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dbtut\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/\"},\"author\":{\"name\":\"dbtut\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408\"},\"headline\":\"What is Query Store in SQL Server\",\"datePublished\":\"2019-05-15T21:41:59+00:00\",\"dateModified\":\"2019-05-15T21:42:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/\"},\"wordCount\":1051,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-51.png\",\"keywords\":[\"Getting Started with the Query Store Feature\",\"How can check database performance in SQL Server?\",\"How do I find the execution plan in SQL Server?\",\"how to enable query store in sql server\",\"how to enable query store in sql server 2012\",\"how to enable query store in sql server 2014\",\"Monitoring Performance By Using the Query Store\",\"query store in sql server 2017\",\"query store tracked queries\",\"SQL Server 2016 Query Store\",\"sql server check if query store is enabled\",\"sql server query store performance impact\",\"Use cases for Query Store in SQL Server\",\"What is a query store?\",\"What is query store in SQL Server 2016?\"],\"articleSection\":[\"MSSQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/\",\"name\":\"What is Query Store in SQL Server - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-51.png\",\"datePublished\":\"2019-05-15T21:41:59+00:00\",\"dateModified\":\"2019-05-15T21:42:00+00:00\",\"description\":\"What is Query Store in SQL Server\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-51.png\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-51.png\",\"width\":630,\"height\":359},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is Query Store in SQL Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408\",\"name\":\"dbtut\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g\",\"caption\":\"dbtut\"},\"description\":\"We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.\",\"sameAs\":[\"http:\/\/NurullahCAKIR\"],\"url\":\"https:\/\/dbtut.com\/index.php\/author\/dbtut\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Query Store in SQL Server - Database Tutorials","description":"What is Query Store in SQL Server","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/","og_locale":"en_US","og_type":"article","og_title":"What is Query Store in SQL Server - Database Tutorials","og_description":"What is Query Store in SQL Server","og_url":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/","og_site_name":"Database Tutorials","article_published_time":"2019-05-15T21:41:59+00:00","article_modified_time":"2019-05-15T21:42:00+00:00","og_image":[{"width":630,"height":359,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-51.png","type":"image\/png"}],"author":"dbtut","twitter_card":"summary_large_image","twitter_misc":{"Written by":"dbtut","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/"},"author":{"name":"dbtut","@id":"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408"},"headline":"What is Query Store in SQL Server","datePublished":"2019-05-15T21:41:59+00:00","dateModified":"2019-05-15T21:42:00+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/"},"wordCount":1051,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-51.png","keywords":["Getting Started with the Query Store Feature","How can check database performance in SQL Server?","How do I find the execution plan in SQL Server?","how to enable query store in sql server","how to enable query store in sql server 2012","how to enable query store in sql server 2014","Monitoring Performance By Using the Query Store","query store in sql server 2017","query store tracked queries","SQL Server 2016 Query Store","sql server check if query store is enabled","sql server query store performance impact","Use cases for Query Store in SQL Server","What is a query store?","What is query store in SQL Server 2016?"],"articleSection":["MSSQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/","url":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/","name":"What is Query Store in SQL Server - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-51.png","datePublished":"2019-05-15T21:41:59+00:00","dateModified":"2019-05-15T21:42:00+00:00","description":"What is Query Store in SQL Server","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-51.png","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-51.png","width":630,"height":359},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/15\/what-is-query-store-in-sql-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"What is Query Store in SQL Server"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408","name":"dbtut","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g","caption":"dbtut"},"description":"We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.","sameAs":["http:\/\/NurullahCAKIR"],"url":"https:\/\/dbtut.com\/index.php\/author\/dbtut\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/12281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=12281"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/12281\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/12293"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=12281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=12281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=12281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}