Home > Ask the Oracle Experts > Database Design and Architecture Questions & Answers > Dropping composite index to improve performance
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Dropping composite index to improve performance

Brian Peasland EXPERT RESPONSE FROM: Brian Peasland

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Oracle tips, scripts, and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 04 January 2006
My table has a composite primary key on five columns, so indexes also have five columns. If I want to improve performance can I drop the composite index and build an index on each of the five columns individually? Would this help me in improving performance?

>
EXPERT RESPONSE

If you have defined a Primary Key constraint on a table and the PK constraint is composed of five columns, then Oracle will create an index on those five columns, in the order you specified in your PK constraint definition. You will not be able to drop this composite index without dropping the PK constraint, so you'll have to weigh that decision before you take action. Typically, one does not drop the PK constraint on a table.

I cannot determine if indexing the five columns individually will help improve performance. There are too many variables. It all depends on your data size, distribution and access patterns. The only way to know for sure if your performance will improve is to measure your performance with the composite index and then measure the performance with individual indexes. Then see if performance improved, deteriorated or stayed the same.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Database Design and Architecture
Oracle error 942 when exporting a schema
Using exp and imp for Oracle Database when switching platforms
Can I populate tables in MS ACCESS and upload to the Oracle server?
User vs. schema in Oracle
Is there any tool to migrate data from DB2 to Oracle?
Does making an Oracle datafile READ ONLY after a backup change the file?
I have space in log_arch_dest, so why am I getting the ORA-00257 error?
Why am I receiving the ORA-12535 error when using a remote database?
Partitioning a table in Oracle to improve performance
How to set up a job for an SQL query in Oracle 10g Grid Control

Oracle database design
Weighing remote database administration pros and cons takes care
Oracle Database 11g makes waves at Burlington Coat Factory
How to create a database link in Oracle
Data modeling tools no substitute for hard work
How do I do that in Oracle?
The Oracle Database user's guide to Oracle OpenWorld 2007
Oracle OpenWorld 2007 Special Report
How many redo log files?
How to move tables from system tablespace to user tablespace
ORA-12560 error with Oracle 10g Instant Client

Oracle database performance problems and tuning
Oracle 11g data compression
Varchar or number for better performance?
Do statistics on SYS-owned objects hurt performance in 10g?
Inside the Oracle 11g SQL Performance Advisor, part 1
Inside the Oracle 11g SQL Performance Advisor, part 2
Difference between driving table and driver table in Oracle
Best design for E-Business Suite on hard drive
20GB data dictionary causing performance problems
Using the cost-based optimizer to improve Database 10g performance
Online tablespace reorganization in Oracle 9i

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
extent  (SearchOracle.com)
field  (SearchOracle.com)
flexfield  (SearchOracle.com)
foreign key  (SearchOracle.com)
quad tree  (SearchOracle.com)
record  (SearchOracle.com)
row  (SearchOracle.com)
splay tree  (SearchOracle.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts