I am using MySQL
and have a very large response (15,000+ rows). This takes.. well.. time. But I can start to process the first result right away. Can I set up a stream somehow with sequelize
? If so, how?
There is a related GitHub for this. It doesn't look like it will happen in the near future.
For now I am monitoring my console, saving the query that Sequelize generates, and then refactoring my code to run the query with node-mysql.
connection.query(mySavedQuery).stream().pipe(...)
Also you can use node-sequelize-stream
library.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With