Skip to content

Add common enhancements to the Doctrine default MasterSlaveConnection implementation.

License

Notifications You must be signed in to change notification settings

Hailong/enhanced-masterslaveconnection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enhanced MasterSlaveConnection

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.

About

Add common enhancements to the Doctrine default MasterSlaveConnection implementation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages