cubicweb #2388884 Issue with ERQLExpression based on a single attribute [open]

With the following :

ERQLExpression('X visible TRUE')

for security, the generated SQL uses :

EXISTS(SELECT 1 WHERE _CA2.cw_visible=TRUE)

The performances are better with a single restriction such as:

AND _CA2.cw_visible=TRUE

The EXISTS is not mandatory in this case (security based on a single attribute)

prioritynormal
typebug
done in<not specified>
closed by<not specified>