DBUnit with standard parameters is fine, when you use it for testing only.

But sometimes, I need to repopulate the database which is read from an
auto-generated
xml file. As this file is 2MB big (and it is growing), dbunit:operation took
quite long resulting in
in an overall time of 11:30 minutes on my local machine.

There is a configuration option that can speed up the population process,
by passing the content of the xml file in a single transaction. Now,
jetty:run-war 
needs only 01:20 minutes to start.  Just add the following to the
configuration section
of the dbunit-maven-plugin:

   <transaction>true</transaction>

I could not find the tip in this forum, so I wanted to share it with you.

@Matt: Wouldn't that be a good addition to the "prod" profile?

Cheers,
Martin

-- 
View this message in context: 
http://www.nabble.com/Speed-up-dbunit-operation-%28populating-tables%29-tp20108100s2369p20108100.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to