On 11/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Victor Ng wrote:
>
> > If user A and user B are editting the same records and you enter a
> > race where they do this:
> >
> > A) retrieve record
>
> Here you mean SELECT FOR UPDATE, right?

No, I mean SELECT.

The use case is two users are viewing the same record, and they both
go to update the same record.

That means the view code would SELECT the records into the view.  I'm
assuming you're doing SELECT FOR UPDATE and UPDATE on the POST
request/response cycle.  If you're actually doing a SELECT FOR UPDATE
on the initial request, I can't see how you're holding on to your
connection between request response cycles.

vic

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to