osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Dual database implementation

This is a discussion on Dual database implementation within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I'm working on building a store that has about 400,000 products that are updated every day. I've coded an application ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-23-2004, 09:01 AM
Lurker
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
truedeals
Default Dual database implementation

I'm working on building a store that has about 400,000 products that are updated every day. I've coded an application that updates the database and automatically creates the required categories, subcategories, etc. This application accesses zip files from an FTP site, loads them to my server, unzips them and then places all the data in the oscommerce database, while forming the category/subcategory structures according to the new data.

This update process takes about 30 minutes to complete. I'd really like to perform the update without taking the site offline for this length of time, so I plan on loading one database with the new data, while another database provides data to the site. Once the update is complete, I'd like to switch over to the fresh database. The swithing process should happen almost instantly. This way, the site could remain online almost all the time.

Can anyone that's had any experience in this area provide advice or at least give some pointers?

Thanks,
Bill G.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 12-23-2004, 10:25 AM
Lurker
 
Join Date: Dec 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
GroverDill
Default RE: Dual database implementation

hi.

Switching from one database to another is technically as easy as changing the db address entries in the config file. The only thing that would concern me about this approach is you may lose recent updates made to your "old products" database, for instance, new customers and orders. It probably would not be funny to lose orders in this fashion.

Thus, if you want to use a separate db, I'd suggest that you create a script to make sure the "new products" db is correctly synchronized for orders and customers (and addresses and config... basically all non-product tables) at the exact moment you make the switch (interesting to note that all this overhead will make the process quite a bit less instantaneous than you'd probably like). Also, I'd still suggest that you schedule all of this during slow store hours, just in case...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
HELP MY DATABASE IS GONE!! markymrk22 osCommerce 2.2 Discussion 4 07-28-2005 11:39 AM
Dual Log-in Pages SleepingEye osCommerce 2.2 Modification Help 0 10-07-2004 07:53 AM
Database marbor osCommerce 2.2 Installation Help 1 01-26-2004 07:33 AM
Implementation of discounted pricing based on item number teksavvy osCommerce 2.2 Modification Help 0 09-14-2003 01:12 PM
What name should database be? Anonymous osCommerce 2.2 Installation Help 2 11-25-2002 06:31 AM


All times are GMT -8. The time now is 04:11 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax