I have a MyIsam table about 15Gb large.
I have deleted about a half of the rows from it and the delete query took about 10 hours.
Now I'm afraid to start optimize table
, because I don't know how long it's gonna take.
If you have an experience with such large tables, can you please share with me.
PS After the deletion process the query "select * from table limit 0,30" takes years.
Will optimize table
help?
Will it take more than 10 hours?
What's gonna happen, if I interrupt the "optimize table" query?
LOCK TABLES
(for making sure nothing changes while running your operations), you can't useRENAME TABLE
. You wantALTER TABLE
instead, see https://mcmap.net/q/1625513/-renaming-a-locked-table. – Morehouse