Geeks Talk

Prepare for your Next Interview




Updating 10 million rows

This is a discussion on Updating 10 million rows within the Oracle forums, part of the Databases category; I have a table having 10 million rows. I need to update one column, last time it is took around 8-10 hours, Is there any other way, so that ...


Go Back   Geeks Talk > Databases > Oracle

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-09-2007
Junior Member
 
Join Date: May 2007
Location: India
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
madivals is on a distinguished road
Updating 10 million rows

I have a table having 10 million rows. I need to update one column, last time it is took around 8-10 hours, Is there any other way, so that the process can be completed in 3-4 hours?. (Oracle 9i, W2k platform)
Reply With Quote
The Following User Says Thank You to madivals For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 05-10-2007
Contributing Member
 
Join Date: Jan 2007
Location: india
Posts: 41
Thanks: 7
Thanked 3 Times in 3 Posts
aardvax is on a distinguished road
Unhappy Re: Updating 10 million rows

Quote:
Originally Posted by madivals View Post
I have a table having 10 million rows. I need to update one column, last time it is took around 8-10 hours, Is there any other way, so that the process can be completed in 3-4 hours?. (Oracle 9i, W2k platform)

hi madi
the effort can be reduced to 3-4 hours but there is only one way
that you group your task according to common entries and update them one by one....sorry i was joking..
please if you could post a screen shot of your table structures and the task listed then there is some thing whcih can be planned for these...else you can add a column and fill in the new entries and dropping the old column
i think that should work....
i will do some research an then will let you know
thanks for posting such question
Reply With Quote
  #3 (permalink)  
Old 05-11-2007
Contributing Member
 
Join Date: Apr 2007
Location: bangalore
Posts: 46
Thanks: 0
Thanked 9 Times in 9 Posts
reetasharma108 is on a distinguished road
Re: Updating 10 million rows

If there are indexes on the table then first drop them and then update ur table with new column.After the update of the table recreate the indexes.

This will reduce lots of time.

Reeta
Reply With Quote
  #4 (permalink)  
Old 05-11-2007
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 523
Thanks: 1
Thanked 55 Times in 46 Posts
sutnarcha is on a distinguished road
Re: Updating 10 million rows

There are not many options to help reduce the updating time.

You may try applying the command multiple times by updating the column for a particular group of records each time.

I think this may be faster because the database will not have to update all the records at the same time. This saves some memory (RAM) space and utilizes the same for other operations.
__________________
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.

-sutnarcha-
Reply With Quote
Reply

  Geeks Talk > Databases > Oracle


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Cyclic Updating JobHelper Oracle 2 10-13-2007 05:06 AM
Rejected rows JobHelper Data Warehousing 3 05-14-2007 06:17 AM
Updating Java version Geek_Guest Java 1 04-16-2007 09:13 AM
Updating table with group of line items Lokesh M SAP R/3 0 12-10-2006 06:47 AM
India is not a country of 100 million... Quot Mukesh Ambani Lokesh M Geeks Lounge 0 10-10-2006 04:26 AM


All times are GMT -4. The time now is 01:44 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved