-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
c/docsRelated to docsRelated to docse/quickfixcan be wrapped up in few hourscan be wrapped up in few hoursp/highcandidate for being included in the upcoming sprintcandidate for being included in the upcoming sprint
Description
Query without variables:
{
user_news(where: {user_id: {_eq: 1}, status: {_eq: 0}}, limit: 10, order_by: {id: desc}) {
id
}
}
Throughput: 3800 req/s
Query with variables:
query($user:Int, $status: Int){
user_news(where: {user_id: {_eq: $user}, status: {_eq: $status}}, limit: 10, order_by: {id: desc}) {
id
}
}
Variables:
{
"user":1,
"status":0
}
Throughput: 980 req/s
In more complex example where I first noticed this performance drop it went from ~1500req/s to ~250req/s.
Metadata
Metadata
Assignees
Labels
c/docsRelated to docsRelated to docse/quickfixcan be wrapped up in few hourscan be wrapped up in few hoursp/highcandidate for being included in the upcoming sprintcandidate for being included in the upcoming sprint