I'm working on a database with 1,000,000+ records. It's a list of auto parts.
Currently the part appears for every year it services. There are about 200,000 actual parts, and on average each part covers a vehicle make or makes over 5 years.
If I changed the database so that there was a STartYear and EndYear field, I could compact the records down to about 1/5 the size. One record could handle multiple parts which are IDENTICAL IN EVERY OTHER WAY.
However, the query would be more complex, instead of
... and Year = 2001
you'd have
... and ( StartYear >= 2001 or EndYear <=2001)
Of course I'd index the new fields, as I would with Year if we didn't compact the records. Which would you suggest I do for speed of access?
Thanks,
Sam