enhancing performance of join [message #587589] |
Mon, 17 June 2013 04:58  |
 |
enxsnx
Messages: 1 Registered: June 2013
|
Junior Member |
|
|
Hi Guys,
I just registered this site in order to share and get some help for my oracle sql queries.
I have a table which is updated with new records in each 15minutes from network. In order to get the accurate information I must do some arithmethic calculations on some variables.
For example, if the value for column A is 10 @9.45AM and 15 for @10AM the real result should be 15-10=5 for 10AM; because the values are cumulative so I need to subtract.
Similar to this I have same operations for 9 more attributes in my table as well.
In order to handle this I used view and did necessary operations by using joining table like this (table name is Operations lets say and id is Primary Key)
create view ....
...
from Operations current, Operations prev
where current.datetime(+) = prev.datetime - 1 / 96
and current.id = prev.id
When I use this view, the simple select query takes about 15min since I have 25GB record for this table.
What can I use instead of this join and solve cumulative values issue?
Regards
|
|
|
|
|
Re: enhancing performance of join [message #587646 is a reply to message #587644] |
Mon, 17 June 2013 12:41  |
 |
Michel Cadot
Messages: 68767 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote:Why did you not mention the column list in your view DDL? What about the DDL for the table?
As I already told to you this OUR (moderators) job NOT yours.
Refrain to post these sentences (above all when it has already been asked).
And do NOT answer to this post, this is boring in the end.
You are wrong, full stop!
Regards
Michel
|
|
|