Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More

Please i have a question
I'm building an API with expressJs
Do i need to create a single database connection for all my query
Or should i rather open and close a connection for every query.
Which one is more efficient?
I'm currently using the first approach but the heroku clearDB addons is keep crashing Everytime saying connexion closed!
Please help
Thanks
question