RE: [Zope] Catalog Searching
> But doesn't Catalog() return all objects in the Catalog? > Doesn't all the > meta-data for those objects have to be loaded into memory ratehr than > just the 50 that are actually needed? No, it returns a list-like object that load objects into memory only as the elements of that sequence are accessed. Objects are arranged in the right order within that sequence using the metadata cached by the catalog. ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Catalog Searching
Toby Dickenson wrote: > >Maik Roeder wrote: > >> > >> Show stuff in Catalog here. > >> But doesn't Catalog() return all objects in the Catalog? Doesn't all the meta-data for those objects have to be loaded into memory ratehr than just the 50 that are actually needed? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Catalog Searching
On Wed, 20 Sep 2000 14:51:01 +0100, Chris Withers <[EMAIL PROTECTED]> wrote: >Maik Roeder wrote: >> >> Show stuff in Catalog here. >> > >That doesn't take advantage of the Catalog's lazy searching, AFAIK, and >on a site with a lot of content that could be bad. Lazy searching is not an issue - that definitely happens. The catalog always uses its cached metadata for searching and sorting. A more interesting question is over sorting-by-index. Whether or not this happens depends on the relative size of two sets: a. The number of *different* *values* for the sort attribute over the whole catalog content. b. The number of matches found. If number(b)>number(a) then sorting-by-index works well. This might happen for example if you are sorting by "author name", where there are more matches than there are authors. This is efficient since the catalog precomputes the matches grouped by author name, and it only needs to sort the groups. If number(a)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 )
[Zope] Catalog Searching
Maik Roeder wrote: > > Show stuff in Catalog here. > That doesn't take advantage of the Catalog's lazy searching, AFAIK, and on a site with a lot of content that could be bad. cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] 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 )