Tutorials & articles written by Ivo Lukac

Need for speed - How to use eZ Find search fetch instead of standard content list/tree fetch

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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 04:16:46
Script start
Timing: Jan 18 2025 04:16:46
Module start 'layout'
Timing: Jan 18 2025 04:16:46
Module start 'community'
Timing: Jan 18 2025 04:16:47
Module end 'community'
Timing: Jan 18 2025 04:16:47
Script end

Main resources:

Total runtime0.0520 sec
Peak memory usage4,096.0000 KB
Database Queries24

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.2188152.6094
Module start 'layout' 0.00570.0028 741.828131.6563
Module start 'community' 0.00850.0421 773.4844415.6563
Module end 'community' 0.05070.0012 1,189.140610.6406
Script end 0.0519  1,199.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00305.8662140.0002
Check MTime0.00142.6385140.0001
Mysql Total
Database connection0.00071.297010.0007
Mysqli_queries0.028154.0289240.0012
Looping result0.00020.4047210.0000
Template Total0.035367.920.0176
Template load0.00101.995820.0005
Template processing0.034265.871920.0171
Template load and register function0.00010.150010.0001
Override
Cache load0.00071.318140.0002
states
state_id_array0.00163.074910.0016
state_identifier_array0.00081.512710.0008
Sytem overhead
Fetch class attribute name0.00061.167610.0006
class_abstraction
Instantiating content class attribute0.00000.015610.0000
General
dbfile0.00010.288670.0000
String conversion0.00000.019330.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1community/articles.tpl<No override>extension/community_design/design/suncana/templates/community/articles.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs