[dancer-users] Dancer calling database connection

Mike Cu mike_cu80 at yahoo.com
Mon Sep 21 09:43:09 BST 2015

the Dancer advent calendar says that:  Use Starman's --preload-app option to enable this (but be aware that this can cause Bad Things to happen if resources like database connections or other sockets are opened by your app at compile time, as they will be unintentionally shared amongst child processes.
 what is actually meant by that? when a url is requested my route is calling the model which opens a database connection, does sql and closes the connection. 

So this is done at runtime. when would calling database connection at compile time then ?also calling connect_cached would cause any problems under a preforked server like starman? 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150921/24808df2/attachment.html>

More information about the dancer-users mailing list