Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add maxQueryNodes limit #98

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

Merged
ivome merged 1 commit into master from max-query-nodes
Apr 8, 2025
Merged

Add maxQueryNodes limit #98

ivome merged 1 commit into master from max-query-nodes
Apr 8, 2025

Conversation

Copy link
Collaborator

@ivome ivome commented Apr 8, 2025
edited
Loading

This PR adds a new option to limit the maximum number of query nodes that are allowed in a query. This is a safety mechanism to prevent overly complex queries from being evaluated, which can lead to resource exhaustion in certain edge cases.

By default, this library sets a default of 10_000 query nodes, which should be plenty for the overwhelming majority of cases.

kastner reacted with heart emoji
@ivome ivome merged commit 46706d4 into master Apr 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /