MySQL Forums
Forum List  »  InnoDB

Re: create table as select block my insert
Posted by: Ofir Gilboa
Date: November 05, 2014 09:59AM

> OK, there is an ugly way -- copy X into the CREATEd table a thousand rows at a time. You could probably make a Stored Procedure to hide the ugliness from the analysts.

I did that already since I don't have any other solution.
the problem is that you lock the table X rows at a time for many times.
the other option which I implemented is to write a procedure that use a cursor on the Main table and copy the rows to the new table (with commit every X rows). it works but it take longer.

Options: ReplyQuote


Subject
Views
Written By
Posted
2486
October 05, 2014 03:25PM
Re: create table as select block my insert
990
November 05, 2014 09:59AM


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.