You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2010/03/30 20:34:27 UTC
[jira] Commented: (ODE-795) Speed up listAllProcesses
[ https://issues.apache.org/jira/browse/ODE-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851500#action_12851500 ]
Hudson commented on ODE-795:
----------------------------
Integrated in ODE-1.x #87 (See [http://hudson.zones.apache.org/hudson/job/ODE-1.x/87/])
: Speedup listAllProcesses + test case
> Speed up listAllProcesses
> -------------------------
>
> Key: ODE-795
> URL: https://issues.apache.org/jira/browse/ODE-795
> Project: ODE
> Issue Type: Improvement
> Components: BPEL Runtime
> Affects Versions: 1.3.3
> Reporter: Rafal Rusin
> Assignee: Rafal Rusin
>
> listAllProcesses in ProcessAndInstanceManagementImpl.java does a lot of queries to database in order to fetch instance summary. This causes transaction timeout. on ODE load.
> Disabling instance summary is a workaround:
> diff --git a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java b/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
> index 47ada7a..0317864 100644
> --- a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
> +++ b/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
> @@ -805,6 +805,7 @@ public class ProcessAndInstanceManagementImpl implements InstanceManagement, Pro
> depinfo.setDocument(pconf.getBpelDocument());
> depinfo.setDeployDate(toCalendar(pconf.getDeployDate()));
> depinfo.setDeployer(pconf.getDeployer());
> + /*
> if (custom.includeInstanceSummary()) {
> TInstanceSummary isum = info.addNewInstanceSummary();
> genInstanceSummaryEntry(conn, isum.addNewInstances(), TInstanceStatus.ACTIVE, pconf);
> @@ -814,7 +815,7 @@ public class ProcessAndInstanceManagementImpl implements InstanceManagement, Pro
> genInstanceSummaryEntry(conn, isum.addNewInstances(), TInstanceStatus.SUSPENDED, pconf);
> genInstanceSummaryEntry(conn, isum.addNewInstances(), TInstanceStatus.TERMINATED, pconf);
> getInstanceSummaryActivityFailure(conn, isum, pconf);
> - }
> + }*/
>
> if (custom.includeDocumentLists()) {
> TProcessInfo.Documents docinfo = info.addNewDocuments();
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.