On Thu, Dec 06, 2001 at 12:05:01PM +0000, Chris Withers wrote: > Jeremy Zawodny wrote: > > > > SQL_BUFFER_RESULT (http://www.mysql.com/doc/S/E/SELECT.html) my help, > > depending on what the real bottleneck is. > > Hmmmm... I thought temporary tables were bad?
It depends on the problem. In your case, it's probably true, but it can't hurt to try. > > SELECT COUNT(*) FROM foo WHERE ... > > > > to get the cound of matching rows. > > This doesn't seem to work :-S Maybe it's 'cos of the GROUP BY clause > on the end of my select... Ahh... > How can I get this to work with a GROUP BY? Can you post the query along with the output of EXPLAIN <query> so we can get a good idea what's going on? Jeremy -- Jeremy D. Zawodny, <[EMAIL PROTECTED]> Technical Yahoo - Yahoo Finance Desk: (408) 349-7878 Fax: (408) 349-5454 Cell: (408) 685-5936 MySQL 3.23.41-max: up 7 days, processed 158,081,010 queries (257/sec. avg) --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php