3 ms·
You only need to be able to calculate what a user has done when the user views the comment. You can imagine storing each vote as a hash of (voter, comment, dir
by tedunangst 17y ago
You only need to be able to calculate what a user has done when the user views the comment. You can imagine storing each vote as a hash of (voter, comment, direction). Then when rendering the page, you calculate all possible hashes on the page and look for hits. If the comment count per page isn't too large, it won't take that long. It's fairly intensive and probably not worth it for a site like this, but possible. It would also screw up any offline voting-rings detection.
Edit: should have clarified that by user I meant a hash of name and password, so it's infeasible to calculate offline.