{"id":3222,"date":"2012-03-26T13:46:15","date_gmt":"2012-03-26T12:46:15","guid":{"rendered":"http:\/\/blog.capdata.fr\/?p=3222"},"modified":"2019-09-13T14:24:56","modified_gmt":"2019-09-13T13:24:56","slug":"production-sql-server-les-statistiques","status":"publish","type":"post","link":"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/","title":{"rendered":"Production SQL Server : Les Statistiques"},"content":{"rendered":"<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fblog.capdata.fr%2Findex.php%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3222&#038;text=Article%20sur%20le%20blog%20de%20la%20Capdata%20Tech%20Team%20%3A%20\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/blog.capdata.fr\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fblog.capdata.fr%2Findex.php%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3222&#038;title=Production%20SQL%20Server%20%3A%20Les%20Statistiques\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/blog.capdata.fr\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Production%20SQL%20Server%20%3A%20Les%20Statistiques&#038;body=Article%20sur%20le%20blog%20de%20la%20Capdata%20Tech%20Team%20%3A%20:%20https%3A%2F%2Fblog.capdata.fr%2Findex.php%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3222\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/blog.capdata.fr\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a><p>Quatri\u00e8me article de la s\u00e9rie <a href=\"http:\/\/blog.capdata.fr\/index.php\/une-approche-pragmatique-de-la-production-sql-server\">Une approche pragmatique de la production SQL Server<\/a>, nous voyons ici la mise \u00e0 jour des statistiques.<\/p>\n<p><strong>Quand SQL Server met-il \u00e0 jour les statistiques ?<\/strong><\/p>\n<ul>\n<li>Lors de la r\u00e9organisation d\u2019un indexe. Les statistiques sont dans ce cas mises \u00e0 jour \u00e0 partir de l\u2019int\u00e9gralit\u00e9 des pages de l\u2019indexe (mode FULLSCAN)<\/li>\n<li>Lorsque la base est en mode \u201cauto_update_statistics\u201d, que le seuil d\u2019obsolescence d\u2019une statistique a \u00e9t\u00e9 atteint (<a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/dd535534(SQL.100).aspx\">article MSDN sur le sujet<\/a>) et que la compilation d\u2019une requ\u00eate a besoin de cette statistique.<\/li>\n<\/ul>\n<p><strong>Faut-il mettre \u00e0 jour les statistiques manuellement ?<\/strong><br \/>\nOui et Non !<\/p>\n<p>Non, lorsque les bases sont de faible volum\u00e9trie et que l\u2019activit\u00e9 transactionnelle n\u2019est pas \u00e9lev\u00e9e; la gestion automatique des statistiques suffit amplement.<\/p>\n<p>Oui, lorsque l\u2019on sait que les statistiques ne sont plus repr\u00e9sentatives bien avant le seuil des 20% (donn\u00e9es r\u00e9parties de mani\u00e8re \u00a0non homog\u00e8ne dans certaines tables), ou lorsque l\u2019on ne peut pas se permettre d\u2019ajouter \u00e0 une compilation le temps mis \u00e0 mettre \u00e0 jour les statistiques.<br \/>\nDans le cadre d\u2019un parc d\u2019instances SQL Server, il est int\u00e9ressant de disposer d\u2019une t\u00e2che de gestion des statistiques ex\u00e9cut\u00e9e sur toutes les instances qui mettra \u00e0 jour ou non les statistiques selon quelques r\u00e8gles.<\/p>\n<p><strong>Quelles statistiques mettre \u00e0 jour ?<\/strong><br \/>\nChaque base de donn\u00e9es peut contenir des donn\u00e9es tr\u00e8s volatiles et d\u2019autres statiques, comme par exemple des tables d\u2019historique, souvent volumineuses. Certaines tables peuvent \u00eatre des tables de travail, r\u00e9guli\u00e8rement purg\u00e9es, pour lesquelles les statistiques ne seront jamais pertinentes.<br \/>\nIl faut donc trouver un m\u00e9canisme capable d\u2019identifier les tables de travail et les tables qui n\u2019ont pas subi de modification de donn\u00e9es (depuis la derni\u00e8re mise \u00e0 jour).<\/p>\n<p>Lorsqu\u2019une donn\u00e9e est mise \u00e0 jour dans une table, la valeur de la colonne rowmdctr de la table syst\u00e8me sysindexes s\u2019incr\u00e9mente(<a href=\"http:\/\/msdn.microsoft.com\/fr-fr\/library\/ms190283.aspx\">MSDN: sysindexes<\/a>). Cette colonne est remise \u00e0 z\u00e9ro lorsque les statistiques sont mises \u00e0 jour. R\u00e9cup\u00e9rer la liste des statistiques qui ne sont pas totalement \u00e0 jour consiste donc simplement \u00e0 remonter les lignes de sysindexes \u00e0 l\u2019exception de celles pour lesquelles rowmodctr vaut 0 !<br \/>\n(Comme son nom ne l\u2019indique pas, sysindexes contient une entr\u00e9e pour chaque indexe mais aussi pour chaque statistique de la base).<\/p>\n<p>La mise \u00e0 jour peut s\u2019effectuer sur l\u2019int\u00e9gralit\u00e9 de l\u2019objet (FULLSCAN) ou sur un \u00e9chantillon (SAMPLE). La premi\u00e8re m\u00e9thode est plus longue que la seconde puisque les pages balay\u00e9es sont plus nombreuses. Il existe un risque, m\u00eame s\u2019il est faible, qu\u2019une statistique cr\u00e9\u00e9e \u00e0 partir d\u2019un \u00e9chantillon ne soit pas repr\u00e9sentative (le m\u00e9canisme de statistiques filtr\u00e9es de SQL Server 2008 peut aider \u00e0 contourner ce probl\u00e8me). Pour les tables de faible volum\u00e9trie, la mise \u00e0 jour en FULLSCAN est pr\u00e9f\u00e9rable. Pour les plus gros objets, le mode SAMPLE peut \u00eatre utilis\u00e9, mais t\u00e2chez d\u2019\u00eatre toujours au moins \u00e0 20% de pages balay\u00e9es.<\/p>\n<p><strong>Attention, la mise \u00e0 jour des statistiques a un double impact sur les performances:<\/strong><br \/>\nLa lecture des pages de chaque objet s\u2019accompagne d\u2019une pose de verrous partag\u00e9s, ils entrent donc en concurrence avec les acc\u00e8s en modification sur l\u2019objet.<br \/>\nLes plans d\u2019ex\u00e9cution en cache qui utilisent les statistiques mis \u00e0 jour sont invalid\u00e9s. Les prochaines ex\u00e9cutions de requ\u00eates passeront donc n\u00e9cessairement par la phase de compilation.<br \/>\nil est donc pr\u00e9f\u00e9rable d\u2019effectuer cette mise \u00e0 jour lors d\u2019une p\u00e9riode de faible activit\u00e9.<\/p>\n<p>Voici un exemple de proc\u00e9dure stock\u00e9e de mise \u00e0 jour de statistiques qui repose sur ces quelques r\u00e8gles :<\/p>\n<pre name=\"code\" class=\"sql\">USE outils_dba\r\nGO\r\nIF OBJECT_ID('maj_statistiques_base') IS NOT NULL\r\nDROP PROCEDURE maj_statistiques_base\r\nGO\r\nCREATE PROCEDURE maj_statistiques_base ( @nom_base sysname,\r\n@complet varchar(3)='NON'\r\n)\r\nAS\r\n\/***************************************************************************************\r\nB. Vesan, Cap Data Consulting, Mars 2012\r\nCette procedure permet de mettre \u00e0 jour les statistiques d'une base.\r\n\r\nSi la valeur du param\u00e8tre @complet vaut 'OUI', l'int\u00e9gralit\u00e9 des statistiques sera mise \u00e0 jour.\r\nSinon, seules les statistiques sur les tables ayant re\u00e7u des mouvements seront mises \u00e0 jour.\r\n\r\nLa proc\u00e9dure retournera 0 en cas de succ\u00e8s, 1 en cas d'\u00e9chec.\r\n\r\n***************************************************************************************\/\r\nBEGIN\r\nSET NOCOUNT ON\r\nDECLARE @cmd varchar(4000),@msg varchar(1000), @erreur int\r\nCREATE TABLE #table_stats(commande varchar(4000))\r\n\r\nIF DB_ID(@nom_base) IS NULL\r\nBEGIN\r\nSET @msg = 'Echec de l'' ex\u00e9cution de maj_statistiques_base : La base '+ISNULL(@nom_base,'(valeur nulle)')+' n''existe pas'\r\nRAISERROR (@msg, 16, 1) WITH NOWAIT,LOG\r\nreturn 1\r\nEND\r\n\r\nIF ( DATABASEPROPERTYEX(@nom_base,'Status ')!='ONLINE' OR EXISTS (select 1 FROM sys.databases WHERE name=@nom_base AND source_database_id IS NOT NULL))\r\nBEGIN\r\nSET @msg = 'La base '+@nom_base+' n''est pas disponible ou il s''agit d''un snapshot'\r\nPRINT @msg\r\nreturn 0\r\nEND\r\n\r\nset @cmd = 'USE ['+@nom_base+']\r\nselect ''UPDATE STATISTICS ['+@nom_base+'].[''+SCH.name+''].[''+T.name+''](''+SI.name+'') WITH RESAMPLE''\r\nfrom sysindexes SI\r\ninner join sys.tables T ON T.object_id = SI.id\r\ninner join sys.stats S ON (S.object_id = SI.id AND S.stats_id=SI.indid)\r\ninner join sys.schemas SCH ON (T.schema_id = SCH.schema_id)'\r\nif UPPER(@complet) ='NON' set @cmd = @cmd + ' WHERE SI.rowmodctr 0'\r\n\r\n--PRINT @cmd\r\nINSERT INTO #table_stats\r\nEXECUTE(@cmd)\r\n\r\nDECLARE CURSEUR_INDEXES INSENSITIVE CURSOR FOR\r\nselect commande from #table_stats \r\n\r\nOPEN CURSEUR_INDEXES\r\nFETCH NEXT FROM CURSEUR_INDEXES INTO @cmd\r\n\r\nWHILE(@@FETCH_STATUS=0)\r\nBEGIN\r\nPRINT @cmd\r\nEXECUTE(@cmd)\r\nselect @erreur=@@ERROR\r\nIF @erreur !=0\r\nBEGIN\r\nSET @msg = 'Echec de l'' ex\u00e9cution de maj_statistiques_base : Erreur '+CAST(@erreur as varchar(5))+' lors de l''appel \u00e0 la commande \"'+@cmd+'\"'\r\nRAISERROR (@msg, 16, 1) WITH NOWAIT,LOG\r\nCLOSE CURSEUR_INDEXES\r\nDEALLOCATE CURSEUR_INDEXES\r\nDROP TABLE #table_stats\r\nreturn 1\r\nEND\r\nFETCH NEXT FROM CURSEUR_INDEXES INTO @cmd\r\nEND\r\nCLOSE CURSEUR_INDEXES\r\nDEALLOCATE CURSEUR_INDEXES\r\nDROP TABLE #table_stats\r\nEND\r\nGO<\/pre>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fblog.capdata.fr%2Findex.php%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3222&#038;text=Article%20sur%20le%20blog%20de%20la%20Capdata%20Tech%20Team%20%3A%20\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/blog.capdata.fr\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fblog.capdata.fr%2Findex.php%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3222&#038;title=Production%20SQL%20Server%20%3A%20Les%20Statistiques\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/blog.capdata.fr\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Production%20SQL%20Server%20%3A%20Les%20Statistiques&#038;body=Article%20sur%20le%20blog%20de%20la%20Capdata%20Tech%20Team%20%3A%20:%20https%3A%2F%2Fblog.capdata.fr%2Findex.php%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3222\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/blog.capdata.fr\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>Quatri\u00e8me article de la s\u00e9rie Une approche pragmatique de la production SQL Server, nous voyons ici la mise \u00e0 jour des statistiques. Quand SQL Server met-il \u00e0 jour les statistiques ? Lors de la r\u00e9organisation d\u2019un indexe. Les statistiques sont&hellip; <a href=\"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/\" class=\"more-link\">Continuer la lecture <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":14,"featured_media":7890,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[206,212],"class_list":["post-3222","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sqlserver","tag-howto","tag-production"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Production SQL Server : Les Statistiques - Capdata TECH BLOG<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Production SQL Server : Les Statistiques - Capdata TECH BLOG\" \/>\n<meta property=\"og:description\" content=\"Quatri\u00e8me article de la s\u00e9rie Une approche pragmatique de la production SQL Server, nous voyons ici la mise \u00e0 jour des statistiques. Quand SQL Server met-il \u00e0 jour les statistiques ? Lors de la r\u00e9organisation d\u2019un indexe. Les statistiques sont&hellip; Continuer la lecture &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/\" \/>\n<meta property=\"og:site_name\" content=\"Capdata TECH BLOG\" \/>\n<meta property=\"article:published_time\" content=\"2012-03-26T12:46:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-13T13:24:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2012\/03\/stats.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"523\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Benjamin VESAN\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Benjamin VESAN\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/\"},\"author\":{\"name\":\"Benjamin VESAN\",\"@id\":\"https:\/\/blog.capdata.fr\/#\/schema\/person\/ae56d1d3d5680d95ccc2c927e44bdc3e\"},\"headline\":\"Production SQL Server : Les Statistiques\",\"datePublished\":\"2012-03-26T12:46:15+00:00\",\"dateModified\":\"2019-09-13T13:24:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/\"},\"wordCount\":635,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.capdata.fr\/#organization\"},\"keywords\":[\"howto\",\"Production\"],\"articleSection\":[\"SQL Server\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/\",\"url\":\"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/\",\"name\":\"Production SQL Server : Les Statistiques - Capdata TECH BLOG\",\"isPartOf\":{\"@id\":\"https:\/\/blog.capdata.fr\/#website\"},\"datePublished\":\"2012-03-26T12:46:15+00:00\",\"dateModified\":\"2019-09-13T13:24:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/blog.capdata.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Production SQL Server : Les Statistiques\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.capdata.fr\/#website\",\"url\":\"https:\/\/blog.capdata.fr\/\",\"name\":\"Capdata TECH BLOG\",\"description\":\"Le blog technique sur les bases de donn\u00e9es de CAP DATA Consulting\",\"publisher\":{\"@id\":\"https:\/\/blog.capdata.fr\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.capdata.fr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/blog.capdata.fr\/#organization\",\"name\":\"Capdata TECH BLOG\",\"url\":\"https:\/\/blog.capdata.fr\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/blog.capdata.fr\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2023\/01\/logo_capdata.webp\",\"contentUrl\":\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2023\/01\/logo_capdata.webp\",\"width\":800,\"height\":254,\"caption\":\"Capdata TECH BLOG\"},\"image\":{\"@id\":\"https:\/\/blog.capdata.fr\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/cap-data-consulting\/mycompany\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.capdata.fr\/#\/schema\/person\/ae56d1d3d5680d95ccc2c927e44bdc3e\",\"name\":\"Benjamin VESAN\",\"url\":\"https:\/\/blog.capdata.fr\/index.php\/author\/bvesan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Production SQL Server : Les Statistiques - Capdata TECH BLOG","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:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/","og_locale":"fr_FR","og_type":"article","og_title":"Production SQL Server : Les Statistiques - Capdata TECH BLOG","og_description":"Quatri\u00e8me article de la s\u00e9rie Une approche pragmatique de la production SQL Server, nous voyons ici la mise \u00e0 jour des statistiques. Quand SQL Server met-il \u00e0 jour les statistiques ? Lors de la r\u00e9organisation d\u2019un indexe. Les statistiques sont&hellip; Continuer la lecture &rarr;","og_url":"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/","og_site_name":"Capdata TECH BLOG","article_published_time":"2012-03-26T12:46:15+00:00","article_modified_time":"2019-09-13T13:24:56+00:00","og_image":[{"width":800,"height":523,"url":"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2012\/03\/stats.jpg","type":"image\/jpeg"}],"author":"Benjamin VESAN","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"Benjamin VESAN","Dur\u00e9e de lecture estim\u00e9e":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/#article","isPartOf":{"@id":"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/"},"author":{"name":"Benjamin VESAN","@id":"https:\/\/blog.capdata.fr\/#\/schema\/person\/ae56d1d3d5680d95ccc2c927e44bdc3e"},"headline":"Production SQL Server : Les Statistiques","datePublished":"2012-03-26T12:46:15+00:00","dateModified":"2019-09-13T13:24:56+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/"},"wordCount":635,"commentCount":0,"publisher":{"@id":"https:\/\/blog.capdata.fr\/#organization"},"keywords":["howto","Production"],"articleSection":["SQL Server"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/","url":"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/","name":"Production SQL Server : Les Statistiques - Capdata TECH BLOG","isPartOf":{"@id":"https:\/\/blog.capdata.fr\/#website"},"datePublished":"2012-03-26T12:46:15+00:00","dateModified":"2019-09-13T13:24:56+00:00","breadcrumb":{"@id":"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.capdata.fr\/index.php\/production-sql-server-les-statistiques\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/blog.capdata.fr\/"},{"@type":"ListItem","position":2,"name":"Production SQL Server : Les Statistiques"}]},{"@type":"WebSite","@id":"https:\/\/blog.capdata.fr\/#website","url":"https:\/\/blog.capdata.fr\/","name":"Capdata TECH BLOG","description":"Le blog technique sur les bases de donn\u00e9es de CAP DATA Consulting","publisher":{"@id":"https:\/\/blog.capdata.fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.capdata.fr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/blog.capdata.fr\/#organization","name":"Capdata TECH BLOG","url":"https:\/\/blog.capdata.fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/blog.capdata.fr\/#\/schema\/logo\/image\/","url":"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2023\/01\/logo_capdata.webp","contentUrl":"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2023\/01\/logo_capdata.webp","width":800,"height":254,"caption":"Capdata TECH BLOG"},"image":{"@id":"https:\/\/blog.capdata.fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/cap-data-consulting\/mycompany\/"]},{"@type":"Person","@id":"https:\/\/blog.capdata.fr\/#\/schema\/person\/ae56d1d3d5680d95ccc2c927e44bdc3e","name":"Benjamin VESAN","url":"https:\/\/blog.capdata.fr\/index.php\/author\/bvesan\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts\/3222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/comments?post=3222"}],"version-history":[{"count":43,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts\/3222\/revisions"}],"predecessor-version":[{"id":3975,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts\/3222\/revisions\/3975"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/media\/7890"}],"wp:attachment":[{"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/media?parent=3222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/categories?post=3222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/tags?post=3222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}