Re: [PERFORM] Paritioning vs. caching

2010-03-08 Thread Josh Berkus
> 1. When I query the table by ID, it performs index scan on each > partition. The result is only found in one partition, but I understand > why it needs to look in all of them. How much disk reading does it > involve? Is only the "head" of indexes for partitions that do not > include the row scan

Re: [PERFORM] Paritioning vs. caching

2010-03-08 Thread Anj Adu
If the partitioned column in your where clause does not use hardcoded values ...e.g datecolumn between 'year1' and 'year2' ..the query planner will check all partitions ..this is a known issue with the optimizer On Mon, Mar 8, 2010 at 10:28 AM, Konrad Garus wrote: > Hello, > > I am evaluating a m

[PERFORM] Paritioning vs. caching

2010-03-08 Thread Konrad Garus
Hello, I am evaluating a materialized view implemented as partitioned table. At the moment the table is partitioned yearly and contains 5 numeric/timestamp columns. One of the columns is ID (but it's not what the table is partitioned on). Partition for one year occupies about 1200 MB. Each of the