int recordsCount = 1000000;
int numOfEvents = 10;
for (int i = 0; i < numOfEvents; i++) {
Clock.setPredefinedTimeInMinutes(i);
for (int j = 0; j < recordsCount; j ++) {
activityValues.update((long)j, String.valueOf(i * recordsCount + j), jsonActivityUpdate);
if (j % 100000 == 0) {
System.out.println("Inserted next 100k events j = " + j);
}
}
System.out.println("Updated event = " + i);