ZODB Database

Introduction

This chapter is about working with ZODB database directly, like tuning database settings.

Plone uses ZODB database. The default ZODB version with Plone 3.x is ZODB 3.7.x. ZODB 3.8.x is not officially supported, but has been reported to work.

Packing the database offline

See this blog post.

Example how to pack a copy of Data.fs in offline using Python snippet:

import time
import ZODB.FileStorage
import ZODB.serialize

storage=ZODB.FileStorage.FileStorage('/tmp/Data.fs.copy')
storage.pack(time.time(),ZODB.serialize.referencesf)

Table Of Contents

Previous topic

Object lifecycles

Next topic

Storage

This Page