ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hycel Taylor <hyc...@gmail.com>
Subject Re: Doing Batch Processing with IBatis from DAO Manager
Date Sat, 13 Aug 2005 14:36:57 GMT
Interesting.  I'm not sure what, batchControlDao, is doing here. 
Currently, what I've just learned from others on this forum and what
I'm currently doing is the following:

daoManager.startTransaction();

schoolDao.startBatch();
majorDao.startBatch();
courseDao.startBatch();
...

// do work here.

schoolDao.executeBatch();
majorDao.executeBatch();
courseDao.executeBatch();
...

daoManager.commitTransaction();
daoManager.endTransaction();

This seems to be working.  Although, when I am batching this way, an
awful lot of locks are made on the database.  This wasn't happening
when I was doing strait JDBC.  So, I'm not sure if I'm using your DAO
API with batching properly.

What do you suggest?

Mime
View raw message