-
Notifications
You must be signed in to change notification settings - Fork 95
Feature/import documents batch threads #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/import documents batch threads #276
Conversation
…epts two additional parameters batchSize and numThreads.
Bug fix/274 (#275)
Hey @rkhaja, first of all, thank you very much for contributing. The code itself looks good to me. We need a JUnit test to test that feature, then we're able to merge. If you could also add a test, it would be great. Otherwise, we will add one as soon as we can. |
@hkernbach Thanks! I will of course write the JUnit test(s) (hopefully very soon) ... I wanted to be sure that the this code met your coding standards before I spent effort to write the tests. |
I've added the following test:
Essentially it is a copy of the basic
I hope the test is sufficient but if it is not please let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you for contributing, will merge your PR now. This will be then part of our next ArangoDB Java Driver release (Version: 5.0.8). |
Thank you! |
throw new ArangoDBException(e); | ||
} | ||
documentImportEntityList.add(documentImportEntity); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hkernbach I noticed a small problem.
RIght before the return statement on this line
we need to shutdown the executorService.
executorService.shutdown();
If another pull request is needed, please let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix that, thanks for spotting :)
This pull request addresses enhancements requested in #273
Please review.