Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0000284Openbravo ERPY. DBSourceManagerpublic2008-05-12 19:382009-03-18 11:01
jpabloae 
marvintm 
lowminoralways
closedfixed 
5
 
 
Core
No
0000284: Sampledata preimport is done when there are no XML files
DBSourceManager does the preimport and the postimport operations having no XML files in sampledata, this slows down the operation.

Example output:

import.database.sampledata:

database.preimport.ORACLE:
[importdata] Reading tables...
[importdata] Reading views...
[importdata] Reading sequences...
[importdata] Reading triggers...
[importdata] Reading functions...
[importdata] Sorting foreign keys and checks...
[importdata] Model loaded from database.

database.postimport.ORACLE:
1. Delete src-db/database/sampledata/*.xml
2. Run "ant create.database"
dbsm_migrate
Issue History
2008-05-12 19:38jpabloaeNew Issue
2008-05-12 19:39jpabloaeAssigned To => marvintm
2008-05-12 19:39jpabloaeSteps to Reproduce Updated
2008-05-13 10:45marvintmNote Added: 0000172
2008-05-13 10:45marvintmStatusnew => @40@
2008-05-13 10:45marvintmStatus@40@ => scheduled
2008-05-13 10:47marvintmStatusscheduled => resolved
2008-05-13 10:47marvintmResolutionopen => fixed
2008-05-13 10:47marvintmNote Added: 0000173
2008-11-26 14:11psarobeStatusresolved => closed
2008-12-18 12:38jpabloaeSticky IssueNo => Yes
2008-12-18 12:39jpabloaeSticky IssueYes => No
2008-12-18 12:39jpabloaeTag Attached: dbsm_migrate
2008-12-18 12:41jpabloaeProject@4@ => Openbravo ERP
2008-12-18 12:41jpabloaeCategory => Y. DBSourceManager
2009-03-18 11:01anonymoussf_bug_id0 => 2691261

Notes
(0000172)
marvintm   
2008-05-13 10:45   
In fact, preimport and postimport operations are no longer executed before and after each data import tasks. However, the model loading still happens if the folder is empty, and that is not necessary, and takes most of the time.
(0000173)
marvintm   
2008-05-13 10:47   
Now neither the preimport and postimport operations nor the model loading will be executed in the import data process when the folder is empty.