▲ How to get, use, and close a DB connection using async functions in NodeJS at jsao.io▼1 up and 0 down, posted by dmcghan 2821 days ago 1 comment
tracker1 2820 days ago. link 2 points ▲ ▼Just a mention, it's best to use connection pooling with your DB layer... many will have this functionality in the box... you create your pool and execute against the pool. Creating and closing lots of connections leads to poor performance.