How Can I Use a Separate ZODB for Each Plone Site?
Zope 2.7.x and above allow you to create ZODB Mount Points, thereby using multiple ZODB's instead of just the one we were limited to before. Read on for more information on how to use this feature.
Edit zope.conf
First, you'll need to add this to the end of your zope.conf (INSTANCE_HOME/etc/zope.conf):
<zodb_db mySeparateDB>
mount-point /desired/path
<filestorage>
path $INSTANCE/var/mySeparateDB.fs
</filestorage>
</zodb_db>
You should replace mySeparateDB with a unique name, for example one that corresponds to the name of the website you are using it for.
The desired path is the path in your Zope where you want to create the Plone or other site.
Restart Zope
Once that is all set you can restart Zope. You can usually do this by typing 'zopectl restart'.
Login to Zope
Now login to the root of your Zope (ZMI) and add a "ZODB Mount Point" from the Add menu.
The mount point you configured in zope.conf will be selected. Also select the box for "Create new folders if the mounted objects don't yet exist". Submit the form and you should be all set with your separate zodb.
You'll want to create your site inside this mount point.
Questions?
Please contact us with your questions and we will get back to you right away.
