[prev in list] [next in list] [prev in thread] [next in thread]
List: zodb-dev
Subject: [ZODB-Dev] Reading ZEO without writing
From: Eric Jacobs <eaj () ricochet ! net>
Date: 2001-03-26 14:37:24
[Download RAW message or body]
When playing around with chatter.py, I noticed that when the instructions
to add a new message were commented out, the script didn't work.
I found I had to add these two lines to the bottom of the loop:
asyncore.poll()
conn._cache.invalidate(conn._invalidated)
The first I expected, as it would be required in any event-driven I/O
program. The second one puzzled me a bit more. Without that line, the
cache invalidations would be received but wouldn't actually invalidate
anything until a transaction goes through.
Surely there should be a way to just monitor the ZODB?
I'm guessing that this is a consequence of ZODB's implicitly-arranged
transaction starts. Is there a way to say "I'm not in a transaction
right now, and I want to see the database as it currently is"? Any
suggestions would be appreciated.
--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic