MySQL Forums
Forum List  »  Partitioning

alter table partition and insert at same time
Posted by: erd tas
Date: June 13, 2011 12:38AM

Hi,
I have table partitioning with respect to date, application has 2 threads, First one is batch insert to table periodically, second one is truncate old partition. Truncated partition and inserted partition is not same, but these 2 threads running time is overlap. This cause to application is crashed (query is hang on). Should Mysql overcome this situation (running at the same time) or should application order to SQL's executing time.

SQL's look like
ALTER TABLE history TRUNCATE PARTITION d
insert into history (id, ... , partition_id ) values ( 1, ... , 5)

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
alter table partition and insert at same time
3788
June 13, 2011 12:38AM


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.