kaspiana / mage

A command-line tool for cataloguing images (particularly digital art), styled after Git.
0 stars 0 forks source link

Query tree optimisation #50

Open kaspiana opened 2 months ago

kaspiana commented 2 months ago

Currently, no optimisations are performed on query trees other than the flattening of like disjunctions via associativity, i.e. (or a (or b c)) -> (or a b c). It should be investigated whether further optimisations can be made, both from the perspective of set logic, and from the perspective of SQL.