You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interface and and setting the engine property `hostnameProvider` to an instance of that class.
509
+
interface and and setting the engine property <code>hostnameProvider</code> to an instance of that class.
510
510
<br><br>
511
511
</td>
512
512
</tr>
@@ -551,6 +551,20 @@ The following is a list with the most commonly used process engine configuration
551
551
</p>
552
552
</td>
553
553
</tr>
554
+
<tr>
555
+
<td><code>transactionIsolationLevel</code></td>
556
+
<td>String</td>
557
+
<td>
558
+
Specifies the value to be configured as the default transaction isolation level for the data source. If <code>null</code> or empty, the value will not be overridden and the global isolation level configured in the database will be used.
559
+
<p>
560
+
The default value is <code>readCommitted</code>. If the property is absent, the default value will be set.
561
+
</p>
562
+
<p>
563
+
<strong>Note</strong>: The <a href="{{<ref "/user-guide/process-engine/database/database-configuration.md#isolation-level-configuration" >}}">recommended transaction isolation level</a> that ensures the correct behaviour of the engine is <code>readCommitted</code>.
@@ -1154,7 +1168,7 @@ The following is a list with the most commonly used process engine configuration
1154
1168
<td>String</td>
1155
1169
<td><a href="{{< ref "/user-guide/process-engine/history/history-cleanup.md">}}">History cleanup</a> batch window end time in the format <code>HH:mmZ</code> (Z is for RFC 822 time zone) or <code>HH:mm</code>. E.g., <code>23:00-0300</code> or <code>23:00</code>. In case <code>batchWindowEndTime</code> exceeds <code>batchWindowStartTime</code> it is considered
1156
1170
to be on the same date (e.g., cleanup runs each day between 20:00 and 23:00). Otherwise it is considered to be on the next calendar day (e.g., cleanup starts each
1157
-
day at 20:00 and finishes the next day at 01:00). Default value is `00:00`.</td>
1171
+
day at 20:00 and finishes the next day at 01:00). Default value is <code>00:00</code>.</td>
Copy file name to clipboardExpand all lines: content/user-guide/process-engine/database/database-configuration.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,3 +174,13 @@ Most database management systems provide four different isolation levels to be s
174
174
* SERIALIZABLE
175
175
176
176
The required isolation level to run Camunda with is **READ COMMITTED**, which may have a different name according to your database system. Setting the level to REPEATABLE READS is known to cause deadlocks, so one needs to be careful, when changing the isolation level.
177
+
178
+
If the isolation level is different from **READ COMMITTED** at the level of the database configuration, the default behavior of the engine is to configure the data source level with this value.
179
+
180
+
If you prefer to change this behaviour, you can use property `transactionIsolationLevel` to either use the same value as the global database configuration or use a specific one. This property works as follows:
181
+
182
+
* If unset, the default value of `readCommitted` will be used to configure the data source.
183
+
* If `null` or empty, the data source won't be configured and the global isolation level for the database will be used.
184
+
* If the property has an accepted value (`readUncommitted`, `readCommitted`, `repeatableReads` or `serializable`), it will be configured in the datasource.
185
+
186
+
[See here]({{< ref "/reference/deployment-descriptors/tags/process-engine.md#configuration-properties" >}}) for more details about this and other properties.
0 commit comments