How query the data size for each plone site

I have created multiple plone6 sites, date.fs can only see the total size, how can I view the data size of each site?

Om1221 via Plone Community wrote at 2024-7-23 08:36 +0000:

I have created multiple plone6 sites, date.fs can only see the total size, how can I view the data size of each site?

You cannot (easily).

There are several difficulties:

  • you have the primary content and associated metadata (e.g. indexes);
    it is quite difficult to estimate the metadata size for
    a content object

  • a content object may have subobjects, each with its own size
    -- e.g. an image and associated objects with different resolution

  • there is a difference between the "natural" size
    and the size when stored in the ZODB

  • objects may be present in different versions,
    each version with its own size

To determine a rough size estimation, a client uses a script
which walks a site and sums up size estimations for each content object.
This ignores the metadata size (e.g. for the catalog and its indexes).
It only looks for the major size contributors (e.g. records
the size for the main content but ignores that for e.g. title,
keywords, ...).

If you are really interested in the correct ZODB size
of a site, you might want to give each site its own ZODB.

The technique is called "mounting" and based on "MountPoint"s
(you have something similar in *nix file systems).

Got it. Thank you! :grin:

If you have only one Plone site in your system, pack the ZODB and check the size of var/Data.fs and all files within the blob storage.