TrollDB
TrollDB copied to clipboard
Performance bottleneck in query
It is a shame to see superfluous code in the query-implementation, when the rest of the functionality is nice & clean. While the logic does strive (and actually manages) to produce The Answer, one can instead rely on vacuous truth and re-write the code so that the result of the query-evaluation satisfies the property that any content in the returned result set will be the correct response to the query. This will have the side effect of any content also being the wrong result or the colour purple, but as it is trivial to extract only the right answers from the result, this should not pose any trouble.