I have a report query that joins 19 tables in DW. I know our DW schema design is not good. This query is running every night and gathering yesterday's activity. Our system went live in 06/2008, so the data volume for 1 day is a small portion compared to the entire data volume.
The query execution time was generally 5~10 minutes and the execution cost is about 70,000. And it is using index/nested loop. Cost is low. Everything looks good.
In this month, the query is getting slower and slower yet execution cost remains same. It is still using index, the execution cost is still low but it is running over 1 hour.
Any idea??