• Yorick Peterse's avatar
    Improve checking if projects would be returned · f77fda64
    Yorick Peterse authored
    In various places we check if the same relation would return projects.
    This is done using "any?" which will run a COUNT query with any
    LIMIT/OFFSET values still applied.
    
    To work around all this we introduce 2 helper methods that take care of
    doing the right thing. This leads to the produced queries being simpler
    and fewer queries being executed.
    f77fda64
dont-use-limit-offset-when-counting-projects.yml 107 Bytes