Skip to content
  • Giorgos Korfiatis's avatar
    Simplify query to avoid hitting db stack limit · b92b8120
    Giorgos Korfiatis authored
    Refs #3479
    
    Looking up (entity, resource) pairs created a huge query formula
    in disjunctive normal form, which apparently brought the db parser
    to its limits.
    
    It has been replaced by selecting the holdings by entity only.
    This means that in theory we lock more holdings than needed (for any
    resource for a given entity), but in practice we would need to
    select these holdings anyway.
    b92b8120