Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: query performance
you also say that the *view* contains different numbers of rows in live and
development. It might also be helpful to show the difference in size of the
underlying tables between the two databases.
-- Niall Litchfield Oracle DBA Audit Commission UK "Ron Reidy" <ron_at_indra.com> wrote in message news:3BC505F9.FAF58626_at_indra.com...Received on Thu Oct 11 2001 - 09:08:02 CDT
> Ban Spam wrote:
> >
> > "Jim Poe" <jpoe_at_fulcrumit.com> wrote in
> > news:9q2imj$7bj_at_dispatch.concentric.net:
> >
> > > Hi,
> > >
> > > I did an explain plan for each database.
> > >
> > > Test Devl
> > > Cost 379431 7048
> > > Card 359135 4969
> > > Bytes 181363175 5371489
> > >
> > >
> > > Why would there be such a substantial difference between the two
> > > databases?
> > >
> > > --
> > > Jim Poe (jpoe_at_fulcrumit.com)
> > >
> > >
> >
> > Given the fact that you get a COST in both plans,
> > it appears that you are using the CBO. Therefore
> > try ANALYZE TABLE _____ COMPUTE STATISTICS;
> > against all the table involved on the TEST instance.
> > Then re-run the query.
> >
> > It might be helpful if you posted the WHOLE explain
> > plans from both & not just the summary.
> Also, dont' forget to analyze the indexes and the indexed columns.
> --
> Ron Reidy
> Oracle DBA
> Reidy Consulting, L.L.C.
![]() |
![]() |