Slow COUNT query (3 replies)
(MySQL.com) Hi,
I have a table which deals with quote requests - there are about 50000 records. When trying to count the number of quotes given out each month, the query is painfully slow - I am using the following query:
SELECT DATE_FORMAT('quote_time','
Update update feed set failed_fetches=0, fetched=current_timestamp() where feed_id = 1268 failed: 1142 [UPDATE command denied to user '334187_hdlns_ms5'@'10.187.248.89' for table 'feed'] in [update feed set failed_fetches=0, fetched=current_timestamp() where feed_id = 1268]
updated 1268 (MySQL User Forums), inserted 30, updated 0, at 2012-06-01 15:36:44