Title: DataFetchingFieldSelectionSet updates in 16.1 can't handle recursive schema properly and causing slowness · Issue #2185 · graphql-java/graphql-java · GitHub
Open Graph Title: DataFetchingFieldSelectionSet updates in 16.1 can't handle recursive schema properly and causing slowness · Issue #2185 · graphql-java/graphql-java
X Title: DataFetchingFieldSelectionSet updates in 16.1 can't handle recursive schema properly and causing slowness · Issue #2185 · graphql-java/graphql-java
Description: Describe the bug We are upgrading our library dependency from 15.0 to 16.1 recently and found that DataFetchingFieldSelectionSet updated at #2079 has a regression in performance making our HTTP request 10+ times longer. We use Java Fligh...
Open Graph Description: Describe the bug We are upgrading our library dependency from 15.0 to 16.1 recently and found that DataFetchingFieldSelectionSet updated at #2079 has a regression in performance making our HTTP req...
X Description: Describe the bug We are upgrading our library dependency from 15.0 to 16.1 recently and found that DataFetchingFieldSelectionSet updated at #2079 has a regression in performance making our HTTP req...
Opengraph URL: https://github.com/graphql-java/graphql-java/issues/2185
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DataFetchingFieldSelectionSet updates in 16.1 can't handle recursive schema properly and causing slowness","articleBody":"**Describe the bug**\r\nWe are upgrading our library dependency from 15.0 to 16.1 recently and found that DataFetchingFieldSelectionSet updated at https://github.com/graphql-java/graphql-java/pull/2079 has a regression in performance making our HTTP request 10+ times longer.\r\n\r\nWe use Java Flight Recorder to narrow down the root cause and found that it is because the HashMap.resize() in `NormalizedQueryTreeFactory.createNormalizedQueryImpl`.\r\n\r\n\r\n\r\n\r\nBelow screenshots show that the normalizedFieldToMergedField has 1.29 M entries and other local variables here also extremely large in size.\r\n\r\n\r\n\r\n\r\n**To Reproduce**\r\nPlease provide a code example or even better a test to reproduce the bug.\r\n","author":{"url":"https://github.com/ntf","@type":"Person","name":"ntf"},"datePublished":"2021-02-04T16:54:01Z","url":"https://github.com/graphql-java/graphql-java/issues/2185"}
| react-profiling | 0 |
| react-import-map | react,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/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7be192f0-031d-5d8e-62ea-0578396c5cb7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1EA:291B58:1D30D07:24FE949:6B01995F |
| html-safe-nonce | ae66190a2b7f282354ac3a5728d0242c7c3428764129ff5b032a5cf4065e7100 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUVBOjI5MUI1ODoxRDMwRDA3OjI0RkU5NDk6NkIwMTk5NUYiLCJ2aXNpdG9yX2lkIjoiMjI0MjcyNDc5ODY5MjE3MDA4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 95ec23126cd0fe18adf07c732d396bda5c0775e8ef170a5fef1efc4ce6e7d5a5 |
| hovercard-subject-tag | issue:801463511 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/graphql-java/graphql-java/2185/issue_layout |
| twitter:image | https://opengraph.githubassets.com/33935f8d41e53a050bd2452a06be2af4f492567174a149ab19fb77f6ebdbbd0f/graphql-java/graphql-java/issues/2185 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/33935f8d41e53a050bd2452a06be2af4f492567174a149ab19fb77f6ebdbbd0f/graphql-java/graphql-java/issues/2185 |
| og:image:alt | Describe the bug We are upgrading our library dependency from 15.0 to 16.1 recently and found that DataFetchingFieldSelectionSet updated at #2079 has a regression in performance making our HTTP req... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ntf |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git |
| octolytics-dimension-user_id | 14289921 |
| octolytics-dimension-user_login | graphql-java |
| octolytics-dimension-repository_id | 38602457 |
| octolytics-dimension-repository_nwo | graphql-java/graphql-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38602457 |
| octolytics-dimension-repository_network_root_nwo | graphql-java/graphql-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width