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:
Marco Antonio Nina
2012-10-02 17:04:22 -04:00
parent 6577c45a9c
commit 9ab0b87061
2 changed files with 13 additions and 2 deletions

View File

@@ -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 ( );