27. What can we tune?
•Site Baseline - disable what you don’t need
28. What can we tune?
•Site Baseline - disable what you don’t need
•Data Structure - you know your data best
29. What can we tune?
•Site Baseline - disable what you don’t need
•Data Structure - you know your data best
•Addons - the black boxes in the system
30. What can we tune?
•Site Baseline - disable what you don’t need
•Data Structure - you know your data best
•Addons - the black boxes in the system
•Templates - the devil is in the details
31. Metrics
If we’re going to tune it,
we’ve got to be able to measure it
88. Lather, Repeat, Rinse
using an “optimised” channel:entries as an example
{exp:channel:entries
dynamic=“no”
channel=“example”
limit=“1”
disable=“{disable_entries}
”
cache=“yes”
refresh=“900”}
95. What we want:
•
Caches shouldn’t be relied on to get good
performance
•
Entry count shouldn’t affect the number of
Database queries
96. What we want:
•Caches shouldn’t be relied on to get good
performance
•Entry count shouldn’t affect the number of
Database queries
•Entry count should relate linearly to template
processing time
97. What we want:
•Caches shouldn’t be relied on to get good
performance
•Entry count shouldn’t affect the number of
Database queries
•Entry count should relate linearly to template
processing time
•What works for 10, needs to scale to work for
10,000
105. Nested Loops
Category Archive Page
What you’d expect :
106. Nested Loops
Category Archive Page
What you’d expect : +2 for category loop
107. Nested Loops
Category Archive Page
What you’d expect : +2 for category loop
+3 for entries loop
108. Nested Loops
Category Archive Page
What you get :
109. Nested Loops
Category Archive Page
What you get : +2 for category loop
110. Nested Loops
Category Archive Page
What you get : +2 for category loop
+3
111. Nested Loops
Category Archive Page
What you get : +2 for category loop
for EACH entries loop
+3
PER CATEGORY
112. Nested Loops
Category Archive Page
With some tuning
(and some php)
you can get:
113. Nested Loops
Category Archive Page
With some tuning +2 for category loop
(and some php)
you can get:
114. Nested Loops
Category Archive Page
With some tuning +2 for category loop
(and some php)
you can get: +3 for entries loop
115. Nested Loops
Category Archive Page
With some tuning +2 for category loop
(and some php)
you can get: +3 for entries loop
see : bit.ly/eeci2010_low