node.js - What is correct initialization for sequalize? -
i want use transactions , requests pooling. i've seen sequalize has pooling support, have question - have manually re-create sequalize
object each request? mean:
// main app context var sequelize = require('sequelize'); // request handler context function handle(req, res) { var sequelize = new sequelize('helpdesk', 'root'); }
or can initialize sequelize
object once , use everywhere?
Comments
Post a Comment