Unit of Work

Posts   
 
    
Mennisujay
User
Posts: 11
Joined: 25-Feb-2005
# Posted on: 16-May-2005 16:01:19   

hi Otis,

I had 10 records and i am deleting them. Is it good to use Unit of Work, which deletes in one go. Or is it good to use transaction object.

I had a feeling that Unit of work consumes more resources and degrades performance. This is just my assumption.

What do you suggest?

Regards Sujay

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 16-May-2005 17:37:04   

Mennisujay wrote:

hi Otis,

I had 10 records and i am deleting them. Is it good to use Unit of Work, which deletes in one go. Or is it good to use transaction object.

Doesn't matter, either way will work.

I had a feeling that Unit of work consumes more resources and degrades performance. This is just my assumption.

A UoW stores information internally, so it consumes a bit memory for that, not a lot, as it's all object references. Internally it uses a transaction to perform the commit.

Frans Bouma | Lead developer LLBLGen Pro