-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Aaron Peachey wrote on 23/06/11 12:11: >... > We need to make changes to the server for this, and my thoughts about > how we approach this have come up with a few options. > > Option 1: maintain a field against each app on the server with the > current ELR number. This would mean every time someone submits, > modifies, deletes or hides a rating for that app, the server would > need to re-calc the ELR at the time. > The benefit of this is we can simply return the ELR to the client > whenever the client asks for ratings. Because we often ask for alot of > these in one hit (e.g. updates last X days) this would be a benefit > performance wise where it counts. > However, it would come at the cost of some time for every action that > affects ratings for the app, because we need to re-calc every time.
Another minor benefit: If we made changes to the formula, we wouldn't need to issue an update to USC, we could just change it on the server. > Option 2: maintain 5 fields against each app on the server, with the > total ratings for each step. This would be a much simpler calculation > at the time of submit/delete/modify/hide but a performance hit upon > retrieval of ratings in a bulk fashion because somewhere we need to do > the ELR calc for every app that has changes in ratings > This could either be done by calculating the ELR on the server before > returning it or just returning the 5 integers* and having the client > work out the ELR. >... > *We need to keep in mind, that if we go down the path of showing a > distribution of ratings for each package, then we will probably need > the 5 integers to be returned to the client in order to work out the > distribution. With this in mind, I'd suggest we need to go with option > 2 and have the server return the 5 integers to the client, who then > uses them to calculate the ELR and work out the distribution of > ratings for display. >... I agree, I'd like to show the distribution of ratings as some sort of histogram. (You can see some preliminary sketches for this at <https://wiki.ubuntu.com/SoftwareCenter?action=AttachFile&do=view&target=p58-small.png>.) Cheers - -- mpt -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4ErB0ACgkQ6PUxNfU6ecr/5gCgkYdm+TJw82E1gMYS7Wwt19wT TtMAn2nAP6foSZeGOJMG8vLwz97KOvwo =3Nxt -----END PGP SIGNATURE----- _______________________________________________ Mailing list: https://launchpad.net/~software-store-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~software-store-developers More help : https://help.launchpad.net/ListHelp

