• Andy Soiron's avatar
    Avoid N+1 queries when checking for pending todos · 1477434a
    Andy Soiron authored
    Before a new todo is created we check if the user already
    has a pending todo for the item. If this operation is
    executed for multiple users we will only use one query to
    receive all pending todos
    1477434a
pending_todos_finder_spec.rb 1.81 KB