perf(graph): warm schema cache on startup to kill cold-start spikes (#843)
Release / release (push) Failing after 59s
schemas / vulnerabilities (push) Successful in 2m34s
schemas / check (push) Successful in 2m59s
schemas / check-release (push) Successful in 3m18s
pre-commit / pre-commit (push) Successful in 6m28s
schemas / build (push) Successful in 6m20s
schemas / deploy-prod (push) Successful in 1m58s

This commit was merged in pull request #843.
This commit is contained in:
2026-05-21 15:25:49 +00:00
parent 9d70c0462a
commit 4e50a051d0
3 changed files with 85 additions and 0 deletions
+2
View File
@@ -210,6 +210,8 @@ func start(closeEvents chan error, logger *slog.Logger, connectToAmqpFunc func(u
Debouncer: graph.NewDebouncer(500 * time.Millisecond),
}
resolver.WarmCache(rootCtx)
config := generated.Config{
Resolvers: resolver,
Complexity: generated.ComplexityRoot{},