the thing is those queries look simple enough and I've barely 1000 rows in arrowchat_status table.
Here is some examples:
- Code: Select all
# Time: 160509 0:12:38
# User@Host: root[root] @ localhost []
# Query_time: 2.162604 Lock_time: 0.000020 Rows_sent: 0 Rows_examined: 2
SET timestamp=1462745558;
UPDATE arrowchat
SET arrowchat.user_read = '1'
WHERE arrowchat.from = '941786'
AND arrowchat.to = '940397'
AND arrowchat.user_read = '0';
# User@Host: root[root] @ localhost []
# Query_time: 2.176691 Lock_time: 0.000024 Rows_sent: 0 Rows_examined: 1
SET timestamp=1462745558;
UPDATE arrowchat_status
SET session_time = '1462745556'
WHERE userid = '941717';
I'm running on a quite powerful machine and also have push service in place.
I also modified the userid fild to make it INT(11) rather than the varchar(25) (I only use ints for ids anyway) but still lots of performance issues.
Should I make some changes like ading a LIMIT 1? What do you think?
Thanks!