decrease query cache size

This commit is contained in:
Dawid Wysokiński 2021-03-24 05:31:53 +01:00
parent f3af613d2b
commit 8a35defe97
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func graphqlHandler(cfg generated.Config) gin.HandlerFunc {
srv.Use(extension.AutomaticPersistedQuery{
Cache: lru.New(100),
})
srv.SetQueryCache(lru.New(1000))
srv.SetQueryCache(lru.New(100))
srv.Use(&extension.ComplexityLimit{
Func: func(ctx context.Context, rc *graphql.OperationContext) int {
if middleware.CanExceedLimit(ctx) {