Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Performance & Tuning >> How the performance can be improved by Table Partitioning

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: How the performance can be improved by Table Partitioning
 arsavad  Posted: Sep 18, 2007 11:00:47 AM

 Total Post: 5
 Joined: May, 2007






 I did partitioning on a table having size more than 2GB..I did a range
partitioning on month column..But it was surprising that the cost was
increased (and execution time also), when I run a query on this
partitioned table than the unpartitioned..But I read from documents that
it will improve performance..Can anyone help me with examples..This is a
little bit urgent.

 Mohammed Taj
Posted: Sep 18, 2007 12:32:19 PM  

 Total Post: 694
 Joined: Jul, 2007






 
Hi,
this is insufficient information.
please provide more.
1. what is your oracle version
2. what is your execution plan with partitioning.
3. what is your execution plan with non partitioning.

Regards
Mohammed Taj
http://dbataj.blogspot.com

 Oracle Virus
Posted: Sep 21, 2007 08:22:59 AM  

 Total Post: 50
 Joined: Jan, 2007






 
Hi,
Partitioning will obviously increase the performance compared to non-partitioned table. But there are some pre-requisites which you have to self-validate to decide why you are going for partition and what type of partition will help you.
What problem i found with the generic information you posted here is, you created a partition on a table and your query is not filtering based on the partition you created. so the performance is degraded / not improved.
What exactly I mean to say is, if your query is using date/month column in the where clause then only you can see performance increase. If you fire a query like "select sum(sales_value) from ft_sales where to_date(sale_date)= '01/01/2007'" you can see markable performance increase. The same way if you are firing a query like "select sum(sales_value) from ft_sales where sales_value > 50000" you will see performace degradation / no improvement.
The reason behind this is you are no where using the date column for filtration so it has to search all the partitions for searching sales_value > 50000 where as in my first query it will go to particular partition where that date range will fall in.
Any questions please revert back.

Thank You,
Aneel Kanuri.

 dbavinod
Posted: Oct 19, 2007 05:28:25 AM  

 Total Post: 90
 Joined: Sep, 2006






 
Hello
YEs it improves perf but not in all cases
"Partitioning improves query performance". In many cases, the results of a query can be achieved by accessing a subset of partitions, rather than the entire table. this technique (called partition pruning can provide order-of-magnitude gains in performance.
so it depends on right dicision on right time for right object
Vinod


 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi239
  neeraj sharma228
  Ramesh Jois226
  snehalatha p169






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software