Re: deleting old records VS. index on datetime field (question about optimization)

2001-02-18 Thread Jan Namedyński
Rolf Hopkins wrote: > > That all depends. > > Do you need to keep the data for historical purposes? I don't have to but I want ;-). it means that if speed difference would be small I will. Are your queries > running particularly slowly? Have you read the manual about how you can > optimize

deleting old records VS. index on datetime field (question about optimization)

2001-02-16 Thread Jan Namedyński
Hi, I have a table DAY : DATETIME CAT_ID : INT DATA : TEXT ID : INT and I have to extract all records not older than 2 weeks with given CAT_ID (sorted by DAY). query for that is very simple, but what if this table has 1 000 000 records? Do you think that deleting records older than eg