Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 1st, 2005, 02:10 AM
Deepak Bhattad Deepak Bhattad is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 4 Deepak Bhattad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 56 sec
Reputation Power: 0
Data Retrieving very slow!

Hi all,

Could anybody please help me out with this???

I am actually trying to retrieve data by using all the possible filter fields but then my query performance is very poor..
Its actually taking a second or so and thats a part of a function and when i run the main query which calls the function then the entire data is fetched in 26 seconds which is quite long...

When i run the query which is a part of the function ,using a filter field which is the basis for my data to be classified the query returns the data in 1 second and when i remove that filter field then it takes 30ms. But as i told you that filter field is very important and the basis for my classification...

So please suggest some remedy and also faster as this is very urgent.

Thanks.

Reply With Quote
  #2  
Old June 1st, 2005, 03:26 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,815 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 1 Day 14 m 37 sec
Reputation Power: 278
The best advice I can give you is to make easy for others to understand your problem, this can be accomplished by posting the relevant DDL and DML statements.
Also note that these is a free forum where people come on a volunteer basis so there is nothing like "very urgent".

Reply With Quote
  #3  
Old June 1st, 2005, 03:35 AM
Deepak Bhattad Deepak Bhattad is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 4 Deepak Bhattad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 56 sec
Reputation Power: 0
CREATE OR REPLACE function COUNT_ISSUES_Test(NAME IN VARCHAR2,TEMP1 IN NUMBER,TEMP2 IN NUMBER)
return NUMBER as
temp_count number;
begin
select count(*) into temp_count
from Kcrt_requests_v
where request_type_name='Visionplus Application Issues' and batch_number=1 and visible_parameter27='VisionPlus Prod Support - UK'
and substr(parameter4,1,10)<=to_char(sysdate-TEMP1,'yyyy-mm-dd')
and substr(parameter4,1,10)>=to_char(sysdate-TEMP2,'yyyy-mm-dd')
and status_code='IN_PROGRESS' and status_name=NAME;
return temp_count;
end;
/


Well this is the query that i was talking about.

Here the most important filter field is status_name which i am passing to the function.
And as i have already mentioned... when i dont use this filter field the query returns the count in 30ms but the same query takes 1 sec along with the 'status_name' filter field.

Also the view which i have used 'kcrt_requests_v' has at present 1500 records only.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Data Retrieving very slow!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway