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

2001-02-18 Thread Rolf Hopkins
- Original Message - From: "Jan Namedyński" <[EMAIL PROTECTED]> To: "Rolf Hopkins" <[EMAIL PROTECTED]> Cc: "mysql" <[EMAIL PROTECTED]> Sent: Monday, February 19, 2001 10:02 Subject: Re: deleting old records VS. index on datetime field (que

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

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

2001-02-18 Thread Rolf Hopkins
wrong. - Original Message - From: "Jan Namedyński" <[EMAIL PROTECTED]> To: "mysql" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 21:09 Subject: deleting old records VS. index on datetime field (question about optimization) > Hi, > I have a table &g

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