Re: explicit row locking in InnoDB

2005-05-22 Thread mfatene
hi, to explicitly lock a row (or rows), use : BEGIN TRAN select ... from ... where ... FOR UPDATE; update ... COMMIT TRAN; Mathias Selon Mohammed Sameer <[EMAIL PROTECTED]>: > > need some urgent help > > im using InnoBD database type...i need to explicitly lock a row and keep it > locked until

explicit row locking in InnoDB

2005-05-22 Thread Mohammed Sameer
need some urgent help im using InnoBD database type...i need to explicitly lock a row and keep it locked until i explicitly unlock that row.. it would be great if u could provide me with sql statements as a solution for the above... thanks

InnoDB, odd "insert error" shared row locking behavior

2004-07-01 Thread Josh Chamas
Hi again, I ran into some dead locking that was unexpected, & I basically think the "insert error -> share lock" behavior is problematic. I would think that either a insert error does not acquire a row lock ( equivalent of a basic select ), or that it would acquire an exclusive row lock as if the

Re: row locking

2004-04-19 Thread Sahil Aggarwal
check and then update > >but because of tomcat accepting connections the above becomes > >check check update update > >i dont want to set the table locking, as it will make the system slower > >how can i set exclusive row locking until the update is finished? > > Have yo

Re: row locking

2004-04-16 Thread Paul DuBois
dont want to set the table locking, as it will make the system slower how can i set exclusive row locking until the update is finished? Have you tried using SELECT ... FOR UPDATE? -- Paul DuBois, MySQL Documentation Team Madison, Wisconsin, USA MySQL AB, www.mysql.com -- MySQL General Mailing List For

RE: row locking

2004-04-16 Thread Victor Pendleton
Are you running the queries in parallel or serially? Are you using the same connection? Are you issuing Low Priority Updates? -Original Message- From: Sahil Aggarwal To: [EMAIL PROTECTED] Sent: 4/16/04 8:27 AM Subject: row locking hi all, i have select statements in my java code which

row locking

2004-04-16 Thread Sahil Aggarwal
make the system slower how can i set exclusive row locking until the update is finished? Any pointers are appreciated. -Regards Sahil Aggarwal

Re: Transaction and Row Locking Feature

2003-01-10 Thread Heikki Tuuri
Robert, - Original Message - From: ""Robert Tam"" <[EMAIL PROTECTED]> Newsgroups: mailing.database.mysql Sent: Friday, January 10, 2003 7:43 AM Subject: Transaction and Row Locking Feature > Hello, > > I am a new user to MySQL. I need innoDB's

Transaction and Row Locking Feature

2003-01-09 Thread Robert Tam
Hello, I am a new user to MySQL. I need innoDB's transaction and row locking feature in MySQL. Could someone clarify whether the latest 3.23.54a of MySQL fully supports innoDB transaction and row locking or do I have to use beta/gamma version of MySQL 4.0.x. Thanks in advance.

Re: Innodb row locking question

2002-12-08 Thread Heikki Tuuri
Mike, - Original Message - From: "Mike Gohlke" <[EMAIL PROTECTED]> Newsgroups: mailing.database.mysql Sent: Saturday, December 07, 2002 6:44 PM Subject: Re: Innodb row locking question > > > Benjamin Pflugmann wrote: > > >Hello. > > > &

Re: Innodb row locking question

2002-12-07 Thread Benjamin Pflugmann
Hello. On Sat 2002-12-07 at 10:36:00 -0600, [EMAIL PROTECTED] wrote: [...] > >Why do you repeat "job_id = 111 and thread_id = 0"? If you are using a > >transaction seperation level of at least REPEATABLE READ (which is the > >default), InnoDb assures that you always see the same rows within one >

Re: Innodb row locking question

2002-12-07 Thread Mike Gohlke
Benjamin Pflugmann wrote: Hello. On Fri 2002-12-06 at 10:28:23 -0600, [EMAIL PROTECTED] wrote: Heikki and all, I've got a quick question which may be more general sql related but since I'm using innodb tables specifically for the row locking. The following process desc

Re: Innodb row locking question

2002-12-07 Thread Benjamin Pflugmann
Hello. On Fri 2002-12-06 at 10:28:23 -0600, [EMAIL PROTECTED] wrote: > Heikki and all, > I've got a quick question which may be more general sql related but > since I'm using innodb tables specifically for the row locking. > > The following process description is specifi

Innodb row locking question

2002-12-06 Thread Mike Gohlke
Heikki and all, I've got a quick question which may be more general sql related but since I'm using innodb tables specifically for the row locking. The following process description is specifically designed to prevent duplicates. My current process: select * from run where job_id

RE: Row Locking issue in 3.23.x

2002-05-14 Thread adam nelson
use InnoDB which does support row-locking (MySQL-Max) -Original Message- From: Sherzod B. Ruzmetov [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 9:23 AM To: [EMAIL PROTECTED]; MySQL Maling list Subject: Row Locking issue in 3.23.x Hi. As far as I know, MySQL doesn't s

Row Locking issue in 3.23.x

2002-05-14 Thread Sherzod B. Ruzmetov
Hi. As far as I know, MySQL doesn't suport row-locking, only table locking is available. But I figured table locking for sessions table of CGI::Session::MySQL would be quite inefficient, for there might be millions of rows and hundreds of them could be active at any time. So what do you

Re: Timeout for table/row locking

2001-05-24 Thread Daniel BI
Hello sql, I wonder if there is a timeout for a lock when the user cancel a script. Let's suupose I use non-persistent connection. Also, what happens if I use persistent connection, does the table/row remains locked for ever?... Thanx, anybody :) Daniel BI --