Garayed.com  

Go Back   Garayed.com > Oracle
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-12-2007, 06:11 PM
Aftermath Fan
 
Posts: n/a
Default Bitmap or B-Tree indexes...?

Hi,

I have a table with about 120 million rows. I'd like to index two
columns. Column id1 has about 15,000 distinct values; column id2 has
about 600,000. Most of the queries are:

select <something> from <table> where id1 = ?
select <something> from <table> where id2 = ?
select <something> from <table> where id1 = ? and id2 = ?

I'm thinking for id1, the column with 15,000 values, a bitmap index
would be appropriate given its low relative cardinality. And for id2
and (id1,id2) a B-tree index.

Just looking for a sanity check...thanks.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:21 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.