From 3899bbfd255f3dc0cb566a929e11a00e48d90547 Mon Sep 17 00:00:00 2001 From: Marco Antonio Nina Date: Mon, 8 Oct 2012 15:05:01 -0400 Subject: [PATCH] =?UTF-8?q?BUG=209720=20Proceso=20de=20actualizaci=C3=B3e?= =?UTF-8?q?=20ProcessMaker=20es=20lento=20IMPROVEMENT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ProcessMaker update process is slow for query. - Was optimized queries and was modified the rebuild "Table content". --- workflow/engine/bin/tasks/cliWorkspaces.php | 2 +- workflow/engine/classes/class.wsTools.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/workflow/engine/bin/tasks/cliWorkspaces.php b/workflow/engine/bin/tasks/cliWorkspaces.php index 360ced258..a73f674e0 100755 --- a/workflow/engine/bin/tasks/cliWorkspaces.php +++ b/workflow/engine/bin/tasks/cliWorkspaces.php @@ -174,7 +174,7 @@ function run_workspace_upgrade($args, $opts) { $first = true; foreach ($workspaces as $workspace) { try { - $workspace->upgrade($first); + $workspace->upgrade($first, false, $workspace->name); $first = false; } catch (Exception $e) { echo "Errors upgrading workspace " . CLI::info($workspace->name) . ": " . CLI::error($e->getMessage()) . "\n"; diff --git a/workflow/engine/classes/class.wsTools.php b/workflow/engine/classes/class.wsTools.php index 9a4c92d90..14d5d1c77 100755 --- a/workflow/engine/classes/class.wsTools.php +++ b/workflow/engine/classes/class.wsTools.php @@ -54,7 +54,7 @@ class workspaceTools { * * @param bool $first true if this is the first workspace to be upgrade */ - public function upgrade($first=false, $buildCacheView=false) + public function upgrade($first=false, $buildCacheView=false, $workSpace=SYS_SYS) { $start = microtime(true); CLI::logging("> Updating database...\n"); @@ -72,7 +72,7 @@ class workspaceTools { $start = microtime(true); CLI::logging("> Updating Content...\n"); - $this->upgradeContent(); + $this->upgradeContent($workSpace); $stop = microtime(true); $final = $stop - $start; CLI::logging("<*> Process Updating Content carried out in $final seconds.\n");