Skip to content

Re-order route registration for GraphQL WebMvc / WebFlux #39613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

kilink
Copy link
Contributor

@kilink kilink commented Feb 18, 2024

Re-order the route registrations for GraphQL requests so that the most commonly matched path is evaluated first.

The common case is valid POST requests to the graphql endpoint, so add that handler first; we found there is some overhead in the request predicate evaluation (see this issue), so while it may seem like a micro-optimization, it's a trivial change and can avoid evaluating some predicates in the common case.

Re-order the route registrations for GraphQL requests so that the
most commonly matched path is evaluated first.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 18, 2024
@bclozel bclozel self-assigned this Feb 18, 2024
@bclozel bclozel added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 18, 2024
@bclozel bclozel added this to the 3.2.3 milestone Feb 18, 2024
@bclozel bclozel closed this in 057432c Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants