René's URL Explorer Experiment


Title: Support variable batching by andimarek · Pull Request #4520 · graphql-java/graphql-java · GitHub

Open Graph Title: Support variable batching by andimarek · Pull Request #4520 · graphql-java/graphql-java

X Title: Support variable batching by andimarek · Pull Request #4520 · graphql-java/graphql-java

Description: Adds variable batching to the existing ExecutionInput: execute the same selected operation once per variable map. This is execution-layer support for the variable batching proposal; it adds no HTTP or request batching behavior. ExecutionInput input = ExecutionInput.newExecutionInput() .query("query($id: ID!) { product(id: $id) { name } }") .variables(List.of(Map.of("id", "a"), Map.of("id", "b"))) .dataLoaderRegistry(registry) .build(); VariableBatchExecutionResult batch = (VariableBatchExecutionResult) graphQL.execute(input); CompletableFuture> results = batch.getResultsAsync(); variables(Map) becomes a singleton list. Empty lists execute once with empty variables; singletons retain ordinary execution. Larger lists execute once per complete map, including duplicates. getVariables() and getRawVariables() assert that there is at most one map; use getVariablesList() for batches. A plain loop calls executeAsync for every entry, without waiting for earlier futures. There are no batch size/concurrency limits, scheduling, or backpressure. getResults() exposes the futures in input order; getResultsAsync() collects all results in that order. No threads are created by batching. Entries share the supplied DataLoader registry and caches, including mutations, with ordinary automatic/manual dispatch behavior. Dispatch is not coordinated across entries. Mutation root fields remain serial within each entry; entries have no ordering guarantee. Writers must clear/prime affected cache entries. Coercion, errors, instrumentation state, execution IDs, and context copies are separate per entry. Cancelling the input requests cancellation of every entry. Existing incremental results and their publishers pass through unchanged. The default configuration parses and validates once. Custom instrumentation and preparsed providers retain their per-entry behavior, including persisted queries and document/variable transformations. Multi-map subscriptions fail with IllegalArgumentException as soon as the selected operation is known, before coercion or resolvers. Literal, cached, persisted, and rewritten documents are covered. Empty/singleton lists still support subscriptions. The new APIs are experimental. Serialize each individual ExecutionResult; the batch has no single GraphQL response map. Validation: 158 focused tests pass across VariableBatchExecutionTest, ExecutionInputTest, GraphQLTest, and ParseAndValidateTest, including all 44 batching cases and the empty/singleton/multi-map accessor checks. Javadoc passes. The JMH benchmark compares batching with repeated executions sharing a registry.

Open Graph Description: Adds variable batching to the existing ExecutionInput: execute the same selected operation once per variable map. This is execution-layer support for the variable batching proposal; it adds no HTTP...

X Description: Adds variable batching to the existing ExecutionInput: execute the same selected operation once per variable map. This is execution-layer support for the variable batching proposal; it adds no HTTP...

Opengraph URL: https://github.com/graphql-java/graphql-java/pull/4520

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a19c4d95-08d2-a5d4-0195-3d3715cafadd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC3EA:3F4253:1FB7C8C:2A319F9:6B017C7E
html-safe-noncefccec3edad68ad23345a35db955794fea485fdee26aa247b073d1a7763edf87d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0VBOjNGNDI1MzoxRkI3QzhDOjJBMzE5Rjk6NkIwMTdDN0UiLCJ2aXNpdG9yX2lkIjoiNzY3MDU2NzEyNzIwNzczODQ5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6774a170877198f420c47e0b84267e87d18c45aa457f4b072adc72b5ea90cfc8
hovercard-subject-tagpull_request:5102074367
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/graphql-java/graphql-java/pull/4520/files
twitter:imagehttps://avatars.githubusercontent.com/u/1706744?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1706744?s=400&v=4
og:image:altAdds variable batching to the existing ExecutionInput: execute the same selected operation once per variable map. This is execution-layer support for the variable batching proposal; it adds no HTTP...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id38602457
octolytics-dimension-repository_nwographql-java/graphql-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38602457
octolytics-dimension-repository_network_root_nwographql-java/graphql-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/pull/4520/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F4520%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F4520%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/pull/4520/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/4520/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/4520/files
graphql-javahttps://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Codehttps://github.com/graphql-java/graphql-java
Issues27 (27)https://github.com/graphql-java/graphql-java/issues
Pull requests35 (35)https://github.com/graphql-java/graphql-java/pulls
Discussionshttps://github.com/graphql-java/graphql-java/discussions
Actionshttps://github.com/graphql-java/graphql-java/actions
Projectshttps://github.com/graphql-java/graphql-java/projects
Wikihttps://github.com/graphql-java/graphql-java/wiki
Security and qualityhttps://github.com/graphql-java/graphql-java/security
Insightshttps://github.com/graphql-java/graphql-java/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
andimarekhttps://github.com/andimarek
masterhttps://github.com/graphql-java/graphql-java/tree/master
codex/variable-batchinghttps://github.com/graphql-java/graphql-java/tree/codex/variable-batching
Conversation 4 https://github.com/graphql-java/graphql-java/pull/4520
Commits 5 https://github.com/graphql-java/graphql-java/pull/4520/commits
Checks 11 https://github.com/graphql-java/graphql-java/pull/4520/checks
Files changed https://github.com/graphql-java/graphql-java/pull/4520/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4520/files
Support variable batching https://github.com/graphql-java/graphql-java/pull/4520/files#top
Show all changes 5 commits https://github.com/graphql-java/graphql-java/pull/4520/files
11fe214 Add variable batching with shared DataLoader dispatch andimarek Oct 31, 2026 https://github.com/graphql-java/graphql-java/pull/4520/commits/11fe2147714c5f081d0cbabd1c33ab1fbf7cf37c
2a748e4 Reject subscription variable batches before execution andimarek Oct 31, 2026 https://github.com/graphql-java/graphql-java/pull/4520/commits/2a748e4255a9ba9dd2e18da0c811b1bbeb3e7ab4
c6b614b Remove unrelated incremental cancellation workaround andimarek Oct 31, 2026 https://github.com/graphql-java/graphql-java/pull/4520/commits/c6b614b18abccc8322373acb5c9cd39b28ecb35b
5f6cb17 Simplify variable batching to independent async executions andimarek Oct 31, 2026 https://github.com/graphql-java/graphql-java/pull/4520/commits/5f6cb17cdd878f7ce7992804b0a9a2fca46c4e6a
642e42f Reject multi-map access through single-variable accessors andimarek Oct 31, 2026 https://github.com/graphql-java/graphql-java/pull/4520/commits/642e42f0ade257263e4c9f5671dbeb281957b394
Clear filters https://github.com/graphql-java/graphql-java/pull/4520/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4520/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4520/files
VariableBatchBenchmark.java https://github.com/graphql-java/graphql-java/pull/4520/files#diff-89b1a9ec3c8e30cf4f5342fc29cbcd8f4c56692c87d3b045fe4ef7d49035179a
ExecutionInput.java https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
GraphQL.java https://github.com/graphql-java/graphql-java/pull/4520/files#diff-6125560fc9561dd16a3f0e6b4ee28e953b6945e5f9ba28a6d47a6cd33e39fd85
VariableBatchExecutionResult.java https://github.com/graphql-java/graphql-java/pull/4520/files#diff-b0814e1474d589ebb56e91ecd469a1420e597c3c6aa6bb3834a53e38c8d1389e
VariableBatchExecutionResultImpl.java https://github.com/graphql-java/graphql-java/pull/4520/files#diff-f065b0d5456e0be7f5c5d73603a52343678afe11537c10f54a85035dff9cc5b2
ExtensionsBuilder.java https://github.com/graphql-java/graphql-java/pull/4520/files#diff-7d1286b34258cb4f8566704834000a1114e1237a75cfedc7414f83ae425b200b
ExecutionInputTest.groovy https://github.com/graphql-java/graphql-java/pull/4520/files#diff-e8e351656fcb5a5594e04f3fa943c615bb54939a54f2ccf7fe47d15afe2af451
GraphQLTest.groovy https://github.com/graphql-java/graphql-java/pull/4520/files#diff-cb8d1f72e58504480a1b5127ea74d3038902d5ee8b99f353c2f2f8cf0a5feb8e
VariableBatchExecutionTest.groovy https://github.com/graphql-java/graphql-java/pull/4520/files#diff-626c48dcb0a73a70fce511faf9363eb1adb4ec37c026f14acd6906a7cad10704
src/jmh/java/benchmark/VariableBatchBenchmark.javahttps://github.com/graphql-java/graphql-java/pull/4520/files#diff-89b1a9ec3c8e30cf4f5342fc29cbcd8f4c56692c87d3b045fe4ef7d49035179a
View file https://github.com/graphql-java/graphql-java/blob/642e42f0ade257263e4c9f5671dbeb281957b394/src/jmh/java/benchmark/VariableBatchBenchmark.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4520/{{ revealButtonHref }}
src/main/java/graphql/ExecutionInput.javahttps://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
View file https://github.com/graphql-java/graphql-java/blob/642e42f0ade257263e4c9f5671dbeb281957b394/src/main/java/graphql/ExecutionInput.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4520/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
https://github.com/graphql-java/graphql-java/pull/4520/files#diff-8943277533f77ad7b72791b71fcb1b15c083ca81e380a41aa9ef2338946a4107
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4520/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4520/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.