<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.blaxeen.com/index.php?action=history&amp;feed=atom&amp;title=Mysql_analyse_queries</id>
	<title>Mysql analyse queries - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blaxeen.com/index.php?action=history&amp;feed=atom&amp;title=Mysql_analyse_queries"/>
	<link rel="alternate" type="text/html" href="https://wiki.blaxeen.com/index.php?title=Mysql_analyse_queries&amp;action=history"/>
	<updated>2026-04-18T14:47:46Z</updated>
	<subtitle>Historique des révisions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://wiki.blaxeen.com/index.php?title=Mysql_analyse_queries&amp;diff=2487&amp;oldid=prev</id>
		<title>Admin : a déplacé Mysql Analyse queries vers Mysql analyse queries</title>
		<link rel="alternate" type="text/html" href="https://wiki.blaxeen.com/index.php?title=Mysql_analyse_queries&amp;diff=2487&amp;oldid=prev"/>
		<updated>2013-01-30T11:50:31Z</updated>

		<summary type="html">&lt;p&gt;a déplacé &lt;a href=&quot;/index.php?title=Mysql_Analyse_queries&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Mysql Analyse queries (page inexistante)&quot;&gt;Mysql Analyse queries&lt;/a&gt; vers &lt;a href=&quot;/index.php/Mysql_analyse_queries&quot; title=&quot;Mysql analyse queries&quot;&gt;Mysql analyse queries&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 30 janvier 2013 à 11:50&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;fr&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Aucune différence)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.blaxeen.com/index.php?title=Mysql_analyse_queries&amp;diff=1446&amp;oldid=prev</id>
		<title>Admin le 28 mars 2012 à 17:23</title>
		<link rel="alternate" type="text/html" href="https://wiki.blaxeen.com/index.php?title=Mysql_analyse_queries&amp;diff=1446&amp;oldid=prev"/>
		<updated>2012-03-28T17:23:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 28 mars 2012 à 17:23&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;e nouveau, nous &lt;/del&gt;nous retrouvons cofrontés à des problèmes de performances de MySQL2.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Nous &lt;/ins&gt;nous retrouvons cofrontés à des problèmes de performances de MySQL2.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;En y regardant de plus près, et après avoir migrés certains clients &amp;quot;problématiques&amp;quot;, d&amp;#039;autres ont apparament pris le relais.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;En y regardant de plus près, et après avoir migrés certains clients &amp;quot;problématiques&amp;quot;, d&amp;#039;autres ont apparament pris le relais.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.blaxeen.com/index.php?title=Mysql_analyse_queries&amp;diff=523&amp;oldid=prev</id>
		<title>Admin le 3 avril 2009 à 10:31</title>
		<link rel="alternate" type="text/html" href="https://wiki.blaxeen.com/index.php?title=Mysql_analyse_queries&amp;diff=523&amp;oldid=prev"/>
		<updated>2009-04-03T10:31:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 3 avril 2009 à 10:31&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Ligne 7 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 7 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A titre d&amp;#039;exemple voici le client ulysse qui envoie régulièrement des requêtes &amp;quot;lourdes&amp;quot; :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A titre d&amp;#039;exemple voici le client ulysse qui envoie régulièrement des requêtes &amp;quot;lourdes&amp;quot; :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;mysql&amp;gt; explain SELECT annonceur.SocietesNumAuto &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                &lt;/del&gt;FROM ciel AS annonceur &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                &lt;/del&gt;LEFT JOIN x_dossiers_annonces ON x_dossiers_annonces.DossiersAnnoncesSocietesNum=annonceur.SocietesNumAuto                 LEFT JOIN x_dossiers_etapes ON x_dossiers_etapes.EtapesNum=x_dossiers_annonces.DossiersAnnoncesEtapesNum                 LEFT JOIN OIStatut ON OIStatut.statutNum=x_dossiers_annonces.DossiersAnnoncesOIStatutNum                 WHERE  x_dossiers_etapes.EtapesNum=70;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;mysql&amp;gt; explain SELECT annonceur.SocietesNumAuto FROM ciel AS annonceur LEFT JOIN x_dossiers_annonces ON  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;x_dossiers_annonces.DossiersAnnoncesSocietesNum=annonceur.SocietesNumAuto                 LEFT JOIN x_dossiers_etapes ON  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;x_dossiers_etapes.EtapesNum=x_dossiers_annonces.DossiersAnnoncesEtapesNum                 LEFT JOIN OIStatut ON  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;OIStatut.statutNum=x_dossiers_annonces.DossiersAnnoncesOIStatutNum                 WHERE  x_dossiers_etapes.EtapesNum=70;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;+----+-------------+---------------------+--------+---------------+-------------+---------+--------------------------------------------------------+------+--------------------------+&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;+----+-------------+---------------------+--------+---------------+-------------+---------+--------------------------------------------------------+------+--------------------------+&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| id | select_type | table               | type   | possible_keys | key         | key_len | ref                                                    | rows | Extra                    |&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| id | select_type | table               | type   | possible_keys | key         | key_len | ref                                                    | rows | Extra                    |&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot;&gt;Ligne 21 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 25 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;En modifiant la requête, on peut significativement en améliorer les perfs &amp;amp; temps d&amp;#039;exécution :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;En modifiant la requête, on peut significativement en améliorer les perfs &amp;amp; temps d&amp;#039;exécution :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;mysql&amp;gt; explain SELECT annonceur.SocietesNumAuto                 FROM ciel AS annonceur                 INNER  JOIN x_dossiers_annonces ON x_dossiers_annonces.DossiersAnnoncesSocietesNum=annonceur.SocietesNumAuto    INNER JOIN x_dossiers_etapes ON x_dossiers_etapes.EtapesNum=x_dossiers_annonces.DossiersAnnoncesEtapesNum    INNER  JOIN OIStatut ON OIStatut.statutNum=x_dossiers_annonces.DossiersAnnoncesOIStatutNum                 WHERE  x_dossiers_etapes.EtapesNum=70;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;mysql&amp;gt; explain SELECT annonceur.SocietesNumAuto                 FROM ciel AS annonceur                 INNER  JOIN x_dossiers_annonces ON  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;x_dossiers_annonces.DossiersAnnoncesSocietesNum=annonceur.SocietesNumAuto    INNER JOIN x_dossiers_etapes ON  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;x_dossiers_etapes.EtapesNum=x_dossiers_annonces.DossiersAnnoncesEtapesNum    INNER  JOIN OIStatut ON  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;OIStatut.statutNum=x_dossiers_annonces.DossiersAnnoncesOIStatutNum                 WHERE  x_dossiers_etapes.EtapesNum=70;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;+----+-------------+---------------------+--------+---------------+-------------+---------+--------------------------------------------------------+------+--------------------------+&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;+----+-------------+---------------------+--------+---------------+-------------+---------+--------------------------------------------------------+------+--------------------------+&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| id | select_type | table               | type   | possible_keys | key         | key_len | ref                                                    | rows | Extra                    |&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| id | select_type | table               | type   | possible_keys | key         | key_len | ref                                                    | rows | Extra                    |&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.blaxeen.com/index.php?title=Mysql_analyse_queries&amp;diff=522&amp;oldid=prev</id>
		<title>Admin : Page créée avec « &lt;pre&gt; e nouveau, nous nous retrouvons cofrontés à des problèmes de performances de MySQL2. En y regardant de plus près, et après avoir migrés certains clients &quot;problém... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.blaxeen.com/index.php?title=Mysql_analyse_queries&amp;diff=522&amp;oldid=prev"/>
		<updated>2009-04-03T10:28:58Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;pre&amp;gt; e nouveau, nous nous retrouvons cofrontés à des problèmes de performances de MySQL2. En y regardant de plus près, et après avoir migrés certains clients &amp;quot;problém... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
e nouveau, nous nous retrouvons cofrontés à des problèmes de performances de MySQL2.&lt;br /&gt;
En y regardant de plus près, et après avoir migrés certains clients &amp;quot;problématiques&amp;quot;, d&amp;#039;autres ont apparament pris le relais.&lt;br /&gt;
&lt;br /&gt;
Souvent, les requêtes de ces clients utilisent des jointures entre des tables de manière non appropriées : LEFT/RIGHT JOIN inadapté etc...&lt;br /&gt;
&lt;br /&gt;
A titre d&amp;#039;exemple voici le client ulysse qui envoie régulièrement des requêtes &amp;quot;lourdes&amp;quot; :&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; explain SELECT annonceur.SocietesNumAuto                 FROM ciel AS annonceur                 LEFT JOIN x_dossiers_annonces ON x_dossiers_annonces.DossiersAnnoncesSocietesNum=annonceur.SocietesNumAuto                 LEFT JOIN x_dossiers_etapes ON x_dossiers_etapes.EtapesNum=x_dossiers_annonces.DossiersAnnoncesEtapesNum                 LEFT JOIN OIStatut ON OIStatut.statutNum=x_dossiers_annonces.DossiersAnnoncesOIStatutNum                 WHERE  x_dossiers_etapes.EtapesNum=70;&lt;br /&gt;
+----+-------------+---------------------+--------+---------------+-------------+---------+--------------------------------------------------------+------+--------------------------+&lt;br /&gt;
| id | select_type | table               | type   | possible_keys | key         | key_len | ref                                                    | rows | Extra                    |&lt;br /&gt;
+----+-------------+---------------------+--------+---------------+-------------+---------+--------------------------------------------------------+------+--------------------------+&lt;br /&gt;
|  1 | SIMPLE      | x_dossiers_etapes   | ref    | DossierFNum   | DossierFNum |       4 | const                                                  |    1 | Using where; Using index |&lt;br /&gt;
|  1 | SIMPLE      | annonceur           | index  | NULL          | PRIMARY     |       4 | NULL                                                   | 4091 | Using index              |&lt;br /&gt;
|  1 | SIMPLE      | x_dossiers_annonces | ALL    | NULL          | NULL        |    NULL | NULL                                                   | 1138 | Using where              |&lt;br /&gt;
|  1 | SIMPLE      | OIStatut            | eq_ref | PRIMARY       | PRIMARY     |       4 | ulysse.x_dossiers_annonces.DossiersAnnoncesOIStatutNum |    1 | Using index              |&lt;br /&gt;
+----+-------------+---------------------+--------+---------------+-------------+---------+--------------------------------------------------------+------+--------------------------+&lt;br /&gt;
&lt;br /&gt;
cardinalité de la requête = 1 x 4091 x 1138 x 1 = 4.655.558 lignes analysées pour ne renvoyer que &amp;quot;3633&amp;quot; résultats.&lt;br /&gt;
&lt;br /&gt;
En modifiant la requête, on peut significativement en améliorer les perfs &amp;amp; temps d&amp;#039;exécution :&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; explain SELECT annonceur.SocietesNumAuto                 FROM ciel AS annonceur                 INNER  JOIN x_dossiers_annonces ON x_dossiers_annonces.DossiersAnnoncesSocietesNum=annonceur.SocietesNumAuto    INNER JOIN x_dossiers_etapes ON x_dossiers_etapes.EtapesNum=x_dossiers_annonces.DossiersAnnoncesEtapesNum    INNER  JOIN OIStatut ON OIStatut.statutNum=x_dossiers_annonces.DossiersAnnoncesOIStatutNum                 WHERE  x_dossiers_etapes.EtapesNum=70;&lt;br /&gt;
+----+-------------+---------------------+--------+---------------+-------------+---------+--------------------------------------------------------+------+--------------------------+&lt;br /&gt;
| id | select_type | table               | type   | possible_keys | key         | key_len | ref                                                    | rows | Extra                    |&lt;br /&gt;
+----+-------------+---------------------+--------+---------------+-------------+---------+--------------------------------------------------------+------+--------------------------+&lt;br /&gt;
|  1 | SIMPLE      | x_dossiers_etapes   | ref    | DossierFNum   | DossierFNum |       4 | const                                                  |    1 | Using where; Using index |&lt;br /&gt;
|  1 | SIMPLE      | x_dossiers_annonces | ALL    | NULL          | NULL        |    NULL | NULL                                                   | 1138 | Using where              |&lt;br /&gt;
|  1 | SIMPLE      | annonceur           | eq_ref | PRIMARY       | PRIMARY     |       4 | ulysse.x_dossiers_annonces.DossiersAnnoncesSocietesNum |    1 | Using index              |&lt;br /&gt;
|  1 | SIMPLE      | OIStatut            | index  | PRIMARY       | PRIMARY     |       4 | NULL                                                   |    4 | Using where; Using index |&lt;br /&gt;
+----+-------------+---------------------+--------+---------------+-------------+---------+--------------------------------------------------------+------+--------------------------+&lt;br /&gt;
&lt;br /&gt;
cardinalité de la requête = 1 x 1138 x 1 x 4 = 4.552 lignes analysées pour ne renvoyer que &amp;quot;3633&amp;quot; résultats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Il faudrait continuer à aider les clients à optimiser leurs requêtes ou alors leur proposer un outil qui leur permet d&amp;#039;évaluer la performance de leur requête.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Catégorie:Software]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>