MySQL Forums
Forum List  »  InnoDB

insert into ... select ... lock
Posted by: Bob Bobby
Date: July 18, 2008 02:43PM

Hello,

I am working with innodb tables. I have a batch job that does a big "insert into ... select ...from tableB" query. It causes a lock of tableB.

At the same time, i have some processes which tries to insert data into tableB. So those processes waits the end of the batch job.

I have a first question: I don t exactly know what is really locked in tableB. Is it the whole tableB or just some records or indexes ?

My second question is i don t want my processe's insert to wait the end of the cron job. Is there a way to do this with transaction, isolation levels or stuff ?

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
insert into ... select ... lock
3770
July 18, 2008 02:43PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.