NeonN
Neon2y ago
5 replies
primary-violet

can’t use pooling url in prisma

while making use of the pooling flag for my database url, i get errors trying to run queries from prisma using $queryRaw

“prepared statement “s0” already exists
sometimes the number is different though like s3, s4 etc.

i tried setting the directUrl field in my prisma schema to the pooling url along with databaseUrl being set to the normal url but that didn’t change things

only solution was to just set databaseUrl directly to the normal (non pooling) url and it worked fine that way.
Was this page helpful?