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
Post a Comment