[ZODB-Dev] FileStorage on readonly media

Dieter Maurer dieter at handshake.de
Thu Mar 11 16:56:10 EST 2004


FFFFUry Marshak wrote at 2004-3-11 18:58 +0200:
>Using current ZODB3 CVS I tried putting a database file on
>a CD-ROM. Of course I'm creating the storage with a
>read_only=True parameter. Unfortunately it dies in the
>FileStorage._save_index() . My question is first if my line of
>thinking is logical - that if I open a database as read-only, then
>it should be able to operate from a read-only media?

Writing the index does not modify the storage.

Put the index on the CD along the FileStorage. Then, it will not
be written. The index is essential for fast startup.

-- 
Dieter



More information about the ZODB-Dev mailing list