Package org.flowable.engine.impl.cfg
Class PerformanceSettings
java.lang.Object
org.flowable.engine.impl.cfg.PerformanceSettings
- Author:
- Joram Barrez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
If true, whenever an execution is fetched from the data store, the whole execution tree is fetched in the same roundtrip.protected boolean
Keeps a count on each execution that holds how many variables, jobs, tasks, event subscriptions, etc.protected boolean
Experimental setting: in certain places in the engine (execution/process instance/historic process instance/ tasks/data objects) localization is supported.protected boolean
Similar toenableExecutionRelationshipCounts
, but on the task level.protected boolean
If false, no check will be done on boot.protected boolean
If false, no check will be done on boot. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
void
setEnableEagerExecutionTreeFetching
(boolean enableEagerExecutionTreeFetching) void
setEnableExecutionRelationshipCounts
(boolean enableExecutionRelationshipCounts) void
setEnableLocalization
(boolean enableLocalization) void
setEnableTaskRelationshipCounts
(boolean enableTaskRelationshipCounts) void
setValidateExecutionRelationshipCountConfigOnBoot
(boolean validateExecutionRelationshipCountConfigOnBoot) void
setValidateTaskRelationshipCountConfigOnBoot
(boolean validateTaskRelationshipCountConfigOnBoot)
-
Field Details
-
enableEagerExecutionTreeFetching
protected boolean enableEagerExecutionTreeFetchingIf true, whenever an execution is fetched from the data store, the whole execution tree is fetched in the same roundtrip. Less roundtrips to the database outweighs doing many, smaller fetches and often multiple executions from the same tree are needed anyway when executing process instances. This enables the setting globally. However, it must also be enabled on a process definition itself. If false, the setting on the process definition is ignored. -
enableExecutionRelationshipCounts
protected boolean enableExecutionRelationshipCountsKeeps a count on each execution that holds how many variables, jobs, tasks, event subscriptions, etc. the execution has. This makes the delete more performant as a query is not needed anymore to check if there is related data. However, maintaining the count does mean more updates to the execution and potentially more optimistic locking opportunities. Typically keeping the counts lead to better performance as deletes are a large part of the execution tree maintenance. This property can only be enabled or disabled globally currently. -
enableTaskRelationshipCounts
protected boolean enableTaskRelationshipCountsSimilar toenableExecutionRelationshipCounts
, but on the task level. Keeps count of how many variables ad identity links the task has. -
validateExecutionRelationshipCountConfigOnBoot
protected boolean validateExecutionRelationshipCountConfigOnBootIf false, no check will be done on boot. -
validateTaskRelationshipCountConfigOnBoot
protected boolean validateTaskRelationshipCountConfigOnBootIf false, no check will be done on boot. -
enableLocalization
protected boolean enableLocalizationExperimental setting: in certain places in the engine (execution/process instance/historic process instance/ tasks/data objects) localization is supported. When this setting is false, localization is completely disabled, which gives a small performance gain.
-
-
Constructor Details
-
PerformanceSettings
public PerformanceSettings()
-
-
Method Details
-
isEnableEagerExecutionTreeFetching
public boolean isEnableEagerExecutionTreeFetching() -
setEnableEagerExecutionTreeFetching
public void setEnableEagerExecutionTreeFetching(boolean enableEagerExecutionTreeFetching) -
isEnableExecutionRelationshipCounts
public boolean isEnableExecutionRelationshipCounts() -
setEnableExecutionRelationshipCounts
public void setEnableExecutionRelationshipCounts(boolean enableExecutionRelationshipCounts) -
isEnableTaskRelationshipCounts
public boolean isEnableTaskRelationshipCounts() -
setEnableTaskRelationshipCounts
public void setEnableTaskRelationshipCounts(boolean enableTaskRelationshipCounts) -
isValidateExecutionRelationshipCountConfigOnBoot
public boolean isValidateExecutionRelationshipCountConfigOnBoot() -
setValidateExecutionRelationshipCountConfigOnBoot
public void setValidateExecutionRelationshipCountConfigOnBoot(boolean validateExecutionRelationshipCountConfigOnBoot) -
isValidateTaskRelationshipCountConfigOnBoot
public boolean isValidateTaskRelationshipCountConfigOnBoot() -
setValidateTaskRelationshipCountConfigOnBoot
public void setValidateTaskRelationshipCountConfigOnBoot(boolean validateTaskRelationshipCountConfigOnBoot) -
isEnableLocalization
public boolean isEnableLocalization() -
setEnableLocalization
public void setEnableLocalization(boolean enableLocalization)
-