ZCatalog queries performance
Sebastian Tänzer <st-QH+HwckL5+RBDLzU/[email protected]> Sun, 17 May 2015 17:09:49 +0200
| Newsgroups | gmane.comp.web.zope.general |
|---|---|
| Message-ID | <[email protected]> |
Hello, I’m querying a ZCatalog with a lot of indexes and some meta data for event objects to get related events by tags. These need to be displayed with a title image (which itself is a sub object of the event object) and a pre-defined short text. My python query script gets the results, I then loop over them and get the object with unrestrictedTraverse(x.getPath(), None). I understood getObject is not really performant, but getting the objects with unrestrictedTraverse is not a lot faster. What would be the best way to query for these objects and then display the results with the image? Should I add the url of the image as meta data (title_image etc.)? What is the best way to display search results? Is getting the whole object via unrestrictedTraverse() a good idea? What are the alternatives? Best, Sebastian _______________________________________________ Zope maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )