The shop can be operated with several databases. One database is the master database that mainly handles write accesses. Slave databases contain mirrored data and handle read accesses. Based on this fundamental distinction, database accesses are distributed to the master database and to the slave databases by a load balancer.


Master/slave is enabled by making an entry in

$this->aSlaveHosts = null;

In this entry, all server addresses of the slave databases are specified as an array. The example uses two slave databases.

$this->aSlaveHosts = array('slave1host', '');