yucca-php / yucca

ORM for multiple data sources (memcache, sharded Databases).
MIT License
30 stars 5 forks source link

[MASTER /SLAVE] #13

Open rjanot opened 10 years ago

rjanot commented 10 years ago

Define masters and slaves for databases and allow read from slaves (and eventually from master) Some parameters are already existing , but not functionnal

stof commented 10 years ago

If you use Doctrine DBAL for your provider implementation, it already supports MasterSlaveConnection

rjanot commented 10 years ago

Great, thanks for the advice !

stof commented 10 years ago

A nice improvement would be to make the bundle rely on DoctrineBundle to configure the connection instead of doing it itself. Instead of passing the connection config when configuring the provider, it should be possible to pass the name of a connection managed by DoctrineBundle (passing basic options explicitly can still be supported for BC). this way, it is possible to support all DBAL features as soon as the Doctrine team supports them