-
Notifications
You must be signed in to change notification settings - Fork 24
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
Batch Executor is thread safe or not #68
Comments
Not sure how you intend to use it.
// new batch statement created each time
mappingSession.withBatch()
.save(obj1)
.delete(obj2)
.execute();
// initialize batch
BatchExecutor batch = mappingSession
.withBatch()
.save(obj1)
.(obj2);
// execute it from multiple threads
batch.execute(); |
suppose if my mappingSession is singleton and i am trying to access two On Thu, Sep 3, 2015 at 11:41 PM, Eugene [email protected] wrote:
|
you can use same mappingSession from multiple threads, no need to synchronize it. |
and if i am modifieying the batch then also i dont need to sysnchronise it. On Fri, Sep 4, 2015 at 10:25 AM, Eugene [email protected] wrote:
|
Dear Eugene,
I have one query related to Batch executor that , is your batch executor thread safe or not ,
as we have to use synchronised block on that executor or not.
The text was updated successfully, but these errors were encountered: