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}}
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: