Re: [ZODB-Dev] [ZEO] Storage error with big transactions.

2007-02-13 Thread Dieter Maurer
Andreas Jung wrote at 2007-2-12 18:25 +0100: > ... >This script fails badly during during the first commit() call. Is this a bug >or feature? I am using Zope 2.10.2 on MacOSX Intel. Looks like a bug. Apparently, an invalidation message arrives at the ZEO client cache for an object that is not in

Re: [ZODB-Dev] Threads, ZODB, and how to install ZODB without distutils

2007-02-13 Thread Dieter Maurer
Manuel Vazquez Acosta wrote at 2007-2-11 19:29 -0500: > ... >I have read that each thread should have its own connection to the DB. >However, in my case, each thread should be aware of what is actually in >the DB at all times. So I wonder if I can shared the connection between >those threads as

Re: [ZODB-Dev] [ZEO] Storage error with big transactions.

2007-02-13 Thread Tim Peters
[Andreas Jung] I have the following script to emulate a long running writing ZEO client by writing 100MB to a page template: import transaction pt = app.foo while 1: data = '*'*1 T = transaction.begin() pt.pt_edit(data, 'text/html') T.commit() print 'done' This scri

[ZODB-Dev] Making use of the zodb transaction framework outside of zodb?

2007-02-13 Thread Petra Chong
Hello all, In the docs I have read that it is possible for non-zodb apps to plug into the transaction framework. However, I am unable to find any specifics as to how to do this. What I'd like to do is this: 1. Have my app import transaction 2. When transaction.commit() is called from my app, ha

[ZODB-Dev] Re: [ZEO] Storage error with big transactions.

2007-02-13 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Fulton wrote: > On Feb 12, 2007, at 12:25 PM, Andreas Jung wrote: > >> I have the following script to emulate a long running writing ZEO >> client >> by writing 100MB to a page template: >> >> import transaction >> >> pt = app.foo >> while 1: >>

Re: [ZODB-Dev] [ZEO] Storage error with big transactions.

2007-02-13 Thread Andreas Jung
--On 13. Februar 2007 06:03:03 -0500 Jim Fulton <[EMAIL PROTECTED]> wrote: Based on the traceback you gave, this looks like a bug. I've noticed, however, that large database records can lead to memory errors at sizes much smaller than I would expect. If the problem is ultimately traced to

Re: [ZODB-Dev] [ZEO] Storage error with big transactions.

2007-02-13 Thread Jim Fulton
On Feb 12, 2007, at 12:25 PM, Andreas Jung wrote: I have the following script to emulate a long running writing ZEO client by writing 100MB to a page template: import transaction pt = app.foo while 1: data = '*'*1 T = transaction.begin() pt.pt_edit(data, 'text/html') T.c

Re: [ZODB-Dev] Threads, ZODB, and how to install ZODB without distutils

2007-02-13 Thread Marius Gedminas
On Sun, Feb 11, 2007 at 07:29:58PM -0500, Manuel Vazquez Acosta wrote: > The other question is about compiling ZODB without using the > out-of-the-box distutils installation procedure. I'm also playing with > Zope and Plone, so I have several instances on the same machine. I think > installing w

[ZODB-Dev] [ZEO] Storage error with big transactions.

2007-02-13 Thread Andreas Jung
I have the following script to emulate a long running writing ZEO client by writing 100MB to a page template: import transaction pt = app.foo while 1: data = '*'*1 T = transaction.begin() pt.pt_edit(data, 'text/html') T.commit() print 'done' This script fails badly during

Re: [ZODB-Dev] Threads, ZODB, and how to install ZODB without distutils

2007-02-13 Thread Gary Poster
On Feb 12, 2007, at 10:01 AM, Manuel Vazquez Acosta wrote: Hi Gary, Although the shared buffer indeed has a queue-like interface there's a catch for my needs. I need that pull method to retrieve the item in the head and to move the head forward, and not to remove the item from the buffer

Re: [ZODB-Dev] Threads, ZODB, and how to install ZODB without distutils

2007-02-13 Thread Manuel Vazquez Acosta
Hi Gary, Although the shared buffer indeed has a queue-like interface there's a catch for my needs. I need that pull method to retrieve the item in the head and to move the head forward, and not to remove the item from the buffer. Just like zc.queue I need a single copy of a item in the queue,

Re: [ZODB-Dev] Threads, ZODB, and how to install ZODB without distutils

2007-02-13 Thread Gary Poster
On Feb 11, 2007, at 7:29 PM, Manuel Vazquez Acosta wrote: My scenario is akin a consumer-producer with shared buffer. Consumers pull items from the buffer whilst producers put items in the buffer. The buffer is an OOBTree along with an IOBTree which gives "serial" numbers to the keys of th