Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
381 views
in Technique[技术] by (71.8m points)

python - What is the difference between the various ZODB blobstorage layouts?

The ZODB blobstorage directory contains a .layout file with the string 'lawn', 'bushy'.

What is the difference between the various blob storage directory formats?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It is explained here: https://github.com/zopefoundation/ZODB/blob/master/src/ZODB/tests/blob_layout.txt

FTA:

====================== Blob directory layouts

The internal structure of the blob directories is governed by so called layouts. The current default layout is called bushy.

The original blob implementation used a layout that we now call lawn and which is still available for backwards compatibility.

Layouts implement two methods: one for computing a relative path for an OID and one for turning a relative path back into an OID.

Our terminology is roughly the same as used in DirectoryStorage.

It also explains the formats in detail.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...