Yes, I know, but you should be able to use it without DAL using
pymongo as a primary MongoDB python driver. And thats where my
question goes.

David

On 8 kvě, 19:22, Pystar <[email protected]> wrote:
> For now, Web2py's DAL doesnt support NoSQL databases. I think Massimo
> can tell us more on the status of the DAL rewrite and when it would be
> possible.
>
> On May 8, 5:59 pm, David Marko <[email protected]> wrote:
>
>
>
> > Is anyone using MongoDB with web2py? How do you 'share' connection
> > object in your app when using pymongo?
>
> > If I put the code below into db.py, each request causes the new
> > connection opened to MongoDB what mean that after 500 requests to my
> > app, there are 500 separate connections I can see on MongoDB console.
>
> > >>> from pymongo import Connection
> > >>> connection = Connection()
>
> > Where to put the connection code to have some pooling mechanism so
> > connection is shared among requests?
>
> > David

Reply via email to