details: https://code.openbravo.com/erp/devel/pi/rev/49ac427a0d66 changeset: 32207:49ac427a0d66 user: Augusto Mauch <augusto.mauch <at> openbravo.com> date: Thu May 25 16:25:36 2017 +0200 summary: Fixes issue 35832: Multithread support in import/export sample data
Now the processes that import/export sample data support multithread. To do so, the max.threads parameter must be passed to the ant task. If the parameter is not passed it will use half the available CPUs. For instance, to use 4 threads to import the sample data in an install source, this command should be used: ant install.source -Dmax.threads=4 diffstat: src-db/database/build.xml | 4 ++-- src-db/database/lib/dbsourcemanager.jar | 0 2 files changed, 2 insertions(+), 2 deletions(-) diffs (22 lines): diff -r b622f00e5e44 -r 49ac427a0d66 src-db/database/build.xml --- a/src-db/database/build.xml Thu May 25 14:13:21 2017 +0200 +++ b/src-db/database/build.xml Thu May 25 16:25:36 2017 +0200 @@ -167,14 +167,14 @@ <taskdef name="exportsampledata" classname="org.openbravo.ddlutils.task.ExportSampledata"> <classpath refid="runtime-classpath" /> </taskdef> - <exportsampledata driver="${bbdd.driver}" url="${bbdd.owner.url}" user="${bbdd.user}" password="${bbdd.password}" verbosity="${bbdd.verbosity}" basedir="${basedir}/../../" client="${client}" module="${module}" rdbms="${bbdd.rdbms}" exportFormat="${exportFormat}"/> + <exportsampledata driver="${bbdd.driver}" url="${bbdd.owner.url}" user="${bbdd.user}" password="${bbdd.password}" verbosity="${bbdd.verbosity}" basedir="${basedir}/../../" client="${client}" module="${module}" rdbms="${bbdd.rdbms}" exportFormat="${exportFormat}" threads="${max.threads}"/> </target> <target name="import.sample.data"> <taskdef name="importsampledata" classname="org.openbravo.ddlutils.task.ImportSampledata"> <classpath refid="runtime-classpath" /> </taskdef> - <importsampledata driver="${bbdd.driver}" url="${bbdd.owner.url}" user="${bbdd.user}" password="${bbdd.password}" verbosity="${bbdd.verbosity}" basedir="${basedir}/../../" executeModuleScripts="${execute.modulescripts}" rdbms="${bbdd.rdbms}"/> + <importsampledata driver="${bbdd.driver}" url="${bbdd.owner.url}" user="${bbdd.user}" password="${bbdd.password}" verbosity="${bbdd.verbosity}" basedir="${basedir}/../../" executeModuleScripts="${execute.modulescripts}" rdbms="${bbdd.rdbms}" threads="${max.threads}"/> <antcall target="database.postupdate.${bbdd.rdbms}" /> </target> diff -r b622f00e5e44 -r 49ac427a0d66 src-db/database/lib/dbsourcemanager.jar Binary file src-db/database/lib/dbsourcemanager.jar has changed ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits