You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Rafal Rusin (JIRA)" <ji...@apache.org> on 2010/07/12 15:26:49 UTC
[jira] Resolved: (ODE-795) Speed up listAllProcesses
[ https://issues.apache.org/jira/browse/ODE-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rafal Rusin resolved ODE-795.
-----------------------------
Resolution: Fixed
> 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
> Fix For: 1.3.5
>
>
> 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.