Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
paperplatter
· 2y ago · 0 comments
I get how this isn't good. But how else would you handle multi-field filtering, keep all the ANDs and use (product_id = $1 OR $1 IS NULL) so the unset filters are no-op? That's ok as long as the query planner is smart enough.
Comments
No comments yet.
Better HN