I have a certain API endpoint that runs a bunch of...
# orm-help
p
I have a certain API endpoint that runs a bunch of queries (due to some looping). Even though my Next.js app has a global Prisma client (as recommended in the docs), my 20/20 Heroku connection limit is being reached only by me hitting that single endpoint. What can I do to solve this? I’m fairly certain that upgrading to a tier with more connections isn’t the long-term solution
r
@Perry Raskin 👋 Could you restart your database at the moment and then set the connection limit to
1
and check?
p
at this point i’m trying the data proxy on v3.3.0 and i’m having separate issues 😅
r
What’s the issue you’re facing with the data proxy?
p
i’m getting the 
Schema (re)uploaded
 error
r
Ahh yes, we are looking into this right now. It’s mostly auth related.
p
anything i can try?
r
Not at the moment unfortunately. I will let you know once I have more info.
👍 1
p
is there a way I can be on v3.3.0 and not use data proxy? if i remove the
previewFeatures = ["dataProxy"]
will it act as it did before?
r
Yup, then run
prisma generate
.
p
all of a sudden the data proxy works! any idea?
r
Yup it should be fixed now 🙂