|
Posted by Doug on 02/26/06 04:05
try to bring it up a level.
for instance, you are probably creating a temp table? Perhaps create
the temp table with closer to the data you really need.
if you are looking for only one cusotmer, then only pull that one
customer. or, for a specfiic time period, then only that time period.
also, make sure you have an index on inactivetable.key.
if you knew that inactivetable started at some timeframe for all
records, then you could create a composite index on
inactivedata.timestamp plus key.
would it be worth putting an "inactive data datestamp" at the customer
level? perhaps if you have enough rows.
[Back to original message]
|