Re: [ADMIN] Query Optimization with Partitioned Tables

2010-09-02 Thread Kong Mansatiansin
WBL, Unfortunately, with the way it originally designed, there is no column that our existing queries and views use as predicate to take advantage of constraint exclusion. That said, it might imply that these tables are not good candidates for partitioning in the first place. The only main purpos

[ADMIN] Query Optimization with Partitioned Tables

2010-09-01 Thread Kong Mansatiansin
I recently shrunk over 90% of two huge tables on our production database by partitioning 3-month recent data into 3 separate partitions each and got rid of the rest of the data. Despite the smaller sizes, our queries now run slower. The following complex query/view with 8 joined tables, especiall