[Zope] Need help understanding when threds get in my way

Dario Lopez-Kästen dario@ita.chalmers.se
Mon, 30 Sep 2002 14:54:46 +0200


Hello!

I need help in undertanding when I get hit by the threading machinery in
Zope. I asked a question on irc.openprojects.org and I suddenly realised
that I am not sure of what I am trying to do.

The problem: for various reasons I need to cache several pieces of data,
like the results form ZSQL methods, other objects, etc.

Now, I understand that trying to store objects that, among other things are
threadbound, is not a good idea, since they loose their context (?) when
recalled later.

The questions:

a) in what other circumstances will caching objects be a bad idea?
b) Is there a way to test, for a given object, if it is threadbound,
   either directly or indirectly? This I need mostly for logging
   purposes, since it will let me identify the places where our app
   is malfunctioning.
c) if I discover or suspect that an object might be problematic,  is
   there a way to only access that objects "data" and nothing else?

Thanks for any insight (including the ona that states that I make no sense
at all ;).

Sincerely,

/dario

- --------------------------------------------------------------------
Dario Lopez-Kästen, dario@ita.chalmers.se        IT Systems & Services
System Developer/System Administrator     Chalmers University of Tech.