Poll Macro needs improving
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.
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
Friday, July 21, 2006@4:23 PM
Hi Darren,
Did anybody tell you the actual count of nodes that slowed the gui?
Best,
Jesper
Wednesday, August 09, 2006@11:54 PM
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......
Thursday, August 10, 2006@9:04 AM
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
Thursday, August 10, 2006@9:03 PM
... 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
Thursday, August 10, 2006@9:08 PM