BUG 9720 Proceso de actualizacióe ProcessMaker es lento IMPROVEMENT
- ProcessMaker update process is slow for query. - Was optimized queries and was modified the rebuild "Table content".
This commit is contained in:
@@ -174,7 +174,7 @@ function run_workspace_upgrade($args, $opts) {
|
|||||||
$first = true;
|
$first = true;
|
||||||
foreach ($workspaces as $workspace) {
|
foreach ($workspaces as $workspace) {
|
||||||
try {
|
try {
|
||||||
$workspace->upgrade($first);
|
$workspace->upgrade($first, false, $workspace->name);
|
||||||
$first = false;
|
$first = false;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo "Errors upgrading workspace " . CLI::info($workspace->name) . ": " . CLI::error($e->getMessage()) . "\n";
|
echo "Errors upgrading workspace " . CLI::info($workspace->name) . ": " . CLI::error($e->getMessage()) . "\n";
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class workspaceTools {
|
|||||||
*
|
*
|
||||||
* @param bool $first true if this is the first workspace to be upgrade
|
* @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);
|
$start = microtime(true);
|
||||||
CLI::logging("> Updating database...\n");
|
CLI::logging("> Updating database...\n");
|
||||||
@@ -72,7 +72,7 @@ class workspaceTools {
|
|||||||
|
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
CLI::logging("> Updating Content...\n");
|
CLI::logging("> Updating Content...\n");
|
||||||
$this->upgradeContent();
|
$this->upgradeContent($workSpace);
|
||||||
$stop = microtime(true);
|
$stop = microtime(true);
|
||||||
$final = $stop - $start;
|
$final = $stop - $start;
|
||||||
CLI::logging("<*> Process Updating Content carried out in $final seconds.\n");
|
CLI::logging("<*> Process Updating Content carried out in $final seconds.\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user