Home / Knowledge / How to use eZ Find search fetch instead of standard content list/tree fetch

Need for speed with eZ Find

This tutorial should give eZ Publish developers some new ideas on how to use eZ Find. The ever growing need for speed can be achieved by using eZ Find search function instead of standard content list/tree fetch functions. Solr engine, used by eZ Find, is far more superior regarding read speed than mysql (at least in the way eZ Publish uses them). This fact becomes apparent when dealing with 10 or 100 thousands of objects in your database with complicated eZ Publish SQL queries starting to slow down rapidly. If you need text search capabilities difference in read speed becomes even more obvious.

Introduction

The main goal here is to replace standard content list/tree template fetch functions (which use SQL queries) with eZ Find search fetch function (which uses the Solr indexing engine ). Reason for this is to gain more speed as Solr is way faster in case of large site with 10 thousands of objects or more. Additional benefit is the text searching capability of Solr, which can be used to enrich functionalities available on the website. There are some drawbacks and some situations where Solr search fetch function cannot be used for replacing standard eZ Publish fetch functions, and these will be covered.

This tutorial could be even more usable in the future because of the direction where eZ Find development is headed, as it will be possible to store entire objects in the Solr index. In this case it will not be needed to use database at all, in order to fetch content nodes.

This is demo content, to continue real reading, please visit share.ez.no

About the author : Ivo Lukač

Working at Netgen, Zagreb, Croatia
 Tech: CMS, eZ Publish, eZ Find, PHP, Linux, MySQL, Apache, Varnish
 Services: system architecture, consulting, development, support, maintenance, upgrades

  • Currently 0 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 0/5 (0 votes cast)

Thank you for rating!

You have already rated this page, you can only rate it once!

Your rating has been changed, thanks for rating!

Log in or create a user account to rate this page.

Top stories

The Awards Finale

eZ is proud to announce the winners of the eZ Awards 2010 in Berlin. eZ Awards is an event hosted by eZ Systems as part of the eZ Conference. On the evening of Thursday 24th, special recognition has been given to key people within the eZ Ecosystem and the Open Source community as a whole. eZ Awards recipients have contributed to Open Source and the eZ Ecosystem in an exceptional way.

eZ Conference & Awards 2010 in Berlin

eZ is proud to host the 8th annual eZ Conference in Berlin on the 24th and 25th of June. This Web Content Management & Digital Media conference is attended by hundreds of industry leaders and experts every year, and all web professionals, including the entire eZ Ecosystem, are invited. The regular Partner meeting is held on the 23rd.