[Zope-dev] Re: [Zope] Question about ZODB and threads

Stuart 'Zen' Bishop zen@cs.rmit.edu.au
Fri, 15 Oct 1999 08:57:11 +1000 (EST)


On Thu, 14 Oct 1999, Pavlos Christoforou wrote:

> I am familiar with the model Martijn, however the whole point of the story
> is *not* to register the change with the ZODB. It would be nice if I could
> have a temporary in memory storage, accessible from all the threads and
> this used to be a simple matter in the pre-concurrent era. Anyway you

Attributes that start with _v_ are volatile, and not stored in the
database. If you have a class level _v_ attribute, and modify it, will
the object be dirty and committed to the DB?

A package level variable will also probably do what you want - if you
want instance specific data you would need to use some funky dictionary
arrangement protected by semaphores of some kind.

> I also noticed a module for  in memory storage in the ZODB directory, but
> I am not sure how to combine the regular FileStorage with the in memory
> one. 

I don't think Zope lets you use multiple stores (yet).

 ___
   //     Zen (alias Stuart Bishop)     Work: zen@cs.rmit.edu.au
  // E N  Senior Systems Alchemist      Play: zen@shangri-la.dropbear.id.au
 //__     Computer Science, RMIT 	 WWW: http://www.cs.rmit.edu.au/~zen