Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0043271Openbravo ERPY. DBSourceManagerpublic2020-02-19 17:292022-02-01 08:05
shuehner 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0043271: create.database is not using multiple thread for function standardization
dbsourcemanager code is using multiple thread for the heavy function & trigger standardization.
However that seems to be missing for the create.database code which seemingly is still single-threaded for this part:

update.database output:
     [java] 10093 [main] INFO org.apache.ddlutils.platform.PlatformImplBase - Starting function trigger and view standardization in 4 threads
     [java] 15314 [main] INFO org.apache.ddlutils.platform.PlatformImplBase - Standardidized 299 functions, 319 triggers and 47 views in 5222 ms

install.source:
[createdatabase] 10279 [main] INFO org.openbravo.ddlutils.task.CreateDatabase - for the complete database
[createdatabase] 77022 [main] INFO org.apache.ddlutils.platform.PlatformImplBase - Finished preparing SQL

Can also be seen checking live during that part with top that only a single core is utilized.
run install.source and check cpu usage during the part just before 'finished preparing SQL'
Use same logic update.db + export.db already have.
Performance
Issue History
2020-02-19 17:29shuehnerNew Issue
2020-02-19 17:29shuehnerAssigned To => platform
2020-02-19 17:29shuehnerModules => Core
2020-02-19 17:29shuehnerTriggers an Emergency Pack => No
2020-02-21 09:23alostaleSeveritymajor => minor
2020-02-21 09:23alostaleStatusnew => acknowledged
2020-02-21 09:23alostaleTag Attached: Performance
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.