openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <>
Subject Re: Performance: single vs multiple transactions
Date Thu, 16 Aug 2007 13:30:55 GMT
A couple of notes / questions:

1. If you use em.delete(em.getReference(cls, id)), then you can avoid
actually loading the instances into memory, which is nice if you know
that you don't need to look at the data, but just want to delete the

2. Depending on your database, you might get some benefit by setting
savepoints instead of just flushing.


On 8/16/07, Christiaan <> wrote:
> Hi Christian,
> thanks for the reply. I am aware of the impact the combining of actions and
> flushing has on the database server performance. However, the difference
> soon (after a couple of hundred deletes) becomes more than a factor of 20!
> That seems a bit much to me. But anyway, I will research it a little more to
> see if I can find the performance bottleneck.
> Kind regards,
> Christiaan
> --
> View this message in context:
> Sent from the OpenJPA Users mailing list archive at

Patrick Linskey
202 669 5907

View raw message