PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 18th, 2007, 07:06 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Posts: 38
load balance mysql

in order to improve the performance of the database queries, I would like to know how to modify the query function to do the following if I have Mysql server A and B.

if query command is "SELECT" then use server A.

if query command is "DELETE,UPDATE, or INSERT" then use server B.

As you can see server B is the master and A is the slave for read only.
letmein is offline   Reply With Quote
Old July 18th, 2007, 11:05 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,665
Sorry I dont run load balanaced mysql servers so I cant really bring anything to the discussion but this.

You would need to hand modify every query in the program to select the proper database if thats how you want to do things

Good luck. Most load balanced servers though do not do what you want to do. They run normal and before switching actually do a sync with the other database then load and use that one.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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
Server Load mihirp General Discussion 1 February 9th, 2007 12:28 PM
Some Images Will Not Load pablozed Installs and Upgrade - vBulletin 3.6x 2 January 3rd, 2007 04:32 PM
Load more than one pic at a time!! NandyGeorges How Do I? - vBulletin 3.5.X 0 October 4th, 2006 01:09 PM
video won't load nnowakow Photopost Pro How Do I...? 4 October 20th, 2005 12:18 AM


All times are GMT -5. The time now is 07:19 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0