Re: Speed Problem

2004-05-10 Thread gerald_clark
Mustafa Yalcin Acikyildiz wrote: hello. i have a speed problem ;). table: title_id bigint(50),title char(200), cdate datetime query: select title, max(cdate) as mdt, count(title_id) as num from entry where (date_format(cdate, '%Y-%m-%d %H:%i:%s') The function in whre clause forces a full table

Re: Speed Problem

2004-05-09 Thread Mikalai Birukou
> table: > title_id bigint(50),title char(200), cdate datetime > > query: > select title, max(cdate) as mdt, count(title_id) as > num > from entry > where (date_format(cdate, '%Y-%m-%d %H:%i:%s') > between '2004-05-07 00:00:01' AND '2004-05-08 > 23:59:59') > and > (on = 'Y') > group by title > ord

Re: Speed Problem

2004-05-08 Thread Jigal van Hemert
> i have a speed problem ;). > > table: > title_id bigint(50),title char(200), cdate datetime Next time, please provide information about existing indices and provide output of EXPLAIN of the query... > query: > select title, max(cdate) as mdt, count(title_id) as num > from entry > where (date_f

RE: Speed problem with sorted select statements

2002-01-28 Thread Roger Baklund
* [EMAIL PROTECTED] > Description: > I try to get the last 5 different times and the first 5 > different times. There is a difference of aproximately > 1 minute and 40 seconds between this to queries. I do not see > reason for the difference in the execution times. There is a problem in some case