Skip to content

Commit

Permalink
Removing gzip improves throughput from 3K to 4.4K QPS.
Browse files Browse the repository at this point in the history
  • Loading branch information
manishrjain committed Aug 4, 2021
1 parent fef72aa commit f2ab9c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphql/admin/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ func (gh *graphqlHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}

res = resolver.Resolve(ctx, gqlReq)
write(w, res, strings.Contains(r.Header.Get("Accept-Encoding"), "gzip"))
// write(w, res, false)
// write(w, res, strings.Contains(r.Header.Get("Accept-Encoding"), "gzip"))
write(w, res, false)
}

func (gh *graphqlHandler) isValid(namespace uint64) error {
Expand Down

0 comments on commit f2ab9c1

Please sign in to comment.