it automatically issue a flush() for these purposes. Documentation note
On 3/5/2013 10:45 AM, Michael Bayer wrote:
> populate_existing() blows away any pending changes on the object so
> turning it on by default would be a surprise in a lot of cases.
>
> typically if someone is working with FOR UPDATE they're already
> programming a very specific section in a very careful manner, it's not
> something that's done casually. I would think that it would be used to
> select a row right at the start of a transaction, that is definitely not
> already in the Session.
>
> in my own experience, any time I've actually tried to work with
> pessimistic locking my application ends up deadlocking at 2 AM, so I
> can't say I have the background to really say how this method should be
> used. At this point, a documentation note is certainly something doable
> (because I would hope very much that anyone using this method has read
> the documentation carefully).
>
>
>
>
> On Mar 5, 2013, at 10:00 AM, Kent <
jkent...@gmail.com