Skip to content
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

Generated Query Optimization #100

Closed
1 of 4 tasks
thomaspatzke opened this issue Jul 1, 2018 · 0 comments
Closed
1 of 4 tasks

Generated Query Optimization #100

thomaspatzke opened this issue Jul 1, 2018 · 0 comments

Comments

@thomaspatzke
Copy link
Member

thomaspatzke commented Jul 1, 2018

Generated queries are often unnecessarily complicated. An optimization step should be done on the parse tree. Ideas:

  • Remove duplicate NOTs
  • NOT ConditionNULLValue to ConditionNotNULLValue (some backends like es-qs generate improved statements)
  • Parentheses around single conditions, e.g. (EventID:"5861") AND ...
  • Parentheses around conditions of same type without any further conditions, e.g. (... AND ... AND ...)
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

No branches or pull requests

1 participant