MuleSoft Connector for Dataflex

Build 20.0.7587

Batch Processing

Use the Bulk Execute operation to combine multiple statements of the same data manipulation operation into one statement. When the Bulk Execute operation is invoked, the connector builds one API request for each type of operation.

Configuring Bulk Ops in the Visual Editor

To configure the operation in the Visual Editor, select the connector inside your flow and specify the following connector properties.

  • Connector Configuration: Select a connection you created. See Establishing a Connection for more information.
  • Operation: Choose Bulk Execute.
  • SQL Query: Enter one or more SQL statements. See the following examples. The statements can also contain expressions.

Bulk Insert

The following examples combine multiple inserts into a single Dataflex request:

SQL

INSERT INTO Accounts (Name) VALUES ('Jon Doe'); INSERT INTO Accounts (Name) VALUES ('John');
XML
<cdata-cdsbulk-execute config-ref="CData_CDS_Configuration" query="INSERT INTO Accounts (Name) VALUES ('Jon Doe'); INSERT INTO Accounts (Name) VALUES ('John');" doc:name="CData CDS"/>

Bulk Update

The following examples combine multiple updates into a single Dataflex request:

SQL

UPDATE Accounts SET Name='Jon Doe' WHERE AccountId = 'MyAccountId1';UPDATE Accounts SET Name='John' WHERE AccountId = 'MyAccountId2';
XML
<cdata-cdsbulk-execute config-ref="CData_CDS_Configuration" query="UPDATE Accounts SET Name='Jon Doe' WHERE AccountId = 'MyAccountId1';UPDATE Accounts SET Name='John' WHERE AccountId = 'MyAccountId2';" doc:name="CData CDS"/>

Bulk Delete

The following examples combine multiple deletes into a single Dataflex request:

SQL

DELETE FROM Accounts WHERE AccountId = 'MyAccountId1'; DELETE FROM Accounts WHERE AccountId = 'MyAccountId2'; 
XML
<cdata-cdsbulk-execute config-ref="CData_CDS_Configuration" query="DELETE FROM Accounts WHERE AccountId = 'MyAccountId1'; DELETE FROM Accounts WHERE AccountId = 'MyAccountId2'; " doc:name="CData CDS"/>

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 20.0.7587