I am trying to rotate out an innoDB table which has a high number of transaction, so I need to lock all the tables involved.
With the tables locked I cannot use RENAME to move data around using auxiliary tables.
And if I do an INSERT, then I have to worry about the integrity of the ids.
Any suggestions? Is this even possible