And where is the good pace to make such call? Has web2py some place
which is guarantied to be called after response has been sent to
browser?

David

On 9 kvÄ›, 13:14, rfx_labs <[email protected]> wrote:
> Hi David,
>
> I think the problem is that modules and controllers are executed on
> every page call.
>
> The web2py DAL open AND close a new connection to the DB on ever page
> call. Maybe you shut do the same for mongo too.
>
> >>> connection = Connection()
> do your stuff
> >>> connection.disconnect()
>
> Martin
>
> On 9 Mai, 08:22, David Marko <[email protected]> wrote:
>
>
>
> > Thank you for your response. I still have the problem with the
> > connection object to MongoDB as stated in my first post. Where to put
> > the lines establishing the connection?

Reply via email to