Innodb is indeed row level locking.  You are likely thinking of BDB
which uses memory page level locking.

gw

sheeri kritzer wrote:
> Innodb is not row-level locking -- it's memory-page-level-locking.  A
> memory page is usually small, so it's almost like row-level locking,
> but not quite.  Perhaps you're running up against that?
> 
> What does the query log say which queries were running?  How do you
> know it's the delete that's taking the lock, and not an update (the
> error message said an update or a delete)?
> 
> -Sheeri
> 
> On 2/10/06, Ady Wicaksono <[EMAIL PROTECTED]> wrote:
>> So where's the row locking?
>>
>> I configure my database with Innodb + READ COMMITED, by this configuration
>> by using autocommit=1, delete should be done on data commited to disk.
>> Other thread should be able to insert/update.
>>
>> CMIIW
>>
>>
>>> Tables are locked on delete because, like an update, they are changing
>>> data.
>>>
>>> Imagine issuing a REPLACE statement after a DELETE statement.  If the
>>> DELETE locks the table, then the REPLACE happens AFTER the DELETE, as
>>> you wanted.  If the DELETE does not lock the table, then it's possible
>>> the REPLACE will happen before the DELETE, and the DELETE will delete
>>> the row you just replaced.
>>>
>>> -Sheeri
>>>
>>> On 2/9/06, Ady Wicaksono <[EMAIL PROTECTED]> wrote:
>>>> Why table locked on delete?
>>>>
>>>
>>
> 


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to