sql server 2005 - How do you do to keep useless datas with good performance? -
environment : sql server 2005, windows server 2003
the system in question online booking system. in it, can create special offers.
a special offer has period of validity.
we keep in our database every period entered our client if period in past. have keep these periods.
the system exists since 10 years of periods in database past.
the problem :
- to select periods special offer long
- i select special offers no valid period associated, have select offers , periods, , after remove offers doesn't have valid period.
how manage kind of case ? there built-in tool ignore part of data in case ?
you can speed things adding right indexes, if doesn't (enough) can think creating second table archive past offers in. way, won't bothered old data, if need (for reports or other reasons) can still refer archive.
Comments
Post a Comment