ActivityIntValues intValues = (ActivityIntValues) ActivityPrimitiveValues.createActivityPrimitiveValues(ActivityPersistenceFactory.getInstance(getDirPath(), new ActivityConfig()), int.class, "likes", 0);
long time = System.currentTimeMillis();
for (int i = 0; i < 1000000; i++) {
boolean update = intValues.update(i, "+1");
if (update) {
intValues.prepareFlush().run();
}
if (i%1000000 == 0) {
System.out.println(i);