On Tue, 19 Jun 2001, Bill Burke wrote:
> The optimization would still work within the same transaction.
But it would be somewhat less useful. I mean, how often do you do
a findByPrimaryKey on an object that you've already accessed within the
same transaction?
As well, I'm still a bit concerned with using this in commit
options B and C. Say, for example, you read from a bean in the beginning
of your transaction -- I don't think that would necesessarily lock the row
in the DB. So then another process deletes the row (and commits its
action). Now later in the transaction, you do a findByPrimaryKey on the
bean. Any work you try to do may subsequently fail.
I think this optimization within a transaction would intoduce a
lot of dependence on the DB locking and isolation strategies, for pretty
minimal gain.
Aaron
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development