batch adder: when autocommit is False, don't commit last items