Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep zcatalog btrees balanced #146

Open
yurj opened this issue Jun 1, 2023 · 2 comments
Open

keep zcatalog btrees balanced #146

yurj opened this issue Jun 1, 2023 · 2 comments

Comments

@yurj
Copy link

yurj commented Jun 1, 2023

From https://github.com/zestsoftware/plonescripts:


catalogoptimize.py

Created by Hanno Slichting and Helge Tesdal. This optimises the btree data structure of the portal_catalog. Over time this structure can become inbalanced, which causes longer load times and efficiency of the catalog. We (Zest) seen noticable startup speed increases after rebalancing catalogs of larger and longer running (4+ year) sites.

The script seems to be safe to run on an online data.fs (using subtransactions), and we havent' experienced problems with it, but please first try it on a testing environment (and test for a period afterwards).


Could the ZCatalog btrees be kept balanced over time? Or it is a complex problem?

@yurj yurj changed the title keep catalog balanced keep zcatalog btrees balanced Jun 1, 2023
@dataflake dataflake transferred this issue from zopefoundation/Zope Jun 1, 2023
@dataflake
Copy link
Member

I have transferred the issue to the Products.ZCatalog repository because it's not a general Zope issue.

@yurj
Copy link
Author

yurj commented Jun 1, 2023

I agree even if keeping Btrees balanced can be a general issue, especially when there are containers with a lot of items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants