On Aug 26, 12:38 pm, "The Editor" <[EMAIL PROTECTED]> wrote: > 2008/8/25 Linly <[EMAIL PROTECTED]>: > > How about accept the rating data record like this format: > > > > target.page.abc: "Caveman: 2","Linly: 5","Marcos: 4","Martin: > > 3","Blues: 4" ... > > target.page.def: "John: 2","Merry: 5","Tony: 4","Tom: 3","Gery: 4" ... > > ... > > I don't know if this would faster to generate the most rating and > > highest rating lists. Just a thinking. > > This would indeed be much faster--though a slight bit more > complicated. I'll see if I can't work something out. It may take me > a while to get to it.
in most applications the rating system just outputs the "average" and the number of votes, so the single votes are of no use. if we go in this way, it should be much faster to record just the sum of all votes (adding a vode just add to the sum) and the number of votes: the average is just sum/votes. it could also be recorded in the hidden page data. then, usually, the no-repetition is handled with a cookie (fast) but the cookie could always be deleted. so the idea of Linly could be interpreted this way: target.page.abc: Caveman,Linly,Marcos:,Martin,Blues,... target.page.def: John,Merry,Tony,Tom,Gerry,... to check who actually voted. this should be fast and easy and much more secure than a bare cookie. blues --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/boltwire?hl=en -~----------~----~----~----~------~----~------~--~---
