On Oct 12, 11:00 am, David Marko <dma...@tiscali.cz> wrote:
> Hi Francisco, how do you manage the connection to MongoDB server? Do you
> establish and close connection on every request or do you use some
> connection pooling ?

Hi Marko,
for now we are using pymongo like this:

from pymongo import Connection
server = 'localhost'
port = 27017
conn = Connection(server, port)
mongo = conn['db_name']


Then we something like mongo.collection.find() to queries so the
connection is always open.

Reply via email to