René's URL Explorer Experiment


Title: How to work around a significant DataFetchingFieldSelectionSet performance issue with many types · graphql-java/graphql-java · Discussion #2309 · GitHub

Open Graph Title: How to work around a significant DataFetchingFieldSelectionSet performance issue with many types · graphql-java/graphql-java · Discussion #2309

X Title: How to work around a significant DataFetchingFieldSelectionSet performance issue with many types · graphql-java/graphql-java · Discussion #2309

Description: How to work around a significant DataFetchingFieldSelectionSet performance issue with many types

Open Graph Description: Hi! I am playing with GraphQL-Java and have had really good progress really fast. Perhaps too fast. I've landed on an issue where DataFetchingFieldSelectionSetImpl.getImmediateFields() is taking 20...

X Description: Hi! I am playing with GraphQL-Java and have had really good progress really fast. Perhaps too fast. I've landed on an issue where DataFetchingFieldSelectionSetImpl.getImmediateFields() is takin...

Opengraph URL: https://github.com/graphql-java/graphql-java/discussions/2309

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"How to work around a significant DataFetchingFieldSelectionSet performance issue with many types","text":"\u003cp dir=\"auto\"\u003eHi! I am playing with GraphQL-Java and have had really good progress really fast. Perhaps too fast.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI've landed on an issue where \u003ccode class=\"notranslate\"\u003eDataFetchingFieldSelectionSetImpl.getImmediateFields()\u003c/code\u003e is taking 20 seconds to run. I cannot work with that and need help working around the issue. Inspection showed that the result from it had 3.5 million entries in my case for a GraphQL query that looks roughly like this:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"{\n  things {\n    id\n    parent {\n      id\n      name\n      parent {\n        id\n        name\n        parent {\n          id\n          name\n          parent {\n            id\n            name\n          }\n        }\n      }\n    }\n  }\n}\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode class=\"notranslate\"\u003e{\n  things {\n    id\n    parent {\n      id\n      name\n      parent {\n        id\n        name\n        parent {\n          id\n          name\n          parent {\n            id\n            name\n          }\n        }\n      }\n    }\n  }\n}\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYes, this is \"deep\" but quite a simple query otherwise. My gut feeling about what sets this off is that we have over a hundred various types (interfaces and objects) that any parent can be be of and I haven't found a way to simply ask for \"give me what is stated, don't try to resolve this to per-type fields\" which causes huge repetition - each field is listed many times, one per type it exists in, for all possible types, at each level.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI cannot change the data model - this is a complex, large application and the types in it exist for good reasons. Dividing this time into smaller chunks wouldn't be helpful either, as it would still be spent, just differently. How can I get what is requested by the client at \"face value\" and no processing/resolving at all?\u003c/p\u003e","upvoteCount":1,"answerCount":12,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003eSeems related: \u003ca class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"801463511\" data-permission-text=\"Title is private\" data-url=\"https://github.com/graphql-java/graphql-java/issues/2185\" data-hovercard-type=\"issue\" data-hovercard-url=\"/graphql-java/graphql-java/issues/2185/hovercard\" href=\"https://github.com/graphql-java/graphql-java/issues/2185\"\u003e#2185\u003c/a\u003e\u003c/p\u003e","upvoteCount":1,"url":"https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-725917"}}}

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::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:d39d1765-6e0e-8501-b4ee-180140665a65
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-idCCDC:EDA7A:28C104F:33C81EE:6B01A0A5
html-safe-nonce04b59030daeee8367f03f7f947b6816fd4de01707e2d4a30d1582ada5ab4f262
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0RDOkVEQTdBOjI4QzEwNEY6MzNDODFFRTo2QjAxQTBBNSIsInZpc2l0b3JfaWQiOiIzODQ5NzQ2NzgzMTE4OTI1OTg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac49d9b27c7f00c54fe68f8b241c3746470e60528df18b7c1498197d87edf44a42
hovercard-subject-tagdiscussion:3340662
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/graphql-java/graphql-java/2309/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/1fb389fde13669aeb3600a9c8f37492d3c49ce151c950006002059b85d36d92b/graphql-java/graphql-java/discussions/2309
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1fb389fde13669aeb3600a9c8f37492d3c49ce151c950006002059b85d36d92b/graphql-java/graphql-java/discussions/2309
og:image:altHi! I am playing with GraphQL-Java and have had really good progress really fast. Perhaps too fast. I've landed on an issue where DataFetchingFieldSelectionSetImpl.getImmediateFields() is taking 20...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
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

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/discussions/2309#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fdiscussions%2F2309
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%2Fdiscussions%2F2309
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%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/discussions/2309
Reloadhttps://github.com/graphql-java/graphql-java/discussions/2309
Reloadhttps://github.com/graphql-java/graphql-java/discussions/2309
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
Answered https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-725917
aleksandarsusnjarhttps://github.com/aleksandarsusnjar
aleksandarsusnjar https://github.com/aleksandarsusnjar
Q&Ahttps://github.com/graphql-java/graphql-java/discussions/categories/q-a
How to work around a significant DataFetchingFieldSelectionSet performance issue with many types https://github.com/graphql-java/graphql-java/discussions/2309#top
aleksandarsusnjar https://github.com/aleksandarsusnjar
Answered https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-725917
aleksandarsusnjarhttps://github.com/aleksandarsusnjar
Return to tophttps://github.com/graphql-java/graphql-java/discussions/2309#top
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjar https://github.com/aleksandarsusnjar
Apr 27, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussion-3340662
aleksandarsusnjar https://github.com/aleksandarsusnjar
May 11, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-725917
#2185https://github.com/graphql-java/graphql-java/issues/2185
View full answer https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-725917
Oldest https://github.com/graphql-java/graphql-java/discussions/2309?sort=old
Newest https://github.com/graphql-java/graphql-java/discussions/2309?sort=new
Top https://github.com/graphql-java/graphql-java/discussions/2309?sort=top
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
andimarek https://github.com/andimarek
Apr 27, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-666220
https://github.com/graphql-java/graphql-anonymizerhttps://github.com/graphql-java/graphql-anonymizer
https://github.com/aleksandarsusnjar
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjarhttps://github.com/aleksandarsusnjar
Apr 27, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-666221
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjar https://github.com/aleksandarsusnjar
Apr 27, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-666245
anonymized.ziphttps://github.com/graphql-java/graphql-java/files/6387231/anonymized.zip
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
andimarek https://github.com/andimarek
Apr 27, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-666253
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjar https://github.com/aleksandarsusnjar
Apr 27, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-666255
https://github.com/andimarek
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
andimarekhttps://github.com/andimarek
Apr 27, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-666258
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjar https://github.com/aleksandarsusnjar
Apr 27, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-666257
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjar https://github.com/aleksandarsusnjar
Apr 27, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-666264
https://www.graphql-java.com/blog/deep-dive-merged-fields/https://www.graphql-java.com/blog/deep-dive-merged-fields/
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjar https://github.com/aleksandarsusnjar
Apr 27, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-666462
https://user-images.githubusercontent.com/40366235/116310229-b84e0600-a777-11eb-9c33-6f4f4c4af6a7.png
https://user-images.githubusercontent.com/40366235/116310379-ecc1c200-a777-11eb-892a-b10990c80e5e.png
https://user-images.githubusercontent.com/40366235/116310640-47f3b480-a778-11eb-8fbf-417aa2d9e32c.png
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjar https://github.com/aleksandarsusnjar
Apr 27, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-666491
Call_Tree_Complete.ziphttps://github.com/graphql-java/graphql-java/files/6387596/Call_Tree_Complete.zip
https://github.com/aleksandarsusnjar
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjarhttps://github.com/aleksandarsusnjar
Apr 27, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-666641
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjar https://github.com/aleksandarsusnjar
May 1, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-682812
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjar https://github.com/aleksandarsusnjar
May 7, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-708920
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjar https://github.com/aleksandarsusnjar
May 7, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-709958
https://github.com/aleksandarsusnjar
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjarhttps://github.com/aleksandarsusnjar
May 7, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-709967
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/graphql-java/graphql-java/discussions/2309
aleksandarsusnjar https://github.com/aleksandarsusnjar
May 11, 2021 https://github.com/graphql-java/graphql-java/discussions/2309#discussioncomment-725917
#2185https://github.com/graphql-java/graphql-java/issues/2185
aleksandarsusnjarhttps://github.com/aleksandarsusnjar
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%2Fdiscussions%2F2309
🙏 Q&A https://github.com/graphql-java/graphql-java/discussions/categories/q-a
https://github.com/aleksandarsusnjar
https://github.com/andimarek
https://github.com/graphql-java/graphql-java/discussions/2309
https://github.com/settings/replies?return_to=1
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.