faster navigation with sorted content-list-property?
Dear List, the NFGnav-product and most navigator solutions that I know (including my own ones) loop over the content of folders on every page-hit. If there are several additional dynamic navigation-elements like dropdown-lists, breadcrumb-navigators etc. there is a lot of timeconsuming looping for every page-hit. With a sorting-feature it will be even worse. Wouldn´t it be better i.e. faster to store the sorted-content of the folder in a list-property that changes whenever a document or folder is added to that special nav-folder so that different nav-methods can collect the same static content-info? May be someone uses this kind of nav-folder already? Does anybody have some comments or hints about that? Thanks a lot, Elena
I get your point, but rather than solving by writing a new index file... Take a look at OrderedFolders to sort your list. This creates a sorted list in your ZODB, without creating a second file to do the same thing. Of course this doesn't work if you have more than one sorting requirements on the same list. But for NAV this would seldom be the case. HTH, Trevor
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Elena Schulz Sent: Tuesday, April 09, 2002 11:25 AM To: zope@zope.org Subject: [Zope] faster navigation with sorted content-list-property?
Dear List,
the NFGnav-product and most navigator solutions that I know (including my own ones) loop over the content of folders on every page-hit. If there are several additional dynamic navigation-elements like dropdown-lists, breadcrumb-navigators etc. there is a lot of timeconsuming looping for every page-hit. With a sorting-feature it will be even worse.
Wouldn´t it be better i.e. faster to store the sorted-content of the folder in a list-property that changes whenever a document or folder is added to that special nav-folder so that different nav-methods can collect the same static content-info?
May be someone uses this kind of nav-folder already?
Does anybody have some comments or hints about that?
Thanks a lot,
Elena
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Elena Schulz -
Trevor Toenjes