isEnableTransactionBuilder

Returns true if transaction builder is enabled.

Enabling transaction builder allows grouping requests into transactions (OData change sets) to be sent in the next upload that were not necessarily executed in a single change set initially. In other words, enabling this allows building large transactions for the next upload where all requests that need to go into the transactions are not known at one time.

Which requests go in which transactions is controlled by specifying 'OfflineODataRequestOptions.transactionID' when performing the requests. Requests that contain the same transaction ID will be put into the same transaction (see additional notes).

For example, consider the following sequence of requests:

  1. Create Customer 1 with a transaction ID "1"
  2. Create Order 1 with a transaction ID "1"
  3. Create Product 1 with NO transaction ID
  4. Create Customer 2 with a transaction ID "2"
  5. Update Customer 1 with a transaction ID "1"
  6. Update Customer 2 with a transaction ID "2"

Just prior to executing the upload, the transaction builder algorithm will run and these requests will result in the following requests being sent to the backend (in this example assume 'enableRequestQueueOptimization' is 'false'):

  1. Batch #1
    1. Change Set #1
      1. Create Customer 1
      2. Create Order 1
      3. Update Customer 1
  2. Create Product 1
  3. Batch #2
    1. Change Set #1
      1. Create Customer 2
      2. Update Customer 2

**Additional Notes:**

1. 'enableTransactionBuilder' is 'false' by default.

2. 'enableTransactionBuilder' can be used in combination with 'enableRequestQueueOptimization'.

3. To ensure referential integrity of related entities and to ensure all requests are valid OData requests, it is not always possible to group all requests with the same transaction ID into a single change set. Therefore, the transaction builder will group requests with the same transaction ID into as few change sets as possible.

4. In addition to referential integrity, 'OfflineODataRequestOptions.unmodifiableRequest' can affect the transaction builder. Only one unmodifiable request per entity will be put into a single change set.

Return

true if transaction builder is enabled.

See also

OfflineODataRequestOptions