Home » RDBMS Server » Server Administration » Range Partition Performance!
icon9.gif  Range Partition Performance! [message #170657] Thu, 04 May 2006 12:24 Go to next message
rkulasek
Messages: 15
Registered: April 2006
Junior Member
Hi -
I created Range partition for a table using following code --- but when I compare queries on the non-partitioned table and this range-partitioned table, I find that the non-partitioned table is still faster all the time !
We are using Oracle 10g. Do I need to set any Oracle parameters for range partitioning to work?
Any ideas please?
Thanks
Raja

=========
create table mytable partition by range(my_time) (partition part1 values less than (to_date('01-MAR-2006','DD-MON-YYYY')),partition part2 values less than (to_date('01-APR-2006','DD-MON-YYYY')),partition part3 values less than (to_date('01-MAY-2006','DD-MON-YYYY')) ,partition PARTMAX values less than (MAXVALUE) ) as (select * from base_table);

create unique index pk_myindex on mytable(my_time,mykey,myid) local (partition part1 ,partition part2 ,partition part3 ,partition part4);
alter table mytable add constraint myconstraint primary key(my_time,mykey,myid);

=========
Re: Range Partition Performance! [message #170659 is a reply to message #170657] Thu, 04 May 2006 12:25 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Statistics?
Did you collect them for tables(partitions)/indexes
Re: Range Partition Performance! [message #170754 is a reply to message #170659] Fri, 05 May 2006 01:28 Go to previous messageGo to next message
rkulasek
Messages: 15
Registered: April 2006
Junior Member
Mahesh

Sorry - I didn't understand your comment. Can you please explain what statistics I should collect and how? I am not familiar with this.

Thanks much
Raja
Re: Range Partition Performance! [message #170796 is a reply to message #170754] Fri, 05 May 2006 03:43 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Read sticky
http://www.orafaq.com/forum/t/51267/42800/
Search the forum for DBMS_STATS
and
PARTITION PEFORMANCE
Previous Topic: SGA size
Next Topic: Row chaining
Goto Forum:
  


Current Time: Fri Sep 20 12:32:14 CDT 2024