[Zope-dev] Zope object oid's

Jason Spisak 444@hiretechs.com
Fri, 12 May 2000 00:36:36 GMT


Jonothan Farr writes:

> > I'm curious, does a transaction in the FileStorage contain all the oid's to
> > be effected by that transaction?  Is it split-up (appended) by transaction
> > or oid? Transaction, I believe.
> 
> FileStorage contains transaction records, which themselves contain data records.
> The data records contain the oid's.
> 
> The basic procedure for a write goes something like this:
> 
> tpc_begin() :
>     start the transaction by setting up the tempfile where data records are
> written before the final commit
> 
> store() :
>     called for each object to be stored, writes the data record for the object
> to the temp file
> 
> tpc_finish() :
>     commits the transaction by writing the transaction record header, the data
> records from the temp file, then the transaction record footer
> 
> Then load() just retrieves the latest data record for the object, it doesn't
> need to know about transactions.
> 
> Hope this helps,

Very much so.  I was reading the source, but there is a lot of stuff in
there.

Thanks again,

Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.