Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0024533 | Openbravo ERP | A. Platform | public | 2013-08-16 14:09 | 2013-08-27 08:53 |
|
Reporter | shuehner | |
Assigned To | shuehner | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0MP27 | Fixed in Version | 3.0MP27 | |
Merge Request Status | |
Review Assigned To | AugustoMauch |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0024533: Improve performance of translation import |
Description | The translation import code does spend a huge amount of time in the ad_process_trl_trg.
I.e. importing the spanish core translation one ec2 inside the int-modules job this take around 50s just import the ad_process_trl.xml file.
Secondary that output of the apply.modules ant task doing the trl import has very long lines per file imported which make it very hard to see the important info The path part of every imported file is redundant and should be skipped.
Old example:
[java] 220956 [main] INFO org.openbravo.erpCommon.ad_forms.TranslationManager - importTrl - Updated=307 - from file /srv/hudson/workspace/try-modules-pgsql/modules/org.openbravo.localization.spain.referencedata.translation.esES/referencedata/translation/es_ES//AD_PROCESS_TRL_es_ES.xml
Proposal:
[java] 114144 [main] INFO org.openbravo.erpCommon.ad_forms.TranslationManager - importTrl - Updated=307 - from file AD_PROCESS_TRL_es_ES.xml
Instead the path will be printed once per module imported. |
Steps To Reproduce | Install spanish core translation module and observe time taking to import the ad_process_trl.xml file.
|
Proposed Solution | |
Additional Information | |
Tags | Performance |
Relationships | related to | defect | 0024680 | | closed | shuehner | Improve performance of translation import - part2 |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2013-08-16 14:09 | shuehner | New Issue | |
2013-08-16 14:09 | shuehner | Assigned To | => shuehner |
2013-08-16 14:09 | shuehner | Modules | => Core |
2013-08-16 14:09 | shuehner | OBNetwork customer | => No |
2013-08-16 14:09 | shuehner | Triggers an Emergency Pack | => No |
2013-08-16 16:23 | shuehner | Tag Attached: Performance | |
2013-08-19 18:11 | hgbot | Checkin | |
2013-08-19 18:11 | hgbot | Note Added: 0060661 | |
2013-08-19 18:11 | hgbot | Status | new => resolved |
2013-08-19 18:11 | hgbot | Resolution | open => fixed |
2013-08-19 18:11 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/94fb69776ef0251b50fcde14390978499834a0f0 [^] |
2013-08-19 18:11 | hgbot | Checkin | |
2013-08-19 18:11 | hgbot | Note Added: 0060662 | |
2013-08-19 18:11 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/94fb69776ef0251b50fcde14390978499834a0f0 [^] => http://code.openbravo.com/erp/devel/pi/rev/94a0603a19cca0bc4c89daea75d16f1eff1559d8 [^] |
2013-08-19 18:14 | shuehner | Review Assigned To | => AugustoMauch |
2013-08-20 01:26 | hudsonbot | Checkin | |
2013-08-20 01:26 | hudsonbot | Note Added: 0060666 | |
2013-08-20 01:26 | hudsonbot | Checkin | |
2013-08-20 01:26 | hudsonbot | Note Added: 0060667 | |
2013-08-27 08:53 | AugustoMauch | Note Added: 0060777 | |
2013-08-27 08:53 | AugustoMauch | Status | resolved => closed |
2013-08-27 08:53 | AugustoMauch | Fixed in Version | => 3.0MP27 |
2013-09-03 14:54 | shuehner | Relationship added | related to 0024680 |
Notes |
|
(0060661)
|
hgbot
|
2013-08-19 18:11
|
|
Repository: erp/devel/pi
Changeset: 94fb69776ef0251b50fcde14390978499834a0f0
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Fri Aug 16 14:12:21 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/94fb69776ef0251b50fcde14390978499834a0f0 [^]
Fixed 24533. Improve performance of import translation process
- Add ad_process_id index to ad_column
- Rewrite ad_process_trl_trg using exists instead of in clause
and pull up one restriction from subselect to main clause
- Shorting logging output per xml file imported by not repeating
path of every file imported but just printing it once per module.
- Make order in which files are imported stable by adding a order
by tablename clause to sql retrieving list of _trl tables.
---
M src-db/database/model/tables/AD_COLUMN.xml
M src-db/database/model/triggers/AD_PROCESS_TRL_TRG.xml
M src/org/openbravo/erpCommon/ad_forms/TranslationManager.java
M src/org/openbravo/erpCommon/ad_forms/Translation_data.xsql
M src/org/openbravo/erpCommon/modules/ApplyModule.java
---
|
|
|
(0060662)
|
hgbot
|
2013-08-19 18:11
|
|
|
|
|
|
|
|
|
|
|
Code reviewed and verified in pi@327ce5aac264 |
|