hailong/enhanced-masterslaveconnection

Add common enhancements to the Doctrine default MasterSlaveConnection implementation.

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/hailong/enhanced-masterslaveconnection

1.1 2019-11-26 21:37 UTC

This package is auto-updated.

Last update: 2025-09-27 11:36:04 UTC


README

Add common enhancements to the Doctrine default MasterSlaveConnection implementation.

Enhancements

  • Force all the SELECT queries go to slave databases.

  • Use a better random function random_int to balance the load among slave databases.

Adoption in Symfony Application

Install the package and assign this enhanced version of MasterSlaveConnection to the wrapper_class property of doctrine configuration.