I am not sure about pymongo but if you use DAL('mongodb:....')
the dal will do pooling for you. On Wednesday, 19 March 2014 01:33:04 UTC-5, tec...@gmail.com wrote: > > Dear Sirs, > > > I understand it's possible to use databases without DAL. > For example function in controller: > > def values(): > client = pymongo.MongoClient('localhost', 27017) > db = client.mybase > mytable = db["mytable"] > res = mytable.find() > ..... > > return dict(....) > > And of course it works. > But is it fast to connect/disconnect every time in function? What's about > connection pool? > I consider connection pool could increase access to database. > > 1. Actually I would like to ask how to access to database without DAL but > at maximum speed? > 2. Do I need connection pool for fast database access? (I think, yes.) > 3. How could I build custom connection pool for database access without > DAL? Or any solution to re-use connections to database server? Any examples? > > > > Andrey A. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.