[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting a new default nice value


On Tuesday 20 March 2001 07:58, Richard Ellerbrock wrote:
> It would also be VERY cool to be able to adjust the priority of selects 
like you can with inserts. In some cases I know selects are going to take 
long and thus do not want them to take all resources.
> 
> Also, it would be REALLY cool to be able to specify a time limit for a 
select after which time it would die. I know this can be set globally, but 
this will not work for me as my server has many web apps (php driven) all 
using the same database - each app having different requirements. What grinds 
me is that some users enter crap searches on my apps and then hit the 
stop/cancel button when it takes too long. I know in upcoming versions of php 
they plan to somehow "fix" this - how I do not know. Oh yes, my
> databases are normalised.

For now the workaround would be to write a daemon or a cron job that connects 
to MySQL once in a while, runs show full processlist, check the execution 
time and command type, and kills all threads that have exceeded the limit on 
select.

-- 
MySQL Development Team
   __  ___     ___ ____  __ 
  /  |/  /_ __/ __/ __ \/ /   Sasha Pachev <sasha@xxxxxxxxx>
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, http://www.mysql.com/
/_/  /_/\_, /___/\___\_\___/  Provo, Utah, USA
       <___/                  

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <mysql-thread68858@xxxxxxxxxxxxxxx>
To unsubscribe, e-mail <mysql-unsubscribe-treed=ultraviolet.org@xxxxxxxxxxxxxxx>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



This mailing list archive is a service of Copilot Consulting.