Skip to content

RevenJ making bulk requests for Queries and Update tests #2204

@knewmanTE

Description

@knewmanTE

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions