Hi all,

Does anyone know roughly what the biggest Collection size is that an
object can contain when doing an update? Around 1000 seems OK, but
20,000 throws an OutOfMemoryError. Since OJB does 'delete + insert' for
update, for an m:n relation with 20,000 objects you get 20,000 deletes,
then 20,000+ array copies then 20,000 inserts if you don't touch
anything in the Collection - thus changing eg only a String in the top
object results in this behaviour when all you really wanted was to
change a single column value in one table.

This is not an artifical situation - we have this in our project. We
cannot update a String in our top level object simply because it is
linked to 20,000 others, even though we are not touching those other
objects (or the relation between the two).

Cheers,

Chris


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

Reply via email to