// *write* advantage performance wise anyway
if ((null == job.appendResults) || !job.appendResults) { // then we're going to write into temp
try {
target = DbManager.getCollection(job.getOutputDatabase(), job.outputCollectionTemp);
target.drop();
DbManager.getDB(job.getOutputDatabase()).getLastError();
}
catch (Exception e) {} // That's fine, it probably just doesn't exist yet...
}
// If we need any indexes for sorting/whatever then declare them here, which is faster