Skip to content
  • Giorgos Korfiatis's avatar
    quotaholder: Lock holdings in a single query · fdc56d75
    Giorgos Korfiatis authored
    Order by primary key when selecting multiple holdings for update;
    this most probably ensures that locking will happen in that order.
    
    As per commit 2f90645, we select all holdings for the given holders,
    rather that specifying all tuples (holder, source, resource), in order
    to avoid query explosion.
    fdc56d75