Character vs. Numeric Searches
From: Jean Anderson <jean_at_beno.CSS.GOV>
Date: 25 Mar 92 18:50:54 GMT
Message-ID: <50579_at_seismo.CSS.GOV>
Date: 25 Mar 92 18:50:54 GMT
Message-ID: <50579_at_seismo.CSS.GOV>
Lately quite a few users have asked me if a search on a uniquely indexed
column is faster if it is numeric than character (these are all equality
matches).
I have told them 'no', that their fastest search will be on that uniquely
indexed column, regardless of data type (path #2 in the DBA Guide, 19-17).
I have told them width of column matters more than data type. You'll have
more physical io on a wide index because Oracle can't cache as much of the
index. The smaller the index, the more that can be cached.
Am I right? or all wet? My answer is encountering much skepticism.
- jean
+-----------------------------------------------------------------------+Received on Wed Mar 25 1992 - 19:50:54 CET
| Jean Anderson, DBA email: jean_at_seismo.css.gov |
| SAIC Open Systems Division, MS A2-F or: jean_at_esosun.css.gov |
| 10210 Campus Point Drive phone: (619)458-2727 |
| San Diego, CA 92121 fax: (619)458-4993 |
+-----------------------------------------------------------------------+
| execute sp_disclaimer _at_opinion="mine" |
+-----------------------------------------------------------------------+