Master and Slave Connections
Master and Slave Connections
Posted by jwage 5 months ago
In this new cookbook recipe we demonstrate how you can setup multiple connections and use them as master/slaves. All select statements are issued to the slaves and any insert/update/delete statements are issued to the master. This example accomplishes the functionality by extending Doctrine_Query and Doctrine_Record. This article is a perfect example of how you can extend and override functionality in Doctrine to accomplish your needs when Doctrine doesn't necessarily have a native solution ready to go for you.
Comments (1) [ add comment ]
very nice - Posted by cedric sadai about 5 months ago.
excellent doc. A good way to show the flexibility of doctrine