BUG 9720 Proceso de actualizacióe ProcessMaker es lento SOLVED

- ProcessMaker update process is slow for query.
- Was optimized queries and was modified the  rebuild "Table content".
This commit is contained in:
Marco Antonio Nina
2012-09-26 11:24:49 -04:00
parent a8cc4a00f9
commit 9cfa140807
2 changed files with 4 additions and 3 deletions

View File

@@ -50,7 +50,8 @@
$e_all = defined('E_DEPRECATED') ? E_ALL & ~E_DEPRECATED : E_ALL; $e_all = defined('E_DEPRECATED') ? E_ALL & ~E_DEPRECATED : E_ALL;
$e_all = defined('E_STRICT') ? E_ALL & ~E_STRICT : $e_all; $e_all = defined('E_STRICT') ? E_ALL & ~E_STRICT : $e_all;
//$e_all = $e_all & ~E_NOTICE; // don't notices $e_all = $e_all & E_WARNING; // show warning
$e_all = $e_all & ~E_NOTICE; // don't notices
// Do not change any of these settings directly, use env.ini instead // Do not change any of these settings directly, use env.ini instead
ini_set('display_errors', $config['debug']); ini_set('display_errors', $config['debug']);

View File

@@ -369,13 +369,13 @@ class Content extends BaseContent {
foreach ($content as $key => $value) { foreach ($content as $key => $value) {
unset($langsAsoc[$value['CON_LANG']]); unset($langsAsoc[$value['CON_LANG']]);
} }
foreach ($langsAsoc as $key) { foreach ($langsAsoc as $key => $value) {
$this->rowsInserted++; $this->rowsInserted++;
$this->fastInsertContent( $this->fastInsertContent(
$default['CON_CATEGORY'], $default['CON_CATEGORY'],
$default['CON_PARENT'], $default['CON_PARENT'],
$default['CON_ID'], $default['CON_ID'],
$lang, $value,
$default['CON_VALUE'] $default['CON_VALUE']
); );
} }