[Zope] zope operations atomic?
Clark OBrien
COBrien@isis-server.vuse.vanderbilt.edu
Wed, 31 Oct 2001 16:47:01 -0600
Example:
To count the number of files uploaded to my site I set an
index as an attribute to a Folder. These are large files so they
take some time to upload. What happens after two people upload at once
does my index only get rolled back or do the files uploaded also
get rolled back?
This is what I meant anyway - I will read the ZODB3 that Dieter
mentioned
-----Original Message-----
From: Chris McDonough [mailto:chrism@zope.com]
Sent: Wednesday, October 31, 2001 1:44 PM
To: Clark OBrien; k_vertigo@yahoo.com; zope@zope.org
Subject: Re: [Zope] zope operations atomic?
> I don't want to be dense but it sounds like for each thread a deep
> copy of the items it accesses- Folder for example- is made. When
session
> ends or something triggers a commit a check is made for conflicts.
A commit is triggered by the finalization of every HTTP request.
> This sounds a bit scarry because if you have a script changing
resources
> like a Folders
> it is almost certain then that there will be a conflict. At this
point a
> retry still
> find conflicts. I would rather have heard the Folder was a critical
> section or methods
> like manage_changeProperties were atomic. IMHOP it should be so.
Though it sounds like you have a valid concern, I can't seem to pick
it out of that series of words. ;-) What is it that you're worried
about?
- C