Is this query possible in Ecto?

Good catch. For now you can also move the v.app_id == 123 to inside each OR. I think the query engine will be able to optimize it anyway.

1 Like