On Thu, Oct 24, 2013 at 11:14 PM, George Christman
<gchrist...@cardaddy.com>wrote:

> I'm wondering how to do a batch transaction with Tapestry-Hibernate. Should
> I still be using @Inject Session session and @CommitAfter? or Should I be
> using Transaction tx?


Without testing, I'd guess both should work.


> I'm flushing and clearing my session every 200
> iterations, but it appears to progressively get slower and slower until I
> restart the job. Any thoughts on this?
>

I'd guess this is normal. You have a long transaction with lots of changes
to the database, so it needs to store all this stuff isolated from the
committed data and other connections before actually committing.

>
> --
> George Christman
> www.CarDaddy.com
> P.O. Box 735
> Johnstown, New York
>



-- 
Thiago

Reply via email to