Re: [ZODB-Dev] Re: ZODB Benchmarks

2008-02-05 Thread Dieter Maurer
Roché Compaan wrote at 2008-2-4 20:54 +0200:
> ...
>I don't follow? There are 2 insertions and there are 1338046 calls
>to persistent_id. Doesn't this suggest that there are 66 objects
>persisted per insertion? This seems way to high?

Jim told you that "persistent_id" is called for each object and not
only persistent objects.

An OOBucket contains up to 30 key value pairs, each of which
are subjected to a call to "persistent_id". In each of your pairs,
there is an additional persistent object. This means, you
should expect 3 calls to "persistent_id" for each pair in an "OOBucket".



-- 
Dieter
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] RelStorage now in Subversion

2008-02-05 Thread Dieter Maurer
Hello Shane,

Shane Hathaway wrote at 2008-2-3 23:57 -0700:
> ...
>Looking into this more, I believe I found the semantic we need in the 
>PostgreSQL reference for the LOCK statement [1].  It says this about 
>obtaining a share lock in read committed mode: "once you obtain the 
>lock, there are no uncommitted writes outstanding".  My understanding of 
>that statement and the rest of the paragraph suggests the following 
>guarantee: in read committed mode, once a reader obtains a share lock on 
>a table, it sees the effect of all previous transactions on that table.

I have been too pessimitic with respect to Postgres.

While Postgres uses the freedom of the ASNI isolation level definitions
(they say that some things must not happen but do not prescribe that
other things must necessarily happen), Postgres has a precise
specification for the "read committed" mode -- it says: in read
committed mode, each query sees the state as it has been when
the query started. This implies that it sees all transactions
that have been committed before the query started. This is sufficient
for your conflict resolution to be correct -- as you hold the commit
lock during conflict resolution such that no new transaction can happen
during the query in question.



-- 
Dieter
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] zodb tools for zodb as of zope 2.9.6?

2008-02-05 Thread Jim Fulton


I suspect that any recent ZODB release would do.  I assume that Zope  
2.9 shipped with ZODB 3.6.


Starting with ZODB 3.7, if you install ZODB with setuptools (e.g.  
easy_install or buildout) then these scripts will be installed in the  
destination bin directory.


Jim

On Feb 4, 2008, at 7:57 PM, Chris Withers wrote:


Hi All,

Where can I find the zodb tools (fsrefs.py, fstest.py, etc) as  
appropriate for the zodb that ships with Zope 2.9.6?


iirc, 2.9.6 was one of the releases that didn't ship with ZODBTools  
due to a bug, so I'm looking for places to hunt!


cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
  - http://www.simplistix.co.uk
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


--
Jim Fulton
Zope Corporation


___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] zodb tools for zodb as of zope 2.9.6?

2008-02-05 Thread Jens Vagelpohl


On Feb 5, 2008, at 01:57 , Chris Withers wrote:


Hi All,

Where can I find the zodb tools (fsrefs.py, fstest.py, etc) as  
appropriate for the zodb that ships with Zope 2.9.6?


iirc, 2.9.6 was one of the releases that didn't ship with ZODBTools  
due to a bug, so I'm looking for places to hunt!


A tarball install (not from svn) that I have here has all those tools.  
They are in /utilities/ZODBTools/.


The issue that existed once was that the installer did not copy those  
scripts to a different place, I think it was /bin/. The scripts  
were shipped correctly with the source.


Would have taken you less time to use "find" than to write that email...

jens



___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev