Jackie-Jiang commented on PR #14432: URL: https://github.com/apache/pinot/pull/14432#issuecomment-2475090569
In most cases, `NOT(x AND y)` will be faster than `NOT(x) OR NOT(y)` because `OR` is a very expensive operation and quite hard to optimize. IIRC, `NOT(x OR y AND z)` should be equivalent to `NOT(x OR (y AND z))` where `AND` has higher precedence than `OR`. I think rewriting `NOT(x OR y)` into `NOT(x) AND NOT(y)` can probably give better performance. Do you find a query where this rewrite can help improve the performance? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
