-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
RevenJ is getting very high results for Queries and Update because it is making bulk requests, rather than making each request individually, as the TFB docs specify (see number 6). We're currently hiding the RevenJ results from the official listings until this is resolved.
public World[] loadWorlds(final int count) throws IOException {
bulkReader.reset();
for (int i = 0; i < count; i++) {
callables[i] = bulkReader.find(World.class, Integer.toString(getRandom10k()));
}
bulkReader.execute();
try {
for (int i = 0; i < count; i++) {
buffer[i] = ((Optional<World>) callables[i].call()).get();
}
} catch (Exception e) {
throw new IOException(e);
}
return buffer;
}
(Source)