Answer the question
In order to leave comments, you need to log in
Is it possible to delete records from MyISAM without locking the table for reading
There is a MyISAM table of the form id, text (about 1 kb each record), an index only by id, about 200,000 rows, when deleting 1 or 100 records with a query like delete ... where `id` in (1, 50, 60) , the table is not available to read about 10 seconds.
Whether there are variants without change of type of the table to delete records without blocking reading? Thank you!
Answer the question
In order to leave comments, you need to log in
200k rows from a small table, the deletion should take place instantly, certainly not seconds. It looks like you have a problem in another place, see how not to lose the entire table, this happens with MyISAM.
dev.mysql.com/doc/refman/5.0/en/delete.html - LOW_PRIORITY keys and especially QUICK keys.
dev.mysql.com/doc/refman/5.0/en/delete-speed.html - increase key_buffer_size.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question