<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Jul 26, 2006, at 4:45 AM, Gerhard Killesreiter wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Since last night, I let the devel module collect query statistics on drupal.org. We now can see which queries are run very often and which are just slow.</FONT></P> </BLOCKQUOTE><BR></DIV><DIV>Great!  If I can get a copy of the Drupal.org schema then I'll write the EXPLAINs for both these queries and the Slow queries from the Drupal.org databases.  We just need a PHP Snippet that puts an EXPLAIN in front of these queries and converts INSERTS, UPDATES, and DELETES to SELECTS to use EXPLAINs.  </DIV><BR><DIV>I'll then ask for the snippet to be run on Drupal.org by a maintainer with PHP Input format privileges so I can review the EXPLAINS.  It's also worth noting that Peter Zaitsev, the MySQL performance lead, has been explaining how MySQL EXPLAIN can be wrong here: <A href="http://www.mysqlperformanceblog.com/2006/07/24/mysql-explain-limits-and-errors/">http://www.mysqlperformanceblog.com/2006/07/24/mysql-explain-limits-and-errors/</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Cheers,</DIV><DIV>Kieran</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>