Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Rank Function and very poor performance.

399318Feb 17 2009 — edited Feb 17 2009
Hi,

I'm ranking visits to a page and have this code, but for the data volumn 14Million rows and more,
this takes hours. Please suggest as how I can speed this up...

update table a
set theme_rank = (
select rank_theme from (
select /*+parallel( table, 4 ) */
theme_desc,
rank( ) over( order by sum( visits ) desc nulls last ) rank_theme
from table
group by theme_desc
) b where a.theme_desc = b.theme_desc
);

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2009
Added on Feb 17 2009
6 comments
995 views