AW: [Zope-DB] external ZODB from Zope interface
Frey, Peter
Peter.Frey at haufe.de
Thu Feb 2 12:20:16 EST 2006
Hi,
depending on what your goals are, maybe the following approach we use at
our site may help:
it is possible to mount "external" ZODB storages from a ZEO server into
the main storage
here an excerpt from our Zope configuration:
<zodb_db main>
mount-point /
cache-size $ZODB_CACHE_SIZE_MAIN
pool-size $ZODB_POOLSIZE
<zeoclient>
server $ZEOSERVER_MAIN
storage main
name zeostorage
cache-size 100000000
</zeoclient>
</zodb_db>
# ----------------------------------------
# mounted ZEO client storages:
# provided by local or remote ZEO server
#
<zodb_db normen>
mount-point $MOUNTPOINT/Data/Normen:/Normen
cache-size $ZODB_CACHE_SIZE_NORMEN
pool-size $ZODB_POOLSIZE
<zeoclient>
server $ZEOSERVER_NORMEN
storage normen
cache-size 200000000
</zeoclient>
</zodb_db>
# and a couple of other storages follow here
the variable MOUNTPOINT (defined ahead) specifies a ZODB Path under that
the storage is mounted
the content of the storage is then accessible through ZODB paths
directly from the main storage
note that it may be also possible to use local file storages (Data.fs
from local folders)
but as we have a not too small multiuser environment with several
servers we have no experience with that
so you may have to experiment on your own
Peter
________________________________
Von: zope-db-bounces at zope.org [mailto:zope-db-bounces at zope.org] Im
Auftrag von gyro funch
Gesendet: Donnerstag, 2. Februar 2006 16:25
An: Seth Gottlieb
Cc: zope-db at zope.org
Betreff: Re: [Zope-DB] external ZODB from Zope interface
Thanks for the very useful reference.
However, I don't see anything in there about accessing a ZODB. I may
have missed something, but I don't see a suitable ZODB adapter that I
can add in the Zope interface (similar to what is apparently possible
for Gadfly, MySQL, PostgreSQL, and other DBs).
Any other ideas about how to access 'external' ZODBs and make them part
of the Zope project?
Thanks.
-g
More information about the Zope-DB
mailing list