On Saturday, April 28, 2018 at 5:45:23 AM UTC-4, [email protected] wrote:
>
> I'm not sure what you mean here: "during setup" meaning when the app
> starts, or when the request is being handled?
When the app starts, anything called in (or by something called in) your
pyramid's app's `main()` (or the equivalent in middleware). Connecting to
the database before a request is handled in a fork o threads will create
and populate the connection pool with database connections -- which are not
safe across forks or threads. It's the most common cause of issues I've
seen in SqlAlchemy webapps.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pylons-discuss/fa5d06e5-b16d-4ce5-a2f8-bc7b6a79d941%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.