Results 1 to 2 of 2

Thread: Eliminating duplicate records before writing to DB

  1. #1
    Join Date
    Jul 2011
    Posts
    6

    Default Eliminating duplicate records before writing to DB

    Any suggestions on how to eliminate duplicate records before passing it to the writer.

    I tried implementing ItemWriter but its called as many times as the number of source records if injected into the chunk as writer.

    Thanks
    AN

  2. #2

    Default

    I believe the only way to do is to dump the whole file into a temp table in step one. And then do a self join and a write to final database in second step.

    step 1: File to DB
    step 2: DB to DB

    Nik

Posting Permissions

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