hey guys, I’m using graphql-yoga and prisma that i...
# orm-help
h
hey guys, I’m using graphql-yoga and prisma that is deployed to my own cluster and I’m running into some really bad latency issues. Each request is 5s+ on my frontend, but the curious thing is prisma itself is pretty fast when queried from the playground. Any ideas what could be wrong? I’m using prisma bindings in my resolvers
h
Where is hosted your prisma cluster and yoga server?
h
same server using docker
I’m sure it’s something in my yoga server since prisma is super fast from the playground, but I’m not sure what I’m doing wrong
the only thing I have added is
Copy code
server.express.use(express.static('dist/public'))
m
@horia.ancas what kind of queries are you making to the db? I created a stress time and sometimes it creates race conditions on prisma. It looks like it waits for a datarecord to be available i.e. not in use
then my request hit like 20s+