René's URL Explorer Experiment


Title: Support custom query parser in execute_graphql_request by Hellzed · Pull Request #7 · graphql-python/graphql-server · GitHub

Open Graph Title: Support custom query parser in execute_graphql_request by Hellzed · Pull Request #7 · graphql-python/graphql-server

X Title: Support custom query parser in execute_graphql_request by Hellzed · Pull Request #7 · graphql-python/graphql-server

Description: I've been checking per function performance on a project using Graphene, and it turns out the single biggest issue for simple queries is raw query parsing and subsequent conversion to AST. The rationale for this PR is I've never seen anyone not at least caching queries at this step in production (some logging also usually happens here): enabling custom query parsing allows people to implement additional logic here without having to rewrite graphql-server-core (which they usually do for now). A custom parsing step looks like this: def parse_query(query, schema): ... return ast, validation_errors Some LRU cache or logging can now easily be added on top of this. Please check the following commit to see how it would work in practice: Hellzed/aiohttp-graphql@2abe5d1

Open Graph Description: I've been checking per function performance on a project using Graphene, and it turns out the single biggest issue for simple queries is raw query parsing and subsequent conversion to AST. The ...

X Description: I've been checking per function performance on a project using Graphene, and it turns out the single biggest issue for simple queries is raw query parsing and subsequent conversion to AST. ...

Opengraph URL: https://github.com/graphql-python/graphql-server/pull/7

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:f6b971fa-7bcd-9ef8-a4c6-4e722ba412e8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA012:3022B5:305F0B:3ECF8E:6AFFC7FA
html-safe-nonce1ad14cf24c9fee58523ae53ccee26c309bcb9a2a47f035af5a6d5efdb96d2940
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDEyOjMwMjJCNTozMDVGMEI6M0VDRjhFOjZBRkZDN0ZBIiwidmlzaXRvcl9pZCI6IjM2Mjk2ODIzMjI1NDgxODA5ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac40a9db3d87fd81ac8e96a7e756afc26313d684456b4298fac077e5ba807e1d94
hovercard-subject-tagpull_request:161290512
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-python/graphql-server/pull/7/files
twitter:imagehttps://avatars.githubusercontent.com/u/1180536?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1180536?s=400&v=4
og:image:altI've been checking per function performance on a project using Graphene, and it turns out the single biggest issue for simple queries is raw query parsing and subsequent conversion to AST. The ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None1e805b832df235bb21305db712c3b6432920019dfc12cb25b9cb8d3b0c9403cf
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/graphql-python/graphql-server git https://github.com/graphql-python/graphql-server.git
octolytics-dimension-user_id15002022
octolytics-dimension-user_logingraphql-python
octolytics-dimension-repository_id85903189
octolytics-dimension-repository_nwographql-python/graphql-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id85903189
octolytics-dimension-repository_network_root_nwographql-python/graphql-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8fa4a54e6871c7908eda1c246ad5972982c0b59d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-python/graphql-server/pull/7/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-python%2Fgraphql-server%2Fpull%2F7%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-python%2Fgraphql-server%2Fpull%2F7%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-python%2Fgraphql-server
Reloadhttps://github.com/graphql-python/graphql-server/pull/7/files
Reloadhttps://github.com/graphql-python/graphql-server/pull/7/files
Reloadhttps://github.com/graphql-python/graphql-server/pull/7/files
graphql-pythonhttps://github.com/graphql-python
graphql-serverhttps://github.com/graphql-python/graphql-server
Codehttps://github.com/graphql-python/graphql-server
Issues5 (5)https://github.com/graphql-python/graphql-server/issues
Pull requests2 (2)https://github.com/graphql-python/graphql-server/pulls
Actionshttps://github.com/graphql-python/graphql-server/actions
Projectshttps://github.com/graphql-python/graphql-server/projects
Security and qualityhttps://github.com/graphql-python/graphql-server/security
Insightshttps://github.com/graphql-python/graphql-server/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgraphql-python%2Fgraphql-server%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgraphql-python%2Fgraphql-server%2Fissues%2Fnew%2Fchoose
Hellzedhttps://github.com/Hellzed
graphql-python:masterhttps://github.com/graphql-python/graphql-server/tree/master
Hellzed:masterhttps://github.com/Hellzed/graphql-server-core/tree/master
Conversation 1 https://github.com/graphql-python/graphql-server/pull/7
Commits 2 https://github.com/graphql-python/graphql-server/pull/7/commits
Checks 0 https://github.com/graphql-python/graphql-server/pull/7/checks
Files changed https://github.com/graphql-python/graphql-server/pull/7/files
Please reload this pagehttps://github.com/graphql-python/graphql-server/pull/7/files
Support custom query parser in execute_graphql_request https://github.com/graphql-python/graphql-server/pull/7/files#top
Show all changes 2 commits https://github.com/graphql-python/graphql-server/pull/7/files
eea42dd Add support for custom query parser Hellzed Jan 5, 2018 https://github.com/graphql-python/graphql-server/pull/7/commits/eea42ddf0d17fb7c32c0d763855a0684b97b5e3b
c16f33c Actually use custom query parser Hellzed Jan 5, 2018 https://github.com/graphql-python/graphql-server/pull/7/commits/c16f33cf2d1f3038144a8a16d0d19c8e89bb2ecd
Clear filters https://github.com/graphql-python/graphql-server/pull/7/files
Please reload this pagehttps://github.com/graphql-python/graphql-server/pull/7/files
Please reload this pagehttps://github.com/graphql-python/graphql-server/pull/7/files
graphql_server/__init__.pyhttps://github.com/graphql-python/graphql-server/pull/7/files#diff-f5bf36b3c98dbd36d9162270e472de17c35179087b33483ed82b14a5ae8f3bd1
View file https://github.com/Hellzed/graphql-server-core/blob/c16f33cf2d1f3038144a8a16d0d19c8e89bb2ecd/graphql_server/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-python/graphql-server/pull/7/{{ revealButtonHref }}
https://github.com/graphql-python/graphql-server/pull/7/files#diff-f5bf36b3c98dbd36d9162270e472de17c35179087b33483ed82b14a5ae8f3bd1
https://github.com/graphql-python/graphql-server/pull/7/files#diff-f5bf36b3c98dbd36d9162270e472de17c35179087b33483ed82b14a5ae8f3bd1
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.