{{ message }}
Repository navigation
Conversation
…t and key Starting a process instance with a parent deployment id, the CMMN process task with same deployment and the call activity with same deployment now cache the id of the found process definition. A cached id is checked by selecting the definition by id, so the parent deployment query does not run again. Misses of the parent deployment lookup are only cached when cacheSameDeploymentDefinitionMisses is enabled; misses of the call activity lookup are always cached. Deploying and removing a deployment evicts the entries of its definition keys.
Starting a case instance with a parent deployment id, the CMMN case task with same deployment and the BPMN case task now cache the id of the found case definition. By default a cached id is checked by selecting the definition by id; with verifyCachedSameDeploymentDefinitions disabled the definition is taken from the case definition cache. Deploying and removing a deployment evicts the entries of its case definition keys.
Executing a decision with a parent deployment id, which includes the BPMN business rule task and the CMMN decision task, now caches the id of the found decision. The deployment query by parent and the decision select no longer run on a hit. By default a cached id is checked by selecting the decision by id; with verifyCachedSameDeploymentDefinitions disabled the decision is taken from the decision cache. Deploying and removing a deployment evicts the entries of its decision keys.
…factory The DbIdGenerator fetches the next id block through the process engine command executor. When a command of another engine is profiled, the select of the id block was attributed to that command.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Looking up a definition by parent deployment id and key (starting a process or case instance with a parent deployment id, the call activity, process task and case task with same deployment, and the BPMN business rule task and CMMN decision task) ran the parent deployment query every time. The id of the found definition is now kept in a cache per parent deployment (or deployment) and key, so a hit no longer runs that query.
verifyCachedSameDeploymentDefinitionsdisabled on the CMMN or DMN engine configuration, the definition is taken from the definition cache without a select.cacheSameDeploymentDefinitionMissesis enabled (disabled by default), because in a cluster a node that did not do the deployment would keep the miss when a new child deployment is added under an existing parent. Misses of the call activity lookup are always cached.setSameDeploymentDefinitionCache.The last commit fixes the
ProfilingDbSqlSessionFactoryused by the database operation count tests.DbIdGeneratorfetches a new id block through the process engine command executor, so when a command of another engine was profiled, thenext.dbidselect was counted for that command whenever the id block ran out during it.Check List: