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:
@@ -382,6 +382,17 @@ class Content extends BaseContent {
|
||||
}
|
||||
}
|
||||
|
||||
function fastInsertContent ($ConCategory, $ConParent, $ConId, $ConLang, $ConValue) {
|
||||
$con = new Content ( );
|
||||
$con->setConCategory ( $ConCategory );
|
||||
$con->setConParent ( $ConParent );
|
||||
$con->setConId ( $ConId );
|
||||
$con->setConLang ( $ConLang );
|
||||
$con->setConValue ( $ConValue );
|
||||
$res = $con->save ();
|
||||
return $res;
|
||||
}
|
||||
|
||||
function removeLanguageContent($lanId) {
|
||||
try {
|
||||
$c = new Criteria ( );
|
||||
|
||||
@@ -72,9 +72,9 @@ try {
|
||||
$importResults = $language->import($languageFile);
|
||||
|
||||
G::LoadClass("wsTools");
|
||||
$renegerateContent = new workspaceTools();
|
||||
$renegerateContent = new workspaceTools(SYS_SYS);
|
||||
$renegerateContent->upgradeContent();
|
||||
|
||||
|
||||
$result->msg = G::LoadTranslation('IMPORT_LANGUAGE_SUCCESS') . "\n";
|
||||
$result->msg .= "PO File num. records: " . $importResults->recordsCount . "\n";
|
||||
$result->msg .= "Success Records: " . $importResults->recordsCountSuccess . "\n";
|
||||
|
||||
Reference in New Issue
Block a user