Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » oracle l »

Re: full-scan vs index for "small" tables

Connor McDonald

2006-06-28

Replies:

Interestingly, with reference to:

"Spinning in memory is relatively rare and can be constructed with
Connor McDonald's sinister "hit ratio adjusting tool" but I didn't see
to many of it in real life."

In my experience, its all too common... in particular queries to dual
- heaps and heaps of

select user from dual
select sysdate from dual
select <sequence>.nextval from dual
select <simple expression> from dual

dual...dual....dual....dual....dual.....aarrrggghhh!

closely followed by:

select <description>
from  <generic_application_wide_reference_lookup_table>
where domain = ...
and   surrogate_key = ...



--
Connor McDonald
===========================
email: connor_mcdonald@(protected)
web:  http://www.oracledba.co.uk

"Semper in excremento, sole profundum qui variat"
--
http://www.freelists.org/webpage/oracle-l


©2008 dba.5341.com - Jax Systems, LLC, U.S.A.