Niranjan Sharma
Niranjan Sharma

Reputation: 49

Pg-promise vs sequelize, To handle millions of sql queries

Module pg-promise provides method sequence to execute infinite sequences, suitable for massive transactions, like bulk inserts, with way over 1,000 records. And it supports query streams for high-performance, read-only queries.

Does Sequelize offer anything similar to those things?

Sorry for asking such basic things, but I am new and don't have any idea about these two.

Thanks for your response and suggestions.

Upvotes: 3

Views: 2713

Answers (1)

vitaly-t
vitaly-t

Reputation: 25840

This answer will probably anger some of the Sequelize fans, but in the name of truth...


What you're referring to within pg-promise is fully documented in Data Imports.

And no, Sequelize doesn't have anything like that.

And in addition, Sequelize is known to be plagued by performance issues, like this one: Transactions extremely slow when inserting 1000s of records, ones that are very bad and very old at the same time.

Upvotes: 2

Related Questions