Skip to content

Instantly share code, notes, and snippets.

View camillef's full-sized avatar

Camille Fenton camillef

View GitHub Profile
@camillef
camillef / TENT-2432-MetatronXISBNReview.js
Created August 4, 2017 19:21
TENT-2432: TADC Metatron vs xISBN review
conn = new Mongo();
db = conn.getDB("dev_system");
timestampArray = [{"timestamp": {"$lte": ISODate("2017-06-13")}}, {"timestamp": {"$gte": ISODate("2017-06-22"), "$lte": ISODate("2017-07-24")}}, {"timestamp": {"$gte": ISODate("2017-08-04")}}];
total = db.work_source_responses.count({"$or": timestampArray});
print('Total = ' + total);
metatronMatch = db.work_source_responses.count({"responses.Metatron.0": {$exists: true}, "$or": timestampArray});