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 February 20th, 2005, 11:44 PM
rajiv_iyer rajiv_iyer is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 4 rajiv_iyer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 11 sec
Reputation Power: 0
Update query taking long time to complete

There is a specific update query in our application which is taking long time to complete. The cost of the update query is very less. But it becomes fast as soon as we analyze the schema. Please let us know what has to be done regarding this problem. Also the schema has been analyzed the day before and ideally the update should have been fast but we had to repeat that procedure again. Please let us know what should be done to avoid this.

Reply With Quote
  #2  
Old February 21st, 2005, 10:06 AM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,308 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 55 m 17 sec
Reputation Power: 48
1. Make sure that there are indexes and you use them correctly.
2. Switch to rule based optimization - add a hint= UPDATE /*+ RULE */ .....

Cost based optimizers use statistics from ANALYZE TABLE COMPUTE STATISTICS.
If the stats are way off, the optimizer will make bad choices.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Update query taking long time to complete


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