Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^7: Change DBI database on runtime

by zwon (Monsignor)
on Nov 16, 2011 at 12:33 UTC ( #938363=note: print w/ replies, xml ) Need Help??


in reply to Re^6: Change DBI database on runtime
in thread Change DBI database on runtime

Yes, you're right, I think Catalyst::Model::Factory::PerRequest is not supposed to be extended by replacing ACCEPT_CONTEXT method, it's more like it should extend your class. I recommend you reuse caching from it though, note that it doesn't build new object for the same context twice. Otherwise I think everything is correct.


Comment on Re^7: Change DBI database on runtime
Download Code
Re^8: Change DBI database on runtime
by miguelele (Beadle) on Nov 17, 2011 at 13:43 UTC

    Thank you for your assistance!
    I am happy just not doing stupid things in this stage. Optimization will come later.

    Regards

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://938363]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2015-07-04 01:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls