A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Oracle HASH GROUP BY & SORT GROUP BY performance
Joined: Jul 19, 2006
Mar 24, 2008 22:09:00
I have a select query which uses GROUP BY and HAVING clause performing selct over 3 million records.
In oracle 10g one version (i think rel 2), the explain plan shows HASH GROUP BY and this query runs very fast.
In oracle 10g another version (i think rel 1), the explain plan shows SORT GROUP BY and this query takes hours.
Pls suggest what should i do? Is there any hint that can make the query use HASH GROUP BY instead of SORT GROUP BY.
Or is there any other option that i should try?
Thanks in advance.
I agree. Here's the link:
subject: Oracle HASH GROUP BY & SORT GROUP BY performance
user groups for oracle database
Need help - Lot of joins are slowing down my query
Regarding Exam 1Z0-001(OCP)
pre-compile and prepared statement
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013