Darren Ferguson - Umbraco, Dev, PhoRSS

Thursday, July 20, 2006

Poll Macro needs improving

Filed under: Umbraco - by Darren Ferguson @ 12:46 PM

A while back I posted a Poll macro for Umbraco. There was a reasonable amount of interest, so I posted the source.

As the original post says, this was just a very quick demo and I thought that the method of storing responses would need improving.

Niels posted a link to the demo on the Umbraco site and as a result it got several hundred responses which slows down Umbraco when trying to acess the node where the responses are stored in the GUI.

This post is just to advise against using this Macro on production systems until I (or someone else) get the chance to improve it.

5 comment(s) for “Poll Macro needs improvingComments RSS

  1. Ismail Mayat says:
    Ismail Mayat
    Darren,

    I found this on codeproject http://www.codeproject.com/useritems/Site_Poll_Control.asp. Not had a play myself but looks ok.

    Regards

    Ismail
  2. Jesper Ordrup says:
    Jesper Ordrup
    Hi Darren,

    Did anybody tell you the actual count of nodes that slowed the gui?

    Best,

    Jesper
  3. Darren Ferguson says:
    Darren Ferguson
    It was about 200 (on my site), but it was fine unless you actually expanded the node in the GUI. My advice would just be to store the vote counts in one node......
  4. Jesper Ordrup says:
    Jesper Ordrup
    Thanks.

    Another solution could be to do the same as the Blog package which is to add an actionhandler that organize the votes in subnodes - one for each day ...

    Jesper
  5. Jesper Ordrup says:
    Jesper Ordrup
    ... got me thinking :o)

    Why not use the autoform/document type approach for polls?

    It might be a slight modified autoform control if you want to ensure that members only vote once and such but it could be cool.

    Jesper

Leave a comment

Darren Ferguson - Umbraco, Dev, Pho is published with Umbraco 3.0.5