Hi folks, more of a general question, how do you b...
# orm-help
j
Hi folks, more of a general question, how do you benchmark your Application in terms of database performance? Our team has a GraphQL application, and is undergoing severe performance issues. We want to have better observability in this, such as logging number of queries, finding inefficient queries, and the like. Any best practices or suggestion?
👀 1
👆 1
@Daan Helsloot
👍 1
t
Maybe a starter if you want to build something on top of it: https://www.prisma.io/docs/concepts/components/prisma-client/middleware/logging-middleware
j
The event-based one has already been a great help, the logging middleware is promising and definitely something to try out. Do you know if there are any higher-level construct on top of this (like libraries / tools on github) that dive deeper in this?
n
Hey 👋 You could use Database monitoring tools to view query metrics and explain plans to figure out slow queries. This one provided by Datadog looks good. We also do have a related GitHub Issue that discusses native Request Tracing Integration.
j
Hey Nurul, thanks for the linkup! This sounds great!
🙌 1