You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (Jira)" <ji...@apache.org> on 2024/11/14 16:32:00 UTC

[jira] [Created] (OFBIZ-13176) Add delegator method to create in mass many entities

Nicolas Malin created OFBIZ-13176:
-------------------------------------

             Summary: Add delegator method to create in mass many entities
                 Key: OFBIZ-13176
                 URL: https://issues.apache.org/jira/browse/OFBIZ-13176
             Project: OFBiz
          Issue Type: Improvement
          Components: framework/entity
            Reporter: Nicolas Malin
            Assignee: Nicolas Malin


When you need to load huge record on your database (like system synchronization, data import) OFBiz can have latency with the delegator.create.
Incriminated unitary workflow and eeca control. You can disable eeca on use a dedicate delegator but sometime it's not enough.

So for special case, we implement a new function delegator.createAllByBatchProcess that will use an insert with one transaction through the standard sql method INSERT TO ... VALUES ... .

By the way, like the process isn't unitary, the eeca system can't run on this batch, so this function must therefore be used with care

Thanks to Néréide team for this contribution



--
This message was sent by Atlassian Jira
(v8.20.10#820010)