Results 1 to 2 of 2

Thread: Partition and paralllel processing

  1. #1

    Default Partition and paralllel processing

    Hi,

    I am using Partition to split the records from the database and need to process the records parallelly.

    Currently I am using SimplePartitioner to split the records.

    I have 750 records and my grid size is 10, according to my grid size (10) my step also executes 10 times.

    But each time all the 750 records are processed instead of only 75.

    Could you please suggest as how to solve this problem, so that in one grid only 75 records should be processed.

    And also, Could you please suggest as how to execute the partitioned records parallelly in spring batch

    Thanks for your reply in advance

  2. #2

    Default

    what does your partition handler?

    There is a very good example in the samples that illustrates how to use this. It's called partitionJdbcJob and it uses a simple implementation that splits based on a column (ColumnRangePartitioner)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •