Re: [ZODB-Dev] Making ZODB / ZEO faster

2009-12-04 Thread Fred Drake
On Fri, Dec 4, 2009 at 9:41 AM, Erik Dahl  wrote:
>  I'm guessing the indexes
> are a hotspot (haven't tested this out much though I guess b-tree's
> buckets should alleviate this problem some).  (is there a persistent
> queue around?)

Cataloging certainly can be a hot spot.  Check out zc.catalogqueue.


  -Fred

-- 
Fred L. Drake, Jr.
"Chaos is the score upon which reality is written." --Henry Miller
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

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


Re: [ZODB-Dev] Python 3

2008-12-05 Thread Fred Drake
On Fri, Dec 5, 2008 at 11:15 AM, Adam <[EMAIL PROTECTED]> wrote:
> Is there a roadmap for getting ZODB to work on Python 3 or is that
> beyond the realms of possibility?
>
> Possibly, using a Python 2 ZEO server and connecting using a Python 3
> ClientStorage?

I can't speak for Jim, but here's my thoughts, anyway.

The biggest hurdles for packages that have substantial test suites and
development tool support (like ZODB) will be the availability of
tools.

At this point, setuptools and zc.buildout don't support Python 3 yet;
until setuptools is available there's unlikely to be any movement to
supporting Python 3 in the Zope world.

Hopefully, someone will deal with that fairly soon, but I can't bring
myself to hold my breath for it.


  -Fred

-- 
Fred L. Drake, Jr.
"Chaos is the score upon which reality is written." --Henry Miller
___
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] conflict errors in persistent ZEO client cache

2008-09-25 Thread Fred Drake
On Thu, Sep 25, 2008 at 8:31 AM, Jim Fulton <[EMAIL PROTECTED]> wrote:
> Since ZODB 3.8.0, I have fixed *many* ZEO cache bugs.  What you
> describe is one symptom.  I suggest upgrading to 3.8.0b8.

I suspect Jim means 3.8.1b8.


 -Fred

-- 
Fred L. Drake, Jr. 
"Chaos is the score upon which reality is written." --Henry Miller
___
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] what could cause this kind of cache corruption?

2008-08-01 Thread Fred Drake
On Fri, Aug 1, 2008 at 3:28 AM, Chris Withers <[EMAIL PROTECTED]> wrote:
> Are you referring to Christian and Shane's patches here?

No, only to Jim's.


 -Fred

-- 
Fred L. Drake, Jr. 
"Chaos is the score upon which reality is written." --Henry Miller
___
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] what could cause this kind of cache corruption?

2008-07-31 Thread Fred Drake
On Thu, Jul 31, 2008 at 2:15 PM, Andreas Jung <[EMAIL PROTECTED]> wrote:
> They aren't part of the ZODB 3.8  but part of the trunk/3.9 - right?

These are bug fixes, and will be included in ZODB 3.8.1.


 -Fred

-- 
Fred L. Drake, Jr. 
"Chaos is the score upon which reality is written." --Henry Miller
___
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] what could cause this kind of cache corruption?

2008-07-31 Thread Fred Drake
On Thu, Jul 31, 2008 at 11:37 AM, Chris Withers <[EMAIL PROTECTED]> wrote:
> However, I suspect the difference-that-makes-a-difference is the persistent
> cache files. With non-persistent cache files, iirc, the files are stored in
> /tmp as temp files under unique names, so this kind of problem can't happen.

As Jens noted, this is because you're sharing a cache file.  That's
one of those "don't do that" things.

It's often useful to have a separate instance that's used for run
scripts and debugging; configuring that not to use a persistent cache
is easy, and essential if you want to be able to run any number of
them at a time.


 -Fred

-- 
Fred L. Drake, Jr. 
"Chaos is the score upon which reality is written." --Henry Miller
___
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] Rename top-level svn dir to ZODB3?

2007-10-04 Thread Fred Drake
On 10/4/07, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote:
> Since we can't easily rename the ZODB3 egg to ZODB (dependencies would
> break), I suggest we rename the subversion directory to 'ZODB3'. Then at
> least it'll be consistent.

In which case svn:externals can break.  It's a pain, but I think we
need to live with it.

-1


  -Fred

-- 
Fred L. Drake, Jr.
"Chaos is the score upon which reality is written." --Henry Miller
___
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] zc.recipe.zeo

2007-08-03 Thread Fred Drake
On 8/3/07, Jens Vagelpohl <[EMAIL PROTECTED]> wrote:
> Just setting the number of threads to 1 won't improve anything. Their
> strategy is to use many instances with a single thread instead of a
> few instances with the default number of threads. For a single
> instance you'll do more harm than good.

Yes, that's an important point.  If there's only one instance, you'll
need many threads, or you could see problems /very/ quickly.

I'd been assuming David was interested in large-volume and/or high
availability installations, given that he mentioned attending the
high-performance session at EuroPython.


  -Fred

-- 
Fred L. Drake, Jr.
"Chaos is the score upon which reality is written." --Henry Miller
___
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] zc.recipe.zeo

2007-08-02 Thread Fred Drake
On 8/3/07, David Pratt <[EMAIL PROTECTED]> wrote:
> Hi there. zc.recipe.zeo has not yet made it to the cheeseshop. It would
> be great if someone could put it there. If you want me to do it that is
> fine since I have other packages on cheeseshop. The port for zeo on is
> also hardcoded for 8100 but I am wanting to run more than a single ZEO
> server instance per physical server so it looks like it needs a fix.

I've been using zc.zodbrecipes:server, including

  
address 9000
  

in the value for the zeo.conf key (replacing 9000 with your chosen port).

> Question about thread setting in buildout. In zope2's zope.conf you just
> set the no of threads. In zc.zope3recipes, there is no mention of
> setting threads. I ask this since setting threads to 1 improved
> performance according to the recent high performance zope session by
> Lovely systems at europython. Many thanks.

You can include the line "threads 1" as part of the value for
zope.conf in the instance part.


  -Fred

-- 
Fred L. Drake, Jr.
"Chaos is the score upon which reality is written." --Henry Miller
___
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] We need to pay down debt

2006-10-05 Thread Fred Drake

On 10/5/06, Dmitry Vasiliev <[EMAIL PROTECTED]> wrote:

What do you think about to use an API documentation tool, epydoc
(http://epydoc.sourceforge.net/) for example? Unfortunately I haven't used it
myself yet, but the examples looks promising (for example:
http://epydoc.sourceforge.net/api/epydoc.apidoc.VariableDoc-class.html).


I've played with Epydoc 2 a little; it's nice, but as Jim noted, the
markup can be a little heavy.

Early versions of Epydoc 3 have been released, which should solve some
of the problems by supporting docstrings for variables directly rather
than requiring they be embedded in module and class docstrings.  I
think there's supposed to be some support for interfaces as well,
which, potentially, would be enormously helpful for any Zope-related
code.

I've not had a chance to play with the new version, though, so can't
speak from experience on that.


 -Fred

--
Fred L. Drake, Jr.
"Every sin is the result of a collaboration." --Lucius Annaeus Seneca
___
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] Re: [Zope-Annce] Technical Preview of Blob support in ZODB

2006-05-20 Thread Fred Drake

On Thursday 18 May 2006 14:34, Fred Drake wrote:

Have there been any new features since 3.6? I wonder if maintaining
yet another branch can be avoided.


On 5/20/06, Stephan Richter <[EMAIL PROTECTED]> wrote:

I dunno; I just follow the pattern. ;-)


Ok, I took a (very quick) look at the differences between the 3.6 and
3.7 branches; there are definately differences.  I don't pretend to
really understand these changes:

- addAfterCommitHook added to ITransaction

- record_iternext was added to the storage inteface (just for ZEO?)

So we do need a 3.7 branch after all.  :-(


 -Fred

--
Fred L. Drake, Jr.
"Education is hanging around until you've caught on." -- Robert Frost
___
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] Re: [Zope-Annce] Technical Preview of Blob support in ZODB

2006-05-18 Thread Fred Drake

On 5/18/06, Stephan Richter <[EMAIL PROTECTED]> wrote:

I have already created the 3.7 branch, so no more new features in 3.7.
However, ZODB 3.7 might be an internal release only used by Zope 3.3 and
2.10.


Have there been any new features since 3.6?  I wonder if maintaining
yet another branch can be avoided.


 -Fred

--
Fred L. Drake, Jr.
"Education is hanging around until you've caught on." -- Robert Frost
___
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


[ZODB-Dev] Re: 64-bit BTrees

2006-04-21 Thread Fred Drake
On 4/13/06, Fred Drake <[EMAIL PROTECTED]> wrote:
> I've created a feature development branch for
> this, and checked in my initial implementation.

I've made another branch for this, with a different twist.  I'm not
sure it'll be interesting, but I think it'll solve my immediate need
until I can get around to reasonable testing of the performance
implications.

The "fdrake-optional-64bits" branch will compile using the C "int"
type for "I" keys and values by default, and using the "PY_LONG_LONG"
type if ZODB_64BIT_INTS is defined.

This allows 64-bit BTrees by building ZODB like this:

python setup.py build_ext -D ZODB_64BIT_INTS build

BTrees.IIBTree.using64bits will be True if ZODB_64BIT_INTS is used.


  -Fred

--
Fred L. Drake, Jr.
"Don't let schooling interfere with your education." -- Mark Twain
___
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] Re: [Zope-dev] Re: 64-bit BTrees

2006-04-17 Thread Fred Drake
On 4/17/06, Jim Fulton <[EMAIL PROTECTED]> wrote:
> The fact that IIBTrees is so widely used is exatly the reason
> I want to use 64-bits for the existing types rather than having to
> introduce a new type.

Oops, I was checking in the separated version of 64-bit BTrees while
this was landing in my inbox.  ;-/

Once we determine which approach we're going with, I should make an
alpha release of ZODB 3.7 and knit that into the Zope 3 trunk so we
can get more testing in context.


  -Fred

--
Fred L. Drake, Jr.
"Don't let schooling interfere with your education." -- Mark Twain
___
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


[ZODB-Dev] 64-bit BTrees

2006-04-13 Thread Fred Drake
I have a need for 64-bit BTrees (at least for IOBTree and OIBTree),
and I'm not the first.  I've created a feature development branch for
this, and checked in my initial implementation.

I've modified the existing code to use PY_LONG_LONG instead of int for
the key and/or value type; there's no longer a 32-bit version in the
modified code.  Any Python int or long that can fit in 64 bits is
accepted; ValueError is raised for values that require 65 bits (or
more).  Keys and values that can be reported as Python ints are, and
longs are only returned when the value cannot be converted to a Python
int.

This can have a substantial effect on memory consumption, since keys
and/or values now take twice the space.  There may be performance
issues as well, but those have not been tested.

There are new unit tests, but more are likely needed.

If you're interested in getting the code from Subversion, it's available at:

svn://svn.zope.org/repos/main/ZODB/branches/fdrake-64bits/

Ideally, this or some variation on this could be folded back into the
main development for ZODB.  If this is objectionable, making 64-bit
btrees available would require introducing new versions of the btrees
(possibly named LLBTree, LOBTree, and OLBTree).

I welcome comments.


  -Fred

--
Fred L. Drake, Jr.
"Don't let schooling interfere with your education." -- Mark Twain
___
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