haskell-beam / haskell-beam/beam

Idea: Optimize simple boolean filters

Open
#93 1 comment 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Haskell
Stars
635
Forks
193
PR merge metrics
No merged PRs in 30d

Description

I often have conditional filtering in my queries which causes beam to produce where clauses that look like `WHERE ((true) AND (true)) AND (true)...`. It seems it would be easy to clean this up when building the queries by just realizing that a known (`val_ True`) combined with `&&.` can simplify to one side or the other. I'm not sure if this is "in-scope" with this project, but if it were easy, it would make the resulting queries cleaner.

I could see an argument against this if one wanted to have a very clear 1-to-1 correspondence between the beam DSL and generated SQL.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.