René's URL Explorer Experiment


Title: Rework query complexity limits with merged fields and occurrence budgets by andimarek · Pull Request #4523 · graphql-java/graphql-java · GitHub

Open Graph Title: Rework query complexity limits with merged fields and occurrence budgets by andimarek · Pull Request #4523 · graphql-java/graphql-java

X Title: Rework query complexity limits with merged fields and occurrence budgets by andimarek · Pull Request #4523 · graphql-java/graphql-java

Description: GraphQL Java implementation. Contribute to graphql-java/graphql-java development by creating an account on GitHub.

Open Graph Description: This PR reworks validation complexity protection to use merged fields, while retaining a separate budget for field occurrences after fragment expansion. It also replaces QueryComplexityLimits.newLi...

X Description: This PR reworks validation complexity protection to use merged fields, while retaining a separate budget for field occurrences after fragment expansion. It also replaces QueryComplexityLimits.newLi...

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

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:400362b3-7570-690e-e902-904b5e5f7bae
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8E76:161320:13A49D:1A3C28:6B0185C6
html-safe-noncea51c17c929e3ee04824fc74178e7cf08e50896856813928099d58068fbac313c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTc2OjE2MTMyMDoxM0E0OUQ6MUEzQzI4OjZCMDE4NUM2IiwidmlzaXRvcl9pZCI6IjcxNTY0MzI0MjM0NTMwMzM5MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac97904215f54049ae61e7bf8a74a17c5b3386d5f9b0f6ccd59cc1b0c479b74fcf
hovercard-subject-tagpull_request:5105878967
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/graphql-java/graphql-java/4523/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/147b4e31f98e71c1757d87cd647c581c63a18f43aa916b78657e03df870c27ea/graphql-java/graphql-java/pull/4523
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/147b4e31f98e71c1757d87cd647c581c63a18f43aa916b78657e03df870c27ea/graphql-java/graphql-java/pull/4523
og:image:altThis PR reworks validation complexity protection to use merged fields, while retaining a separate budget for field occurrences after fragment expansion. It also replaces QueryComplexityLimits.newLi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameandimarek
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
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
disable-turbofalse
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
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/pull/4523#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F4523
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%2F4523
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/pull/4523
Reloadhttps://github.com/graphql-java/graphql-java/pull/4523
Reloadhttps://github.com/graphql-java/graphql-java/pull/4523
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
https://github.com/graphql-java/graphql-java
andimarekhttps://github.com/andimarek
masterhttps://github.com/graphql-java/graphql-java/tree/master
codex/general-dos-protectionhttps://github.com/graphql-java/graphql-java/tree/codex/general-dos-protection
Conversationhttps://github.com/graphql-java/graphql-java/pull/4523
Commits20 (20)https://github.com/graphql-java/graphql-java/pull/4523/commits
Checkshttps://github.com/graphql-java/graphql-java/pull/4523/checks
Files changedhttps://github.com/graphql-java/graphql-java/pull/4523/files
Rework query complexity limits with merged fields and occurrence budgetshttps://github.com/graphql-java/graphql-java/pull/4523#top
andimarekhttps://github.com/andimarek
masterhttps://github.com/graphql-java/graphql-java/tree/master
codex/general-dos-protectionhttps://github.com/graphql-java/graphql-java/tree/codex/general-dos-protection
https://github.com/andimarek
andimarekhttps://github.com/andimarek
Nov 1, 2026https://github.com/graphql-java/graphql-java/pull/4523#issue-6145087798
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4523
PR checkshttps://github.com/graphql-java/graphql-java/pull/4523/checks
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4523
andimarekhttps://github.com/andimarek
November 1, 2026 11:57https://github.com/graphql-java/graphql-java/pull/4523#commits-pushed-78115f8
https://github.com/andimarek
Add validation complexity benchmark workloadshttps://github.com/graphql-java/graphql-java/pull/4523/commits/78115f835a95f486b7739b8b8fa9b9dfb7432c2f
78115f8https://github.com/graphql-java/graphql-java/pull/4523/commits/78115f835a95f486b7739b8b8fa9b9dfb7432c2f
https://github.com/andimarek
Use merged validation selections for general complexity limitshttps://github.com/graphql-java/graphql-java/pull/4523/commits/7b7adebd8315f7fee061081685c2c2828592616d
7b7adebhttps://github.com/graphql-java/graphql-java/pull/4523/commits/7b7adebd8315f7fee061081685c2c2828592616d
https://github.com/andimarek
Clarify shared limits and cover disabled-rule configurationshttps://github.com/graphql-java/graphql-java/pull/4523/commits/d48090d580cd91c4c19efbd8c269c2ca57421ef2
d48090dhttps://github.com/graphql-java/graphql-java/pull/4523/commits/d48090d580cd91c4c19efbd8c269c2ca57421ef2
https://github.com/andimarek
Reuse singleton field sets when grouping common parentshttps://github.com/graphql-java/graphql-java/pull/4523/commits/2e696c9bdd4a9bd81c0e2eaed35c99c521a8c990
2e696c9https://github.com/graphql-java/graphql-java/pull/4523/commits/2e696c9bdd4a9bd81c0e2eaed35c99c521a8c990
https://github.com/andimarek
Key complexity summaries by shared validation statehttps://github.com/graphql-java/graphql-java/pull/4523/commits/155087b2acb907c0cf5374fcebfc12e63265698f
155087bhttps://github.com/graphql-java/graphql-java/pull/4523/commits/155087b2acb907c0cf5374fcebfc12e63265698f
https://github.com/andimarek
Reduce traversal and count-cache allocation during validationhttps://github.com/graphql-java/graphql-java/pull/4523/commits/64720524bcd07ad13ba4c484ac486fdf0fe22b71
6472052https://github.com/graphql-java/graphql-java/pull/4523/commits/64720524bcd07ad13ba4c484ac486fdf0fe22b71
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 1, 2026https://github.com/graphql-java/graphql-java/pull/4523#issuecomment-6555851247
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4523
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4523
andimarekhttps://github.com/andimarek
November 1, 2026 20:11https://github.com/graphql-java/graphql-java/pull/4523#commits-pushed-f3ff7b5
https://github.com/andimarek
Count leaf selections directly during complexity validationhttps://github.com/graphql-java/graphql-java/pull/4523/commits/f3ff7b59e9bac0206845cde193ed5641ff516b24
f3ff7b5https://github.com/graphql-java/graphql-java/pull/4523/commits/f3ff7b59e9bac0206845cde193ed5641ff516b24
https://github.com/andimarek
Extract repeated coordinate lookup from the hot validation methodhttps://github.com/graphql-java/graphql-java/pull/4523/commits/f73299f0efe601e6eab82734df3a06c339d4de80
f73299fhttps://github.com/graphql-java/graphql-java/pull/4523/commits/f73299f0efe601e6eab82734df3a06c339d4de80
https://github.com/andimarek
Identify leaves from merged selections without a separate AST scanhttps://github.com/graphql-java/graphql-java/pull/4523/commits/b8749afaefae43e3103f31a09fde8217f55c9d2b
b8749afhttps://github.com/graphql-java/graphql-java/pull/4523/commits/b8749afaefae43e3103f31a09fde8217f55c9d2b
https://github.com/andimarek
Remove the empty-child branch after direct leaf countinghttps://github.com/graphql-java/graphql-java/pull/4523/commits/16ede762208b38e415c6aec59ab6099390f281e7
16ede76https://github.com/graphql-java/graphql-java/pull/4523/commits/16ede762208b38e415c6aec59ab6099390f281e7
https://github.com/andimarek
Limit expanded field occurrences during validationhttps://github.com/graphql-java/graphql-java/pull/4523/commits/f2480f14bbda2209ac4ed67f8376c098a94b6f51
f2480f1https://github.com/graphql-java/graphql-java/pull/4523/commits/f2480f14bbda2209ac4ed67f8376c098a94b6f51
https://github.com/andimarek
andimarekhttps://github.com/andimarek
Nov 2, 2026https://github.com/graphql-java/graphql-java/pull/4523#event-34866299762
andimarekhttps://github.com/andimarek
November 2, 2026 11:37https://github.com/graphql-java/graphql-java/pull/4523#commits-pushed-d21b0d0
https://github.com/andimarek
Clarify merged-field complexity count nameshttps://github.com/graphql-java/graphql-java/pull/4523/commits/d21b0d00c0b77756f3f864e1c3ec7311f0c5abe4
d21b0d0https://github.com/graphql-java/graphql-java/pull/4523/commits/d21b0d00c0b77756f3f864e1c3ec7311f0c5abe4
https://github.com/andimarek
Rename validation field limit to maxMergedFieldCounthttps://github.com/graphql-java/graphql-java/pull/4523/commits/435b2d0035926d1132f40dfca88e40248c371335
435b2d0https://github.com/graphql-java/graphql-java/pull/4523/commits/435b2d0035926d1132f40dfca88e40248c371335
https://github.com/bbakerman
bbakermanhttps://github.com/bbakerman
Nov 2, 2026 https://github.com/graphql-java/graphql-java/pull/4523#pullrequestreview-5731594890
View reviewed changes https://github.com/graphql-java/graphql-java/pull/4523/files/435b2d0035926d1132f40dfca88e40248c371335
src/main/java/graphql/validation/QueryComplexityLimits.javahttps://github.com/graphql-java/graphql-java/pull/4523/files/435b2d0035926d1132f40dfca88e40248c371335#diff-d94e588d242e8f7aac9419f64ea44e4df583b02f1fec8f901b498f73604367ad
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4523
https://github.com/andimarek
Add large schema fixture and query complexity measurementshttps://github.com/graphql-java/graphql-java/pull/4523/commits/c5e3ceca646156a4f65df3b737ef831252650735
c5e3cechttps://github.com/graphql-java/graphql-java/pull/4523/commits/c5e3ceca646156a4f65df3b737ef831252650735
https://github.com/andimarek
andimarekhttps://github.com/andimarek
Nov 7, 2026https://github.com/graphql-java/graphql-java/pull/4523#issuecomment-6705385560
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4523
loading instructions and measurementshttps://github.com/graphql-java/graphql-java/blob/c5e3ceca646156a4f65df3b737ef831252650735/src/test/resources/large-schema-6-README.md
96443c271https://github.com/graphql-java/graphql-java/commit/96443c271c7e477eb5b54a447122ef39c7a9bc16
The committed Spock testshttps://github.com/graphql-java/graphql-java/blob/c5e3ceca646156a4f65df3b737ef831252650735/src/test/groovy/graphql/validation/LargeSchemaQueryComplexityTest.groovy
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4523
andimarekhttps://github.com/andimarek
November 11, 2026 16:08https://github.com/graphql-java/graphql-java/pull/4523#commits-pushed-5defbdd
https://github.com/andimarek
Merge latest master into merged-field complexity limitshttps://github.com/graphql-java/graphql-java/pull/4523/commits/5defbdd5813ff75cd515230fe7cb0e8322b60c5e
5defbddhttps://github.com/graphql-java/graphql-java/pull/4523/commits/5defbdd5813ff75cd515230fe7cb0e8322b60c5e
https://github.com/andimarek
Reduce peak memory when loading the large schema fixturehttps://github.com/graphql-java/graphql-java/pull/4523/commits/0a2016df8c817a3694ab79354a7314962083607e
0a2016dhttps://github.com/graphql-java/graphql-java/pull/4523/commits/0a2016df8c817a3694ab79354a7314962083607e
https://github.com/andimarek
Keep default protections in custom query complexity limitshttps://github.com/graphql-java/graphql-java/pull/4523/commits/8f60f23e212ba571d18a3d595d9e06db4c4cb909
8f60f23https://github.com/graphql-java/graphql-java/pull/4523/commits/8f60f23e212ba571d18a3d595d9e06db4c4cb909
https://github.com/andimarek
Initialize query complexity builders from JVM-wide defaultshttps://github.com/graphql-java/graphql-java/pull/4523/commits/750405a20e50fbdd546999c60e4e8cfe95ea73b1
750405ahttps://github.com/graphql-java/graphql-java/pull/4523/commits/750405a20e50fbdd546999c60e4e8cfe95ea73b1
https://github.com/andimarek
andimarekhttps://github.com/andimarek
Nov 11, 2026https://github.com/graphql-java/graphql-java/pull/4523#event-35817725168
https://github.com/andimarek
andimarekhttps://github.com/andimarek
breaking change https://github.com/graphql-java/graphql-java/issues?q=state%3Aopen%20label%3A%22breaking%20change%22
Nov 11, 2026https://github.com/graphql-java/graphql-java/pull/4523#event-35818151815
andimarekhttps://github.com/andimarek
November 12, 2026 02:17https://github.com/graphql-java/graphql-java/pull/4523#commits-pushed-87f7128
https://github.com/andimarek
Rename query complexity factory to newLimitsWithDefaultshttps://github.com/graphql-java/graphql-java/pull/4523/commits/87f7128dd08bfc07d13a44a6656c715cdcdf55dd
87f7128https://github.com/graphql-java/graphql-java/pull/4523/commits/87f7128dd08bfc07d13a44a6656c715cdcdf55dd
https://github.com/andimarek
Cover nested fragment expansion complexity with explicit exampleshttps://github.com/graphql-java/graphql-java/pull/4523/commits/49b6e71e0fbc85b9b806ac425ad610941bf73f2b
49b6e71https://github.com/graphql-java/graphql-java/pull/4523/commits/49b6e71e0fbc85b9b806ac425ad610941bf73f2b
https://github.com/andimarek
andimarekhttps://github.com/andimarek
2a54094https://github.com/graphql-java/graphql-java/commit/2a54094a3145a9448284c32ad045f2b08f2df15b
Nov 11, 2026https://github.com/graphql-java/graphql-java/pull/4523#event-35820605693
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4523
https://github.com/andimarek
andimarekhttps://github.com/andimarek
27https://github.com/graphql-java/graphql-java/milestone/93
Nov 11, 2026https://github.com/graphql-java/graphql-java/pull/4523#event-35820676039
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F4523
https://github.com/bbakerman
bbakerman https://github.com/bbakerman
https://github.com/graphql-java/graphql-java/pull/4523/files/435b2d0035926d1132f40dfca88e40248c371335
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4523
breaking change https://github.com/graphql-java/graphql-java/issues?q=state%3Aopen%20label%3A%22breaking%20change%22
27 https://github.com/graphql-java/graphql-java/milestone/93
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4523
https://github.com/andimarek
https://github.com/bbakerman
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.