Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Optimize analytical functions

Status
Not open for further replies.

sam93

Programmer
Jul 19, 2002
65
CA
Hi,

Are there any hints or methods specific to optimizing analytical functions in 9i? I've got a query that runs in miliseconds, but when I add an analytical function (FIRST_VALUE ..... OVER (PARTITION BY ..... ORDER BY ...), the it starts taking more than 10 minutes. The execution plan shows a window sort for it.

Thanks.
 
Do you have appropriate indexes? Is your statistics up to date? AFAIK there's no specific way to optimize AF but you may follow common performance tuning practices.

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top