dgraph-io / dgraph

The high-performance database for modern applications

Home Page:https://dgraph.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Query profiler: Add an ability to get performance statistics of queries

simhasrivatsa opened this issue · comments

Use case

Whenever we use a database, we would sometimes need to assess query performance and optimize our queries. For example, MongoDB atlas has a query profiler and RDS has performance insights.
How can I expose these metrics for Dgraph? I saw that there are audit logs but can we use this to scrape individual query metrics?
I would love this feature and give more confidence for people to use Dgraph

Links to examples and research

https://aws.amazon.com/rds/performance-insights/
https://www.mongodb.com/docs/atlas/tutorial/profile-database/