Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL grouping continous records
> Rene Nyffenegger <rene.nyffenegger_at_gmx.ch> wrote in message news:<b2bqaq$1b3trk$1_at_ID-82536.news.dfncis.de>...
> Oracle Version is 8i. > > Dear Rene, > for this small example is your resolution perfect. > But i have thousands of records and the performance is down. > I think the reason is the Inline-View for calculating row_last_different.
> I created the Inline-View as View.
That won't make much of a difference.
> Problem: If I select some Records of the view, before the Records > are returned the View was completely for the whole Tabele executetd.
What did you expect? If you don't confine the access to the underlying table, a full table scan will be performed, which takes time according to its size. If you want to speed up things, you need to only query a portion of the table and have an index on it.
hth
Rene Nyffenegger
> > Can you help me? > > Thx > Peter >
-- no sig todayReceived on Fri Feb 28 2003 - 10:57:08 CST