I showed in an earlier post how to drop a whole database in a very safe way (no replication lag at all) and that technique is usable to drop a single table too, but cleaning up a table can take hours if not days to finish, so this is not the most comfortable way to do that. We also don’t want to have even a small spike of replication lag, so we need to find an another solution.
How to remove database in a safe way
When you have to drop a large database, you’ll encounter some
problems, mainly replication…
Read more
What happens when you issue a DROP TABLE command? The table has
to be removed from the table dictionary – which is a fast, atomic
operation – and has to be removed from file system too. If you
use older version than 5.5.10 you have to calculate with a huge
amount of time if your buffer pool is big, because the server
will scan through the pages there, checking if anything is in
memory from that …