Daily partitioning

  • From: Stefano Cislaghi <s.cislaghi@xxxxxxxxx>
  • To: Oracle L <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 14 May 2010 12:05:10 +0200

Hi all,

just a question to discuss. I've a table want to be partitioned. Partition
key should be a date field.
This table will retain data for last 40 days from sysdate, i.e.   delete *
from mytable where date < sysdate-40

Managing a partition for each day is too big ... 31 partitions.
There's a way with virtual column reference the day of week and creating 7
partition...
Hash partition maybe useful ... but

... but how optimizer will use efficiently a partition based on virtual
column for day of week when the query reference only the full date field?
and also..how will use using hash partitions?

Any suggestion will be appreciated


Stefano

-- 
http://www.stefanocislaghi.eu

Other related posts: