On Tue, Aug 26, 2008 at 6:11 AM, blues <[EMAIL PROTECTED]> wrote:
>
>> > I don't know if this would faster to generate the most rating and
>> > highest rating lists. Just a thinking.
> votes: the average is just sum/votes. it could also be recorded in the
> hidden page data.
The point I think Linly was making, was that storing all the numbers
on a single rating page, you could very quickly generate a list of all
the pages (or the top 10), say in order of most popular to least
popular. If the numbers were stored on separate pages, you would have
to open up and scan each and every one before you could generate the
list. This is the whole idea behind the new info functionality
actually. The ability to store info about multiple things (usually
pages) all on a single page for very fast processing.
But using your thoughts Blues, we could do this:
some.page: 76=22,linly,blues,marcos,martin.... (76 pts, 22 votes)
Then we can quickly get everything we need from the single info entry.
We should be able to do [if inlist {id} {info.ratings::{p}}] to tell
whether or not a person has already voted... And the rating function
would probably look like:
[(info rate)]
which goes to the rate page, extracts the info variable for the
current page, and returns a formatted output of score=76/22 and
rate=22. Very quick. And then a slightly different function like
[(info ratesort group=test*)]
which would scan the info.ratings page for any test pages with
recorded ratings, calculate a rating score from each, sort the output
and display. All with just opening one page.
I'm sure it will take us a bit of time to figure out all the cool ways
to use this new stuff. But chewing on these things together is very
stimulating. Lot's of good ideas!
Cheers,
Dan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---