Darren Ferguson - Weblog

20 July 2006

Poll Macro needs improving

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

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 comments for “Poll Macro needs improving” Comments RSS

  1. Ismail Mayat says:

    Gravatar of Ismail MayatDarren,

    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:

    Gravatar of Jesper OrdrupHi Darren,

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

    Best,

    Jesper

  3. Darren Ferguson says:

    Gravatar of Darren FergusonIt 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:

    Gravatar of Jesper OrdrupThanks.

    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:

    Gravatar of 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