Announcement Announcement Module
Collapse
No announcement yet.
Multithreading and CursorItemReader Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multithreading and CursorItemReader

    Hi all
    i need to use mthreadign wtih my batch as it runs too slow (~ least 50 mins)..
    reason of that is that it's selecting data from a 40K row table, and it is then calling a service (via a processor) to retrieve domain data to be sent to output.

    I tried to configure a taskExecutor but got Cursor exception during the process.

    i searched web (and spring forums) and found that CursoritemReader is not thread safe,.

    I saw that there's a StagingItemReader which is thread safe, but i do not want to create an extra table just to hold staging data ...

    are there any workarounds i can do?

    w/kindest rgards
    marco
Working...
X