-
Couldn't load subscription status.
- Fork 21
Description
BUG/PROBLEM REPORT and Proposal of Improvement/Solution
What I did:
Populate a Plone (portal_catalog) with tens of thousands objects (15.000 is enough to experiment the issue)
What I expect to happen:
In the Zcatalog 2.13 the manage_catalogView opens almost immediately regardless of cardinality of the catalog.
I expect the same behavior today.
What actually happened:
The dtml page takes too much time to load. In a production enviroment it could easly lead to a proxy error.
What version of Python and Zope/Addons I am using:
Zope => 4, Plone >= 5.2
Some Insight
The line of code that takes 99% of the time to be executed is:
in 2.13 the document tempate procedure to expand records (render_blocks method) was written in C, here
From 3.x onwards, the render_blocks method is written in pure python
Proposal of Improvement
Simply do not render the results Table if no path is specified.
In that way, the manager has still the opportunity
- to read how many records are in the catalog
- to specify a path to start a search with. Giving '/' will search the full catalog taking the time it needs. But most of the time the manager wants to access to a specific folder, or even a specific brain, to fire an update or a remove operation.
alessandro (from the Salamina PloneSprint 2024)