Results 1 to 3 of 3

Thread: Bulk insert with CrudRepository

  1. #1

    Default Bulk insert with CrudRepository

    http://static.springsource.org/sprin...ng.Iterable%29 claims that CrudRepository supports bulk inserts. Is this in fact true or does this method simply call save(T entity) in a loop?
    Marcel Stör, http://www.frightanic.com
    Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
    O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

  2. #2

    Default

    Oh yes, it does indeed: https://github.com/SpringSource/spri...tory.java#L366

    So, the question remains: how to do real bulk inserts with Spring Data JPA?
    Marcel Stör, http://www.frightanic.com
    Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
    O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

  3. #3

    Default

    Last edited by marcelstoer; Feb 19th, 2013 at 01:47 PM.
    Marcel Stör, http://www.frightanic.com
    Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
    O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Posting Permissions

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