lnlife
lnlife
Here is the codes: ``` const sql = postgres(process.env.PG_URL, { max: 1 }) let r = await sql`select * from posts where id=1` console.time("sql") for (let i = 1; i
After adding `{prepare:true}`, `sql.unsafe` with parameters becomes faster, but `sql.unsafe` without parameter is still slow, seem `{prepared:true}` does not affect it. ``` sql: 48.975ms unsafeWithP: 52.277ms unsafe: 64.378ms ``` Here...
`WHERE id=${sql(cliente.id)}` to `WHERE id=${cliente.id}`
> No, but why don't you just run the query like: > > ```js > const xs = await sql` > select > * > from db.table > where id...
> Is this still happening? I was about to go all in on `postgres` for some of the services in our codebase given the sheer amount of performance problems with...