My gameserver utilizes a Master and a slave on one server. The reason I am wanting to use a slave is because I want to beable to run select queries (read only) to get data without affecting the Master database.
For example, a table on the Master gameserver that is being replicated is called rpg_user_items
. It stores hundreds of thousands of items, and I want to select some of this data to show to the player (without being in-game); think of a web inventory browser.
My dilemma is: Would selecting the data from the slave
be the more appropriate thing to do? And would it technically take load off the Master server? (Maybe, the Master server can even perform better since select queries are not being used on it all the time?)
Edit: My MYSQL version is 5.6.24, using InnoDB. The frequency of insertions are around 20+ req/s. (Inserting 1 row into rpg_user_items) with 15 row fields being a mix smallint
and tinyint
data types.