Hacker News new | ask | show | jobs
by moring 2 days ago
Now I'm really confused. Your orignal comment reads like reordering changes semantics, so the two id= checks cannot be fused since reordering would be required for that. But now it sounds like reordering keeps semantics and is "just" left on the table by a simple optimizer, which isn't really relevant because the original comment is about a hypothetical optimization anyway...
1 comments

It is only about optimization yes. But the way it works today, but it is not guaranteed that collapsing the ORs to INs is optimal when it reorders _other_ predicates.