If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > strategy of a database update

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-12-11, 13:10
krontrex krontrex is offline
Registered User
 
Join Date: Sep 2010
Posts: 37
strategy of a database update

Dear all,
I have the following probolem.
I need to update a database with several thousands users having reading access. My idea is to make separate updated table than to rename old and updated table (this gets the name of the old table) and then to delete old table. Is there any better way to do this.
Database contains around 20 milions entries 5MB so I need to find an efficient way to update table as fast as possible so without obstructing (as much as it is possible!) reading access. The update depends on the external resources and it is performed in regular time intervals (once per week).
What is the best practice for this?
Thanks
Reply With Quote
  #2 (permalink)  
Old 10-17-11, 15:29
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
Are you updating the data in the table, or are you changing the table design weekly?

If you're updating the table data weekly, what is the purpose of the update? And, why do you feel the need to go through an elaborate process in this update?

If you're updating the table design weekly ... WHY?
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On