Skip to Content
0
Former Member
Apr 11, 2008 at 11:45 AM

Multithread DI API.

131 Views

Hello,

Is the DI API Multithread safe?

I have to generate hundreads of orders and hundred of deliveryNotes programatically, but the time each document object takes to save the data into the database is hugh, because it makes several round trips to the DB, in the visinity of 0.5 to 1 minute for each document. Because my total time is the accomulative round trip time, i have only one solution, to generate one thread for each document in witch I will have two steps:

1º add all the lines in a cycle.

2º add the document (header)

Note: The is a litle problem of getting all the numbers of the documents generated because the interface only get's the last document generated, but I can work around it.

The problem is to know if DI API is thread Safe?

Best regards,

Carlos Goetz