Home > Ask the Oracle Database / Applications Experts > Questions & Answers > Indexes for accessing marked rows
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Indexes for accessing marked rows

Paul Baumgartel EXPERT RESPONSE FROM: Paul Baumgartel

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


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


>
QUESTION POSED ON: 21 June 2005
We have a column used to hold a 'Y' or NULL value. There can be one to hundreds of values set to 'Y' in a table with hundreds of thousands to a several million unique primary keys. This column is to "mark" rows temporarily for use by core transaction components external to Oracle. We've been using Oracle's standard B-tree indexing, and also tried the bitmap. Does the act of setting the column/value to NULL instigate a delete from an index, thus leaving a slot that will remain unused until reindexing? Generally, can an index help in this situation? If so, what is the right kind of index configuration? Or is there a better solution to making access to all "marked" rows, and unmarking them, as fast as possible?

>
You are correct that Oracle does not index a row in which all index columns are null. Indexing can certainly help in this situation. What you've done so far makes sense. I assume that you have determined whether a B-tree or bitmap index gives you the best performance. Have you considered the use of column histograms with a B-tree index? If properly used, these can supply crucial information to the optimizer on whether to use an index. In your case, you'd gather the histograms after all of the columns were marked, but before you ran the processes that use the external components.


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



RELATED CONTENT
Oracle database performance problems and tuning
Oracle releases new database, says 11g upgrade will cut costs
Oracle raises prices on database management packs
Oracle New Year's resolutions, part 1: Advice for navigating 2009
Solving common Oracle errors guide
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

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



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

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




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