[ZODB-Dev] Re: ZEO and time.sleep

2007-03-29 Thread Jürgen Kartnaller
Jim Fulton wrote: On Mar 28, 2007, at 6:37 PM, Benji York wrote: Jim Fulton wrote: On Mar 28, 2007, at 6:28 PM, Benji York wrote: threading.Connection threading.Condition :) Yeah, that. :) What was the time to return the first request after the fix? I didn't stick around for the

Re: [ZODB-Dev] Re: ZEO and time.sleep

2007-03-29 Thread Stephan Richter
On Thursday 29 March 2007 03:51, Jürgen Kartnaller wrote: I didn't stick around for the post-Linux-kernel-recompile testing, but when we hacked the Python standard library to use sleep(0) all the time (emulating an infinite granularity timer), it went down to about 10 seconds.  A pretty

Re: [ZODB-Dev] Re: ZEO and time.sleep

2007-03-29 Thread Jim Fulton
On Mar 29, 2007, at 3:51 AM, Jürgen Kartnaller wrote: Jim Fulton wrote: On Mar 28, 2007, at 6:37 PM, Benji York wrote: Jim Fulton wrote: On Mar 28, 2007, at 6:28 PM, Benji York wrote: threading.Connection threading.Condition :) Yeah, that. :) What was the time to return the first

[ZODB-Dev] Re: ZEO and time.sleep

2007-03-29 Thread Jürgen Kartnaller
Jim Fulton wrote: On Mar 29, 2007, at 3:51 AM, Jürgen Kartnaller wrote: Jim Fulton wrote: On Mar 28, 2007, at 6:37 PM, Benji York wrote: Jim Fulton wrote: On Mar 28, 2007, at 6:28 PM, Benji York wrote: threading.Connection threading.Condition :) Yeah, that. :) What was the time

[ZODB-Dev] Re: ZEO and time.sleep

2007-03-29 Thread Jürgen Kartnaller
Jim Fulton wrote: On Mar 29, 2007, at 10:11 AM, Jürgen Kartnaller wrote: Jim Fulton wrote: On Mar 29, 2007, at 3:51 AM, Jürgen Kartnaller wrote: Jim Fulton wrote: On Mar 28, 2007, at 6:37 PM, Benji York wrote: Jim Fulton wrote: On Mar 28, 2007, at 6:28 PM, Benji York wrote:

Re: [ZODB-Dev] Re: KeyError / POSKeyError

2007-03-29 Thread Tim Tisdall
Okay... I've managed to create a persistent object called 'p' with the OID of the missing object. I have no idea how to determine the database connection object to pass it to the ZODB.Connection.Connection.add() . -Tim On 3/27/07, Dieter Maurer [EMAIL PROTECTED] wrote: Tim Tisdall wrote at

[ZODB-Dev] ZEO for GUI applications

2007-03-29 Thread Robert Gravina
Hello ZODB developers! I think I asked something like this a very long time ago, but I'd like to ask again, in case anything has changed. Here's my question in a short and long version: short version: Is anyone using ZEO to build mutliuser networked applications outside of Zope? longer

Re: [ZODB-Dev] Re: KeyError / POSKeyError

2007-03-29 Thread Tim Tisdall
It took me all day, but I finally managed to figure out how to do what you suggested. Unfortunately, I still get the very same error: POSKeyError, Error Value: 0x01edf2 . Just to make sure I did it right, 0x01edf2 is the OID I should use in your solution, right? -Tim On 3/29/07, Tim

Re: [ZODB-Dev] Re: KeyError / POSKeyError

2007-03-29 Thread Dieter Maurer
Tim Tisdall wrote at 2007-3-29 12:02 -0400: Okay... I've managed to create a persistent object called 'p' with the OID of the missing object. I have no idea how to determine the database connection object to pass it to the ZODB.Connection.Connection.add() . If you have a persistent object

Re: [ZODB-Dev] ZEO for GUI applications

2007-03-29 Thread Robert Gravina
On Mar 30, 2007, at 5:24 AM, Rodrigo Senra wrote: [ Robert Gravina ]: |short version: | |Is anyone using ZEO to build mutliuser networked applications outside |of Zope? Well, I have developed a trivial in-house desktop-based employee activity control (Argh!) a couple of years ago. It

Re: [ZODB-Dev] Re: [Zope3-dev] Re: Community opinion about search+filter

2007-03-29 Thread Dieter Maurer
Lennart Regebro wrote at 2007-3-28 18:25 +0200: On 3/27/07, Dieter Maurer [EMAIL PROTECTED] wrote: However, this approach is only efficient when the sort index size is small compared to the result size. Sure. But with incremental searching, the result size is always one, right? ;-) No. You

Re: [ZODB-Dev] two level cache

2007-03-29 Thread Dieter Maurer
Atmasamarpan Novy wrote at 2007-3-28 11:02 +0200: ... Problem: Current ZODB design creates a separate cache for each ZODB connection (ie. a thread in zope). It means that the same object could be replicated in each connection cache. We cannot do much about it since we do not know in advance

Re: [ZODB-Dev] Re: KeyError / POSKeyError

2007-03-29 Thread Dieter Maurer
Tim Tisdall wrote at 2007-3-29 16:03 -0400: It took me all day, but I finally managed to figure out how to do what you suggested. Unfortunately, I still get the very same error: POSKeyError, Error Value: 0x01edf2 . Just to make sure I did it right, 0x01edf2 is the OID I should use in your

[ZODB-Dev] Missing loader for multidatabase refs?

2007-03-29 Thread Sidnei da Silva
While doing a 'pack' on a Zope instance that is using multiple databases, a KeyError 'n' happened. Upon investigation, we found out that the 'oid_loaders' dictionary used by 'referencesf' (in ZODB.serialize), which is in turn used by pack (presumably to find the oids referenced by an object),

[ZODB-Dev] Re: two level cache

2007-03-29 Thread Atmasamarpan Novy
Dieter Maurer wrote: Jim and Tim convinced me that it would not work (at least not without lots of code insprection for C extensions handling persistent objects (such as BTrees): The problem: while an object may be read only on the application level, it is not read only below this level: