ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Can I get a complex template to render in less than one second?

May 03, 2012 1:57pm

Subscribe [3]
  • #1 / May 03, 2012 1:57pm

    Matt Stein

    110 posts

    I just posted this question to Stack Overflow and figured I’d try asking here as well.

    I’ve optimized a complex template to the best of my knowledge, and I’m still looking to get rendering time under 1 second, whether I need to make application-level adjustments or server-level adjustments.

    The page in question is grid of 195 projects, each with several Playa relationships (client, vendor, office, etc.) that are actually displayed and filterable.

    uncached: 16.0904 seconds, 50.11MB, 5264 queries
    after application-level caching: 2.0793 seconds, 28.37MB, 476 queries

    The drop is largely a result of EE’s template caching, tag caching, and channel “disable” parameters per the EE Wiki Optimization article.

    This is all happening on a MediaTemple DV4 server with 512MB of memory, which I imagine will get destroyed at this rate. Production site traffic is ~4K pageviews per day.

    The only idea I’ve had so far is to load only featured items and save the (larger, initially hidden) chunk of content asynchronously. The only reason I don’t like that idea is the potential ding for SEO. Each project has a detail page, so it may not be an issue, but it seems like this is all useful information to have indexed.

    Are there any safe ways, without hacking ExpressionEngine’s core, to drop my minimum page rendering time to less than a second? Have I simply set myself up to fail?

  • #2 / May 03, 2012 2:07pm

    Boyink!

    5011 posts

  • #3 / May 03, 2012 2:10pm

    Matt Stein

    110 posts

    Exactly what I need for $30, and by Causing Effect?! Thanks for the zippy response, Mike! I’m off to buy and experiment.

  • #4 / May 03, 2012 2:31pm

    Matt Stein

    110 posts

    Mike, if I could high-five you and Aaron Waldon from here I would. $30 and about 15 minutes later, this page is rendering in 0.1497 seconds with only 32 queries. And I’m logged in to the control panel, which is probably most of the queries! Woohoo!

  • #5 / May 03, 2012 2:34pm

    Boyink!

    5011 posts

    Awesome!

    (except for that Aaron is $30 richer and I’m not…:-))

  • #6 / May 04, 2012 1:49pm

    Shane Eckert

    7174 posts

    Hi Matt,

    Wow, that’s a HUGE improvement! Props to Mike and Aaron!

    If you need anything else, please just let us know by opening a new thread.

    Have a great weekend!

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases