Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
8cbe5df
feat: compute static (estimated) cost
ysmolski Dec 17, 2025
b4d2404
simplify structures
ysmolski Dec 18, 2025
b84582a
remove leaveCost
ysmolski Dec 18, 2025
41b4baa
start refactoring the code
ysmolski Dec 23, 2025
cb39b19
compute for all data sources
ysmolski Dec 24, 2025
12033d0
push the cost through the stack
ysmolski Dec 24, 2025
cdb7f93
handle basic cost calculation and capture abstract types
ysmolski Jan 8, 2026
fb659af
support interfaces for 2 major cases
ysmolski Jan 9, 2026
a11d847
support listSize directive
ysmolski Jan 12, 2026
763e84a
fix comments
ysmolski Jan 13, 2026
6173a8e
add the slicingArguments test
ysmolski Jan 13, 2026
6aec35d
leave comments before PR
ysmolski Jan 13, 2026
90511e3
Merge branch 'master' into yury/eng-8635-engine-compute-static-cost
ysmolski Jan 13, 2026
bad5278
disable broken test
ysmolski Jan 13, 2026
cd10b23
handle slicingArguments correctly
ysmolski Jan 14, 2026
5459657
fix nil deref
ysmolski Jan 14, 2026
3b76d84
cleanup the code
ysmolski Jan 15, 2026
eca56d8
rename vars for readability
ysmolski Jan 15, 2026
35ec983
add test and comments
ysmolski Jan 15, 2026
7cd1814
fix edge cases
ysmolski Jan 15, 2026
7ebcea7
fix top comment
ysmolski Jan 16, 2026
dccdd7c
build cost tree in the dedicated visitor
ysmolski Jan 19, 2026
122d5a5
remove dead code
ysmolski Jan 19, 2026
daf54f0
unwrap ifs and add a comment
ysmolski Jan 19, 2026
edecf56
fix a comment
ysmolski Jan 19, 2026
81f9caa
push to the stack anyway
ysmolski Jan 19, 2026
f795906
test nested lists
ysmolski Jan 20, 2026
5245e73
add more fragment tests
ysmolski Jan 20, 2026
13ab987
add tests for unions
ysmolski Jan 20, 2026
64eb0bb
add more slicing tests
ysmolski Jan 20, 2026
ce0bfc0
Merge branch 'master' into yury/eng-8635-engine-compute-static-cost
ysmolski Jan 20, 2026
9147363
prettify debug print
ysmolski Jan 20, 2026
8b47cbb
test costs in federation
ysmolski Jan 20, 2026
91da827
add comment for a test
ysmolski Jan 21, 2026
a171612
use static instead of total cost
ysmolski Jan 22, 2026
da65037
use default cost config when nothing supplied
ysmolski Jan 23, 2026
f9b9504
do not use globals to configure default weights
ysmolski Jan 23, 2026
912d0da
make lint
ysmolski Jan 23, 2026
9d91d70
floor the defaultListSize
ysmolski Jan 23, 2026
f6504e4
protect from nil
ysmolski Jan 23, 2026
5591872
fix the data-race for calculator for multiple requests
ysmolski Jan 26, 2026
3899422
Merge branch 'master' of github.com:wundergraph/graphql-go-tools into…
ysmolski Jan 26, 2026
41087f0
make lint
ysmolski Jan 26, 2026
513375c
fix typo
ysmolski Jan 26, 2026
2db07ae
simplify execution part
ysmolski Jan 26, 2026
e885f66
clarify comment
ysmolski Jan 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions execution/engine/execution_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
resolver *resolve.Resolver
executionPlanCache *lru.Cache
apolloCompatibilityFlags apollocompatibility.Flags
// Holds the plan after Execute(). Used in testing.
lastPlan plan.Plan

Check failure on line 72 in execution/engine/execution_engine.go

View workflow job for this annotation

GitHub Actions / Linters (1.25)

File is not properly formatted (gci)
}

type WebsocketBeforeStartHook interface {
Expand Down Expand Up @@ -214,6 +216,7 @@
if report.HasErrors() {
return report
}
e.lastPlan = cachedPlan

if execContext.resolveContext.TracingOptions.Enable && !execContext.resolveContext.TracingOptions.ExcludePlannerStats {
planningTime := resolve.GetDurationNanoSinceTraceStart(execContext.resolveContext.Context()) - tracePlanStart
Expand Down
Loading
Loading