Any way to select without causing locking in MySQL?
- by Shore
Query:
SELECT COUNT(online.account_id) cnt from online;
But online table is also modified by an event, so frequently I can see lock by running show processlist.
Is there any grammar in MySQL that can make select statement not causing locks?
And I've forgotten to mention above that it's on a MySQL slave database.
After I added into…