how to write bulk data to DB

Certified Senior Developer

I have bulk data in a list of CDT  lets just say

Cases :{ A[], B:[],C:[],D:[] }

Now i want to write each instance of A,B,C,D to DB together because each instance of A,B,C,D  is correspond to a case (or you can say 1 request)

  and if once instance is failed then retry only that instance and rest of the instance to be persisted in DB.

I have implemented using  for loop in PM and call sub process asynchronous . And in sub process i will write each  of A ,B,C,D .

   

I wanted to check if there is a better approach considering performance.

  Discussion posts and replies are publicly visible