Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dancer calling database connection
by Anonymous Monk on Sep 18, 2015 at 21:34 UTC |