Hey guys, I realise that I’ve actually asked this before and @Anaisdg mentioned that she didn’t expect any differences and @fercasjr mentioned that it depends on the schema. Link here: FLUX Optimisation: Pushdowns
Is there anything technical that’s worth knowing about using a filter that narrows the most at the beginning and thoughtfully applying filters thereafter?
@ajetsharwin It shouldn’t matter. The Flux query planner merges whatever filters it can into a single logical filter statement at query time. So there shouldn’t be any difference between the two queries you have. Where there could potentially be a difference is if you use the or operator in predicate expressions. That can force the query planner into using multiple query statements, but still, there shouldn’t be a huge performance difference.
“Where there could potentially be a difference is if you use the or operator in predicate expressions. That can force the query planner into using multiple query statements, but still, there shouldn’t be a huge performance difference.”