[EMAIL PROTECTED] wrote:
> Hi folks,
>
> I created a new storage class which supports MySQL replicated data source:
> one
> master database where all the writing-related queries executed and it is
> replicated to one or more slave databases where all the selects are executed.
>
> Please check it, try it and I'm eager to see any type of comments...
This should (a) not be specific to one database (b) use DBD::Multiplex so it
doesn't re-invent wheels.
Please don't use AUTOLOAD, it'll slow things down; generate out the methods
instead.
Finally, you need to lock to the write source during a transaction for
consistent read.
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/