Rust-Free Is 3x Slower
Has this been already reported? On a local Postgres database I was getting a massive number of transaction timeout messages running out seed script. Ended up with this config to avoid those.
Rust + Non-ESM - Seeding Complete in 166.956seconds
Rust + ESM - Seeding Complete in 149.892 seconds
Rust Free + ESM - Seeding Complete in 557.726 seconds
Thats from just changing
to this
and running
Our seed script uses functions from our application code, with seed data and some use of fakerjs. That is a lot of prisma upsert statements with deep nesting, and deep returns. That we then run synchronously with Promise.all([..]);
Rust + Non-ESM - Seeding Complete in 166.956seconds
Rust + ESM - Seeding Complete in 149.892 seconds
Rust Free + ESM - Seeding Complete in 557.726 seconds
Thats from just changing
to this
and running
npx prisma generate before the seed script.Our seed script uses functions from our application code, with seed data and some use of fakerjs. That is a lot of prisma upsert statements with deep nesting, and deep returns. That we then run synchronously with Promise.all([..]);