clojure - MongoDB Connection Pattern using Monger -


i new clojure.

are there idioms/patterns around connecting mongodb through monger?

do have connect , disconnect using

(monger.core/connect) & (monger.core/disconnect conn) 

respectively. each time ?

is there way can reuse connection connection pool?

monger uses mongoclient, connection pooling. after connect, can keep working pool until you're done, , disconnect. see monger documentation supported connection options (e.g. maximum number of connections in pool, default 10).


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -