lorenzo.kh,
Monday, July 29, 2002, 11:59:49 AM, you wrote:

lk> I have a question regard the table locking.
lk> Let say there is a table ,mytablename type=MyISAM in my database.
lk> And lets say there are 2 users who are currently log in.

lk> First user locks a table write:
lk> mysql> lock tables mytablename write;
lk> Query OK, 0 rows affected (0.00 sec)

lk> Then,second user wishes to query something from mytablename.
lk> mysql>select * from mytablename;
lk> ...........................(pending or in a queue)...

lk> I know that the second query will be pending untill the 1-st user issues the
lk> "unlock tables" command.
lk> So,i am wondering is it the second query will be waiting there 'forever' if
lk> the 1-st user 'never' issue the "unlock tables" command?
lk> Or is there any method maybe like 'waiting_timeout' that I can set.If the
waiting time > 'variable' second,then the query will automatically be
lk> deleted....

For the INSERT DELAYED you can set up variable delayed_insert_timeout:
      http://www.mysql.com/doc/S/H/SHOW_VARIABLES.html





-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com



---------------------------------------------------------------------
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to