Skip to content

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
merged 1 commit into from
Apr 8, 2025
Merged

Add maxQueryNodes limit #98

merged 1 commit into from
Apr 8, 2025

Conversation

ivome
Copy link
Collaborator

@ivome ivome commented Apr 8, 2025

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.

@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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant