<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 10 December 2013 14:31, Marc-André Pelletier <span dir="ltr"><<a href="mailto:mpelletier@wikimedia.org" target="_blank">mpelletier@wikimedia.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 12/10/2013 07:59 AM, Russell Blau wrote:<br>


> The same thing happened yesterday; Coren determined that a certain project<br>
> that shall remain nameless, unless you consider "catscan2" to be a name, had<br>
> been holding a lock on the database for over 12 hours.<br></div>
<br>
I really want to avoid having to install a query killer and place hard<br>
time limit on running time - no matter where the line it it will be an<br>
annoyance to /someone/.  There are occasional legitimate uses for very<br>
long queries; but they should be infrequent and not last *that* long.<br></blockquote><div><br></div><div>The toolserver has configurable limits -- if you expect your query to take long, adding '/* SLOW OK */' to the query relaxes the restrictions on run time. Long-running queries are still killed if the replag gets too high. See the table on the right at <a href="https://wiki.toolserver.org/view/Database_access#Slow_queries_and_the_query_killer">https://wiki.toolserver.org/view/Database_access#Slow_queries_and_the_query_killer</a></div>

<div><br></div><div>In general, killing queries that take too long unless they have been explicitly marked sounds like a good idea to me -- a lot of queries are done from the web, and the user will not keep waiting for the result for an hour.  </div>

<div><br></div><div>Merlijn</div></div></div></div>