As a general principle. Is it better to:
mongo.MongoClient.connect()once and have all your
app.get()inside of it doing whatever database operations (not sure where to put the
db.close()given async nature); or
- have individual
app.get(). Perform whatever operation with the database and
db.close()it each time within the
Is there a preferred way of doing it?