[Catalyst] Per request DBIX Class Schema Connections

Chris Grafham cgrafham at yahoo.co.uk
Sun Oct 4 11:19:33 GMT 2009



Im looking for some advice for best practice for the following situation -


1. =A0HTTP Request arrives.
2. =A0Determine if a database connection is required for either a MySQL rea=
d-only slave or write master (via a piece of custom code based on request U=
RL).
3. =A0Connect to chosen database ($schema->connect).
4. Disconnect at end of request (no persistent db connections).

Thanks in advance.



      =

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20091004/10d26=
ae4/attachment.htm


More information about the Catalyst mailing list