Skip to content
Discussion options

You must be logged in to vote

For number one - see org.dataloader.DataLoaderOptions#maxBatchSize. This allows you to specify how big or small the batch size is.

For number 2

It appears that currently the DataLoader determines that it is ready to request a batch of records from the BatchLoader and then it waits for the response.

I dont think this is true.

        int maxBatchSize = loaderOptions.maxBatchSize();
        CompletableFuture<List<V>> futureList;
        if (maxBatchSize > 0 && maxBatchSize < keys.size()) {
            futureList = sliceIntoBatchesOfBatches(keys, queuedFutures, callContexts, maxBatchSize);

The code will slice the keys into the batch sized set of "batch loads". The values back here are Com…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ee-usgs
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants