Performance Enhancement Hint

Author Message

Willie Seabrook

Friday 27 February 2004 11:37:02 pm

Hi,

I just thought I'd add a note about improving your ezpublish mysql database performance. As I understand, most of ezpublish's performance problems arise from very intensive use of the database. I have made a number of customisations that involve among other things, querying the ez tables directly rather than through the API because in a number of situations the performance using the API was just ridiculous.

The ez tables are very much free of indexes. I added a couple of indexes to the eznode_assignment and ezcontentobject_attribute tables and reduced one of my very database intensive pages initial load time from over 80 seconds to about under 6 seconds. Still horrible but doable.

So the hint is, have a poke around inside the ez code, and your own and seek out columns to index. Probably quite obvious to most but I had always assumed it had already been done. Dummy me eh?

Regards,
Willie

Georg Franz

Saturday 28 February 2004 6:23:49 am

Hi Willie,

thanx for the tip!

Which indexes did you add? Do you have the sql code?

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Kåre Køhler Høvik

Monday 01 March 2004 2:08:59 am

We are aware of missing indexes and have started adding indexes to to the database ( 3.4a1 DB update contains new index for ezuser_role.role_id )

Please post new indexes you find to increase eZ publish performance.

--
Kåre Høvik

Kåre Høvik

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 22:26:49
Script start
Timing: Jan 18 2025 22:26:49
Module start 'layout'
Timing: Jan 18 2025 22:26:49
Module start 'content'
Timing: Jan 18 2025 22:26:49
Module end 'content'
Timing: Jan 18 2025 22:26:49
Script end

Main resources:

Total runtime0.0143 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.9063152.6250
Module start 'layout' 0.00490.0030 740.531339.4453
Module start 'content' 0.00790.0043 779.976689.2891
Module end 'content' 0.01230.0021 869.265634.3047
Script end 0.0143  903.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.6545140.0002
Check MTime0.00117.7324140.0001
Mysql Total
Database connection0.00064.411210.0006
Mysqli_queries0.002920.396130.0010
Looping result0.00000.078110.0000
Template Total0.001611.110.0016
Template load0.00095.943010.0009
Template processing0.00075.163810.0007
Override
Cache load0.00064.049010.0006
General
dbfile0.00021.462180.0000
String conversion0.00000.041540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs