// Only execute the delete query with one of the add queries.
// TODO: We could treat the delete query as a peer of the others,
// and include it in the sequence.
if (checkpoint.getInsertIndex() == 0) {
IQuery queryDocToDel = buildDelQuery(checkpoint);
collecToDel = queryDocToDel.execute(session,
IQuery.EXECUTE_READ_QUERY);
logger.fine("execution of the query returns a collection of " +
"documents to delete");
}