I want to bulk insert MySQL with Sequelize ORM and NodeJS (NestJS). I'm curious if there is a best way to handle very large data. I thought of "chunk" like Laravel did. In Laravel we can do it like this:
$chunks = $insert_data->chunk(500);
foreach ($chunks as $chunk) {
\DB::table('items_details')->insert($chunk->toArray());
}
Has anyone implemented this with sequelize and NodeJS. Thanks