return jongo.getCollection("benchmark");
}
public static void injectFriendsIntoDB(int nbDocuments) throws UnknownHostException {
MongoCollection collection = getCollectionFromJongo(new JacksonMapper.Builder().build());
collection.drop();
for (int i = 0; i < nbDocuments; i++) {
collection.withWriteConcern(WriteConcern.SAFE).save(createFriend(i));
}
long count = collection.count();
if (count < nbDocuments) {