Results 1 to 2 of 2

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 ...

      
  1. #1
    Lurker
    Join Date
    Dec 2004
    Posts
    2
    Rep Power
    0


    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.

  2. #2
    Lurker
    Join Date
    Dec 2004
    Posts
    4
    Rep Power
    0


    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...

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •