Reputation: 35453
I have a log table with heavy write operations: that was the reason of choosing MyISAM for it.
Now I need to execute a complicated SELECT query which takes a lot time and blocks the table: no one can write to it then.
What are the options to read the data without blocking the table?
Upvotes: 1
Views: 813
Reputation: 31743
Some suggestions, maybe one or the other is suitable for you
option: Slave
Configure a slave that you use for your SELECT query. That won't block the inserts. However, this requires a second server, some configuration and storage space, so this is not a good solution, just to get your data.
option: use low-priority-updates: http://dev.mysql.com/doc/refman/5.0/en/table-locking.html
This can be done on a server level or connection level, so you don't have to modify every insert statement.
worker process
Upvotes: 2