Performance of Window Sort [message #613593] |
Thu, 08 May 2014 06:56 |
|
orc_dev
Messages: 2 Registered: August 2012 Location: gfdg
|
Junior Member |
|
|
Hi,
I am using MAX function in my query, which takes more cost (around 1,90,0000)
SELECT * FROM (SELECT Balance, product_id,
MAX(Balance) OVER(PARITION BY a.link_id,a.exp_value, a.party_id) as Max_balance
key,
range
from table_a a , table_b b
where a.id = b.id )X
where Balance = Max_balance
Is there any way to reduce execution time of this query?
|
|
|
|
Re: Performance of Window Sort [message #613603 is a reply to message #613593] |
Thu, 08 May 2014 07:58 |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
Menastec wrote on Thu, 08 May 2014 17:26Is there any way to reduce execution time of this query?
How could someone tune a query just by looking at it? No test case, no information. You did not follow even the minimal forum rules in order to help you.
|
|
|