ret = db.supporters2.createIndex({ "lastActivity": -1 }); checkret('supporters2 lastActivity', ret);

ret = db.impressions2.createIndex({ "timelineId": -1 }); checkret('impressions2 timelineId', ret);

ret = db.timelines2.createIndex({ "userId": 1 }); checkret('timelines2 userId', ret);

ret = db.labels.createIndex({ "semanticId" : 1 }, { unique: true }); checkret('labels semanticId', ret);
ret = db.labels.createIndex({ "when" : 1 }); checkret('labels when', ret);

ret = db.metadata.createIndex({ "semanticId" : 1 }); checkret('metadata semanticId', ret);
ret = db.metadata.createIndex({ "userId" : 1 }); checkret('metadata userId', ret);
ret = db.metadata.createIndex({ "semantic" : 1 }); checkret('metadata semantic', ret);
ret = db.metadata.createIndex({ "when" : 1 }); checkret('metadata when', ret);
ret = db.metadata.createIndex({ "id" : 1 }, { unique : true }); checkret('metadata id', ret);
ret = db.metadata.createIndex({ "impressionTime" : -1 }); checkret('metadata impressionTime', ret);
ret = db.metadata.createIndex({ "timelineId" : -1 }); checkret('metadata timelineId', ret);
ret = db.metadata.createIndex({ "linkedtime.postId" : 1 }); checkret('metadata linkedtime.postId', ret);

ret = db.semantics.createIndex({ "label" : 1 }); checkret('semantics label', ret);
ret = db.semantics.createIndex({ "when" : 1 }); checkret('semantics when', ret);
ret = db.semantics.createIndex({ "semanticId" : 1 }); checkret('semantics semanticId', ret);

ret = db.parsererrors.createIndex({ "id": 1 }); checkret('parsererror id', ret);

ret = db.aggregated.createIndex({ "hourId": 1 }, {unique: true}); checkret('aggregated hourId', ret);

ret = db.summary.createIndex({ "id": 1 }, { unique: true }); checkret('summary id', ret);
ret = db.summary.createIndex({ "impressionTime": -1 }); checkret('summary impressionTime', ret);
ret = db.summary.createIndex({ "semanticId": 1}); checkret('summary semanticId', ret);
ret = db.summary.createIndex({ "user": -1 }); checkret('summary user', ret);
ret = db.summary.createIndex({ "timeline": 1}); checkret('summary timeline', ret);

ret = db.feeds2.createIndex({ "lang": 1, "label": 1}, {unique: true }); checkret('feeds2 lang+label', ret);
ret = db.feeds2.createIndex({ "createdAt": 1}, {expireAfterSeconds: 3600 / 2}); checkret('createdAt expiring after 30minutes', ret);

ret = db.trexstats.createIndex({ "day": -1}); checkret('trexstats day index', ret);
ret = db.trexstats.createIndex({ "hour": -1}); checkret('trexstats hourly index', ret);
ret = db.tmlnstats.createIndex({ "dayTime": 1, "userId": 1 } ); checkret('tmlnstats dayTime+userId', ret);
ret = db.tmlnstats.createIndex({ "id": 1}, {unique: true }); checkret('tmlnstats id', ret);

function checkret(info, retval) {
    retval.info = info;
    printjson(retval);
};

@@ -198,95 +198,468 @@
 t);%0A
-%0Aret = db.timelines2.createIndex(%7B %22userId%22: 1 %7D); checkret('timelines2 userId', ret);%0A
+/*%0Aret = db.impressions2.createIndex(%7B %22id%22: -1 %7D); checkret('impressions2 id', ret);%0Aret = db.impressions2.createIndex(%7B %22impressionTime%22: -1 %7D); checkret('impressions2 impressionTime', ret);%0A*/%0A%0Aret = db.timelines2.createIndex(%7B %22userId%22: 1 %7D); checkret('timelines2 userId', ret);%0A/*%0Aret = db.timelines2.createIndex(%7B %22id%22: 1 %7D); checkret('timelines2 id', ret);%0Aret = db.timelines2.createIndex(%7B %22startTime%22: -1 %7D); checkret('timelines2 startTime', ret);%0A*/ 
 %0Aret

index to use after db fix hd-full