You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/11/15 13:44:00 UTC

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

    [ https://issues.apache.org/jira/browse/OFBIZ-13176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17898629#comment-17898629 ] 

ASF subversion and git services commented on OFBIZ-13176:
---------------------------------------------------------

Commit d7a1b40d1f5243cf38b2d755efcea12058e432f3 in ofbiz-framework's branch refs/heads/trunk from Nicolas Malin
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=d7a1b40d1f ]

Improved: Add delegator method to create in mass many entities (OFBIZ-13176) (#857)

Improved: Add delegator method to create in mass many entities (OFBIZ-13176)

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

Improve test to validate multi entity creation by batch.

Thanks to Néréide team for this contribution
 
---------

Co-authored-by: Gil Portenseigne <gi...@nereide.fr>

> 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
>            Priority: Minor
>              Labels: create, entity
>
> 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)