Just for the sake of completeness modules are NOT reloaded at each http
request. Modules are loaded and kept in the outer context of the
interpreter at first import, unlike the request context which is rebuilt at
each round by reading the models.
2017-02-06 21:48 GMT+01:00 Anthony :
> On Mond
On Monday, February 6, 2017 at 11:20:41 AM UTC-5, MarkEdson AtWork wrote:
>
> Also consider that every time any http request is made that all of your
> modules will be loaded. It may be helpful to use cache.ram to store your
> database connection so you can re-use it rather than creating a new
Also consider that every time any http request is made that all of your
modules will be loaded. It may be helpful to use cache.ram to store your
database connection so you can re-use it rather than creating a new
connection to the database on each request.
something like...
self.dal_db = cache
3 matches
Mail list logo