Announcement Announcement Module
Collapse
No announcement yet.
Bulk Insert option Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bulk Insert option

    Hi, I need to batch insert my contents into db and I found save(Iterable) in CrudRepository to achieve that. I will be sending variable sized list from request and I have to enter its instance one by one into table.
    For example, we have to save for a rate plan data,
    sample data,
    1-2 days: 30$
    2-4 days: 30$
    4-6 days: 50$
    6-10 days: 50$

    sometimes the data can be lesser and sometimes more, so I decided to save this in separate table as separate entry for each instance of data and link with unique key attribute.

    I have tried placing List and tried to post data with custom impl repository but custom repos are not working. But I am pretty sure there is an in-built way to achieve this.

    Am using dynamoDB as backend and using spring-dynamoDB community project for my API. Is there any possible way to achieve this. Am completely new to spring framework. Please guide me in a correct way to achieve with any samples.
    Thanks in advance.
    I have searched for samples and I dint get, please help me solve this problem.
    Last edited by jAddict; Mar 24th, 2014, 01:38 AM.
Working...
X