You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looping over some array items and perform some DB tasks. It's basic Select and Inserts.
Somehow, I receive prepared statment already exists error.
I saw other issues people mentioning something related with pg_bouncer.
Any tips?
asyncfunctionxpto(items){constsql=postgres(env.DB_SUPABASE.connectionString)for(constitemofitems){awaitdoStuff(item,sql);}}asyncfunctiondoStuff(item,sql){//Sometimes this and other thows `prepared statment already exists` errorconstcheckSomething=awaitsql`SELECT * FROM table WHERE a_column = ${item.value};`if(checkSomething.a_column=='something'){//Finish Work}}
Activity
morpig commentedon Oct 14, 2024
prepare: false in postgres.js config
emerleite commentedon Oct 15, 2024
@morpig thanks. But how do I manual create it when it needed?
perf(db): raise postgres.js max from 1 to 5
perf(db): raise postgres.js max from 1 to 5
test(workerd): run prepared queries through Hyperdrive on the edge Pr…
ci(workerd): run the Hyperdrive scenario against Supabase on the edge…
ci(workerd): run the Hyperdrive scenario against Supabase on the edge…
ci(workerd): run the Hyperdrive scenario against Supabase on the edge…
ci(workerd): back off on Cloudflare error pages, and run Hyperdrive a…
v4