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.

Versioning v. Performance?

August 06, 2007 6:03pm

Subscribe [4]
  • #1 / Aug 06, 2007 6:03pm

    Mark Huot

    587 posts

    Ok, so I’ve never used Versioning before and I was wondering if anyone else had?  Was it a good experience?  Did it affect the page load at all?  I’m wondering because I’d potentially like to store a whole bunch of revisions (~100) and I’m afraid it will affect the MySQL queries speed.  Or, is the only time the revisions are displayed/queried is in the CP when you’re editing an entry?

    Thanks guys!
    Mark.

  • #2 / Aug 06, 2007 6:12pm

    JT Thompson

    745 posts

    I use versioning for both templates and articles.

    It doesn’t have an effect on the performance. it’s just storing additional copies. But even so, i’ve been doing versioning since I launched my site (right after the 04 election) and I currently have4 over 2100 articles. Even with that, and I set a really high limit for versioning (over 100) my whole database is only 95 megabytes. Text is really easy to manag and it’s pretty rare that an article is revised. Unless they’re trying to find a change they made. but I would guess there’s less than 40 total revisions on articles total.

    If I was going to be thrifty with it, I wouldn’t version my articles. just my templates.

  • #3 / Aug 06, 2007 6:26pm

    Mark Huot

    587 posts

    Excellent!  That’s exactly what I was hoping to here.  Anyone else have any success/warnings?

  • #4 / Aug 06, 2007 6:45pm

    Ryan Irelan

    444 posts

    I don’t turn any versioning on until we’re close to completing the project, but after that I do as a safety net for clients.  I usually just use the default limit. I’ve experienced a performance hit from a lot of things, but never anything I could pin down to versioning.

    I don’t know if it adds to the query time when rendering a page on the frontend. Would be interesting to know, tho.

  • #5 / Aug 06, 2007 6:58pm

    Derek Jones

    7561 posts

    The primary consideration with template and entry versioning is the increase in your database size.  Every entry and template will occupy X amount of space, where X is the revision limit.  So if you have 1024 entries with an average of 1kb per entry, and are saving 100 revisions, then instead of one megabyte of database storage, you are consuming potentially up to 100MB of database storage.

  • #6 / Aug 06, 2007 7:00pm

    Mark Huot

    587 posts

    Thanks everyone, I guess I was just afraid that saving revisions would then cause the exp:weblog:entries tag to take a little extra time to query the revisions, but if that’s not the case that’s great!

  • #7 / Aug 06, 2007 7:05pm

    Derek Jones

    7561 posts

    Nope, the front end is not impacted, Mark, as revisions are saved as serialized data in the exp_entry_versioning table, and fetching from there only comes into play when viewing a previous revision in the Publish page, and to compile the dropdown list on the same.

  • #8 / Aug 06, 2007 7:17pm

    Mark Huot

    587 posts

    Huh, thanks Derek.  I think the only thing I’m still looking for with this is the ability to display revision information on the front end?  Is that possible with an EE tag, or would it take a plugin?  I couldn’t find anything in the docs relating to it.

  • #9 / Aug 06, 2007 7:25pm

    Derek Jones

    7561 posts

    That would require a plugin/module/PHP, as the entry’s revision data is serialized, similarly to related entries.

  • #10 / Aug 06, 2007 7:32pm

    Mark Huot

    587 posts

    Thanks Derek, sounds like fun!

  • #11 / Aug 06, 2007 7:35pm

    Derek Jones

    7561 posts

    Check out cp.publish.php around line 417 for the query, unserialization, etc., and dump the array to your browser so you can see what you have access to.  It’s basically just the entire POST array that would be sent with the Publish form.

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

ExpressionEngine News!

#eecms, #events, #releases