Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0040163
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2019-02-06 16:102019-03-28 14:56
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in Version3.0PR19Q2
StatusclosedFix in branchFixed in SCM revision25c609294e5e
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0040163: Do not use xercesImpl XML parser factory in update.database.java task

DescriptionAs stated in issue 0040152, the XML parser of the xercesImpl library is slower than the default Java XML parser when reading the database model.

For this reason, we should explicitly define the parser to be used by the update.database.task in the same way we are doing for the export.database and export.sample.data tasks.

Steps To ReproduceIn description
TagsPerformance
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0040152 closedcaristu export.database is slower after defining it as a forked task 

-  Notes
(0109649)
caristu (developer)
2019-02-06 16:17
edited on: 2019-02-06 16:22

Measured the difference in the duration of the update.database.java task using both parsers, executing the task 10 times for each one, these are the average times:

- org.apache.xerces.jaxp.SAXParserImpl (xerces): 28,1199 seconds
- com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl: 26,6953 seconds

(0109650)
hgbot (developer)
2019-02-06 16:35

Repository: erp/devel/pi
Changeset: 25c609294e5e30e4e1c46381c72cdaef42063ab5
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Feb 06 16:27:17 2019 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/25c609294e5e30e4e1c46381c72cdaef42063ab5 [^]

fixes bug 40163: Don't use xercesImpl XML parser factory in update.database

  Specify the com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl as the SAXParserFactory implementation to be used in update.database.java. It provides an XML parser which is faster than the implementation provided by the xercesImpl library.

---
M src-db/database/build.xml
---
(0109668)
alostale (manager)
2019-02-11 14:13

reviewed + tested
(0110804)
hudsonbot (developer)
2019-03-28 14:56

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b2fbc1588df4 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2019-02-06 16:10 caristu New Issue
2019-02-06 16:10 caristu Assigned To => caristu
2019-02-06 16:10 caristu Modules => Core
2019-02-06 16:10 caristu Triggers an Emergency Pack => No
2019-02-06 16:10 caristu Issue generated from 0040152
2019-02-06 16:10 caristu Relationship added related to 0040152
2019-02-06 16:15 caristu Summary Do not use xercesImpl XML parser in update.database.java task => Do not use xercesImpl XML parser factory in update.database.java task
2019-02-06 16:17 caristu Note Added: 0109649
2019-02-06 16:22 caristu Note Edited: 0109649 View Revisions
2019-02-06 16:23 caristu Description Updated View Revisions
2019-02-06 16:30 caristu Tag Attached: Performance
2019-02-06 16:30 caristu Review Assigned To => alostale
2019-02-06 16:35 hgbot Checkin
2019-02-06 16:35 hgbot Note Added: 0109650
2019-02-06 16:35 hgbot Status new => resolved
2019-02-06 16:35 hgbot Resolution open => fixed
2019-02-06 16:35 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/25c609294e5e30e4e1c46381c72cdaef42063ab5 [^]
2019-02-11 14:13 alostale Note Added: 0109668
2019-02-11 14:13 alostale Status resolved => closed
2019-02-11 14:13 alostale Fixed in Version => 3.0PR19Q2
2019-03-28 14:56 hudsonbot Checkin
2019-03-28 14:56 hudsonbot Note Added: 0110804


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker