sequelize / express-example

A proposal for the usage of Sequelize within an Express.JS application.
MIT License
2.5k stars 770 forks source link

[Question] sequalize instances #35

Closed markelog closed 8 years ago

markelog commented 8 years ago

Do i understand this correctly - every router creates their own instance of sequelize and new connection to database?

sushantdhiman commented 8 years ago

No, due to node module cache only single instance is created. Next time require will reuse same instance