I keep getting these in my mysql slow query log. For some reason it is hitting my server hard, causing mysqld to spike the cpu for a few minutes at a time, and causing my server to become unresponsive.
Quote:
# Time: 060414 20:10:16
# User@Host: root[root] @ localhost [127.0.0.1]
# Query_time: 311 Lock_time: 0 Rows_sent: 0 Rows_examined: 292371551
SELECT p.pagerid FROM pagertext AS p
LEFT JOIN pagerreceipt AS r
USING (pagerid) WHERE r.pagerid is NULL;
|
Quote:
# Time: 060414 18:10:13
# User@Host: root[root] @ localhost [127.0.0.1]
# Query_time: 306 Lock_time: 0 Rows_sent: 0 Rows_examined: 290821439
SELECT p.pagerid FROM pagertext AS p
LEFT JOIN pagerreceipt AS r
USING (pagerid) WHERE r.pagerid is NULL;
|
Quote:
# Time: 060414 17:09:55
# User@Host: root[root] @ localhost [127.0.0.1]
# Query_time: 293 Lock_time: 0 Rows_sent: 0 Rows_examined: 289613264
SELECT p.pagerid FROM pagertext AS p
LEFT JOIN pagerreceipt AS r
USING (pagerid) WHERE r.pagerid is NULL;
|
look at those rows examined!
I've had to disable the pager because of this, and my members are not happy about it. That isn't your problem, of course

I was just hoping you could give me an idea of why it is doing this.