Which JavaScript library that works alongside Drizzle ORM is better for pooling, pg.js or postgresjs
I'm working on a JavaScript/TypeScript backend project using drizzle and PostgreSQL where I came across pooling for the first time. I found there are several ways to integrate pooling with drizzle ORM but they each rely on different libraries.
There is the pg/node-postgres method which goes like this:
And the Postgres.js version which goes like this:
Is there a difference in performance between these two methods? If so, which one is the better option?
Note the project uses TypeScript
1 Reply
Bump