Efficient Plone Folder

Hi @ericof. In Stellenbosch you mentioned that a Plone folder can be configured for highly efficient object storage. Please elaborate.

Yes, I have a folder with thousands of objects and a list/search/filter volto component on it that uses the catalog

A folder is a BTree, so it works with millions of objects. Just the catalog might struggle.

Another way to deal with many objects is souper.plone
This needs custom code.

The new bleeding edge way would be to use plone-pgcatalog and the new PostgreSQL stack - but that's not tested in all details.

1 Like

It seems my message was never sent :frowning:

So, lesson 1: Disable ordering on the folder.

Thanks @ericof. I created a IObjectAddedEvent handler for the required content types like this

def set_unordered(obj, event):
"""Set the folder ordering to 'unordered' on creation.
"""
obj._ordering = "unordered"

Is this sufficient?

And thanks @jensens we’ll all be using your new database server soon and performance concerns will be a thing of the past :smile:

2 Likes

@jensens @mikemets I fixed the title/headline to Plone as an admin, sorry for spoiling the lame joke.

1 Like

Thanks @acsr :see_no_evil_monkey: