Re: [web2py] Re: SQLite lock (using DAL in a module)

2017-02-09 Thread Michele Comitini
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

[web2py] Re: SQLite lock (using DAL in a module)

2017-02-06 Thread Anthony
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

[web2py] Re: SQLite lock (using DAL in a module)

2017-02-06 Thread MarkEdson AtWork
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 =