[Zope] Building a site tree with the ZCatalog
Martijn Pieters
mj at zopatista.com
Tue Oct 21 12:25:32 EDT 2008
On Tue, Oct 21, 2008 at 18:10, Andreas Jung <lists at zopyx.com> wrote:
> You have to split the complete processing over several EPI queries where a
> single query returns all elements with level=1 for a particular subfolder.
> You can sort_on='position' within each query. And paste the results in some
> way together. Nobody said that EPI would solve the problem out-of-the-box
> :-)
Right, so with sufficient levels you end up with a *lot* of queries.
Why not just query for the whole lot and use one method that returns a
(path, position) tuple for a given item, and pass that to the sort
function as the key keyword? Should be a lot better performing.
--
Martijn Pieters
More information about the Zope
mailing list