Re: Table Lock

2008-12-18 Thread Joerg Bruehe
Hi! sangprabv wrote: > Hi, > Is that true that MySQL lock table on each query? Does it means will > cause slow speed? Then how to avoid table lock and speed up MySQL? TIA. You need to read up about the different table handlers available. They have different properties, including the locking beh

Re: table lock

2008-03-07 Thread Raj Shekhar
Eli Shemer wrote: > > > The web site on the other end reads all the data from the table and > generates standard html/css code with the information from the table. > How can I make all of the apache child processes wait for the external > script to complete its operation once it has started?

Re: table lock

2008-03-02 Thread Martin Gainty
Good Morning Eli I would consider implementation of mpm_common more specifically enabling inter process communication with mutex's such as what you see at http://httpd.apache.org/docs/2.0/mod/mpm_common.html#acceptmutex and then utilising the flock directive to either lock/unlock a file such such

Re: Table Lock issue on insert

2006-01-03 Thread Heikki Tuuri
Sent: Monday, January 02, 2006 9:31 PM Subject: Re: Table Lock issue on insert Hi John, I have looked around a bit and you might be interested in this part: InnoDB: Do not intentionally crash mysqld if the buffer pool is exhausted by the lock table; return error 1206 instead ...

Re: Table Lock issue on insert

2006-01-02 Thread Danny Stolle
Message- From: Danny Stolle [mailto:[EMAIL PROTECTED] Sent: Saturday, December 31, 2005 2:59 AM To: Brittingham, John; mysql@lists.mysql.com Subject: Re: Table Lock issue on insert Hi John, What kind of engine are you using on your table? MyIsam or InnoDB or are you using merged tables? If you

Re: Table Lock issue on insert

2006-01-02 Thread Danny Stolle
tolle [mailto:[EMAIL PROTECTED] Sent: Saturday, December 31, 2005 2:59 AM To: Brittingham, John; mysql@lists.mysql.com Subject: Re: Table Lock issue on insert Hi John, What kind of engine are you using on your table? MyIsam or InnoDB or are you using merged tables? If you query your system vari

Re: Table Lock issue on insert

2005-12-31 Thread Danny Stolle
Hi John, What kind of engine are you using on your table? MyIsam or InnoDB or are you using merged tables? If you query your system variables what is your max_write_lock_count? If you create a copy of the table: mysql>create table cp1 like USERS_PER_HOUR; and you try the insert again; is the

Re: Table Lock Delays and Connection Pooling

2004-10-18 Thread Eric Bergen
Every new connection is considered a client. It's a bad idea to try to do your own scheduling client side to try to defeat table locks because MySQL can proceed with other clients as soon as the locks are freed vs your application waiting for a complete result set to return before proceeding with a

Re: Table lock problem on INSERT with FULLTEXT index?

2004-04-12 Thread Don MacAskill
FWIW, I'm still having this problem. I've completely dropped the table and re-built it from the ground up. It's a bizarre problem... The table is totally simple. A primary key, and then three varchar fields. The FULLTEXT index spans the 3 varchar fields. There are only 6500+ rows, so it's p

Re: Table lock statistics by TABLE not just server,db

2004-01-09 Thread Jeremy Zawodny
On Fri, Jan 09, 2004 at 01:43:53PM -0800, trevor%tribenetwork.com wrote: > Mysqlians, > I am trying to determine in some of my database tables should be > converted from MyISAM to Innodb. I have read that a collusion on 10-20% is > the threshold at which one should convert( current # a

Re: table lock - which connection id own's it

2002-04-25 Thread Jeremy Zawodny
On Wed, Apr 24, 2002 at 12:45:43PM +0300, Michael Widenius wrote: > > I will add to our TODO to add to SHOW OPEN TABLES a list of threads > that has locks on the table (or maybe a SHOW LOCKS command) to > better cover this case in the future. Could it be SHOW TABLE LOCKS? That way it is not con

RE: table lock - which connection id own's it

2002-04-24 Thread Michael Widenius
Hi! > "Lopez" == Lopez David > writes: Lopez> If no row is returned, then the following happens: Lopez> 1) lock table ... Lopez> 2) select ... Lopez> 3) if no row is returned, Lopez> 4)insert ... Lopez> 5)use LAST_INSERT_ID() to get the value of the key Lopez> 6) else

RE: table lock - which connection id own's it

2002-04-23 Thread Sinisa Milivojevic
Lopez David E-r9374c writes: > Monty > > BTW, it's a thrill to hear from the CTO. > > The procedure for locking a table is more complex but will > attempt to describe it further for you. Any of the 150 daemons > can insert to the hash tables. The data in the row can be used > by all 150 daemons.

RE: table lock - which connection id own's it

2002-04-23 Thread Lopez David E-r9374c
Monty BTW, it's a thrill to hear from the CTO. The procedure for locking a table is more complex but will attempt to describe it further for you. Any of the 150 daemons can insert to the hash tables. The data in the row can be used by all 150 daemons. The primary key in hash table is the "id" f

Re: table lock

2002-01-28 Thread Jeremy Zawodny
On Mon, Jan 28, 2002 at 12:00:43PM -0500, bin cai wrote: > Hi, > > I have one concern about multithread. I am building online exam > system. many students can get access to one table in one > time. Should i use table lock every time when one student get access > to the table. As i know, mysql is

RE: Table Lock

2002-01-28 Thread Egor Egorov
Vasoczki, Monday, January 28, 2002, 12:20:21 PM, you wrote: VF> Yes, i need this too but for a whole database. i just thought, if there is a VF> power loss, and the database is get stuck, the users won't able to connect VF> again ... It should be a very fanciful power failure and hardware failu

Re: Table Lock

2002-01-28 Thread Scott Helms
Try this: If you are using a table handler in MySQL that doesn't support transactions, you must use LOCK TABLES if you want to ensure that no other thread comes between a SELECT and an UPDATE. The example shown below requires LOCK TABLES in order to execute safely: mysql> LOCK TABLES trans READ,

RE: Table Lock

2002-01-28 Thread Vasoczki Ferenc
Yes, i need this too but for a whole database. i just thought, if there is a power loss, and the database is get stuck, the users won't able to connect again ... Vaso -Original Message- From: Hayan Al Mamoun [mailto:[EMAIL PROTECTED]] Sent: 2002. janu?r 28. 9:48 To: MYSQL MAILING LIST (E

Re: Table Lock

2002-01-28 Thread Tobias Kremer :: IT
Hi Hayan, have a look at: http://www.mysql.com/doc/L/O/LOCK_TABLES.html for information on (un)locking tables. At 11:48 28.01.02 +0300, you wrote: >Hi, Is there a way to lock a table so that only one user can change it and >then unlockit? >I need to do this coz I want visitors to retrieve so