Skip to content
  • Yorick Peterse's avatar
    Improve checking if projects would be returned · dbc27fddb8d6
    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.
    dbc27fddb8d6