Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: separate data/inidex
With 10,000 rows I'd not argue with you. In fact below 40,000 rows I'd not argue
with you. At 10,000 rows the only index I would create would be one created by a
required constraint. But try that same experiment with the 1.4 million parts in a
747, understanding that every part may be in there multiple times (for example at
one time there was a choice 21 different pilot clipboards). Then add the sub-models
(different seating capacity, different galleys, etc.) then add 717, 737, 757, 767,
and 777 models.
You are correct with the example you gave. But I can't believe that with 100,000,000+ rows you would ever find this to be the case. Am I wrong?
Daniel Morgan
Connor McDonald wrote:
> Daniel Morgan wrote:
> >
> > I agree. I thought he was saying that most of the time we do full table scans,
> > etc. And given that many of my application tables have been in the
> > multi-gigabyte range that would be a complete non-starter.
> >
> > When one is looking for a single part of a Boeing 747 ... one does not want to
> > scan every part for every plane ever made.
> >
> > Daniel Morgan
> >
> > Jonathan Lewis wrote:
> >
> > > Comments in-line
> > >
> > > --
> > > Jonathan Lewis
> > > http://www.jlcomp.demon.co.uk
> > >
> > > Author of:
> > > Practical Oracle 8i: Building Efficient Databases
> > >
> > > Next Seminar - Australia - July/August
> > > http://www.jlcomp.demon.co.uk/seminar.html
> > >
> > > Host to The Co-Operative Oracle Users' FAQ
> > > http://www.jlcomp.demon.co.uk/faq/ind_faq.html
> > >
> > > Daniel A. Morgan wrote in message <3CC2CB08.64C747AF_at_exesolutions.com>...
> > > >Please help me here with two things.
> > > >
> > > >1. "Nowadays to satisfy queries, you're full scanning tables, full scanning
> > > indexes,
> > > >not using indexes at all,...."
> > > >
> > >
> > > It is very easy to misunderstand the intent of a comment
> > > on the newsgroup, but I think if you re-read Connor's post
> > > carefully you will appreciate that he is not saying "you must
> > > full scan tables"; he is simply listing a number of the mechanism
> > > that are commonly (and necessarily) activated in a modern system.
> > >
> > > >Since when? I work very hard to not do these things.
> > > >
> > >
> > > Don't work too hard at it. Sometimes the biggest
> > > performance problems are introduced by trying
> > > to push Oracle too hard into paths which use
> > > index range scans and index unique scans to
> > > access tables by rowid; resulting in excessive
> > > CPU usage and CBC latch contention.
>
>
>
>
>
>
>
> TABLE_NAME NUM_ROWS BLOCKS EMPTY_BLOCKS
> ------------------------------ ---------- ---------- ------------
> BOEING1 9999 153 6
> BOEING2 9999 153 6
>
>> NUM_DISTINCT DENSITY
> TABLE_NAME COLUMN_NAME
>
>
> MAX(X) MIN(X) AVG(X)
> ---------- ---------- ----------
> 49 0 24.5024502
>
>
> MAX(X) MIN(X) AVG(X)
> ---------- ---------- ----------
> 49 0 24.5024502
>
>
>
>
>
>
>
>
>
>
>
>
>
>