Nice trick Alex!
And... to fool people more deviously, so they are very unlikely to figure out what's going on, a random choice would work a treat too.
I.e. for each view, you ignore it at random, with just a 1/10th chance of doing anything with it. On that one out of ten occasion, you randomly select a number from one to nineteen to add to the database count.
Even better would be if you have the current view count handy. You could always add one per view to start with, and progressively ramp up the rate of ignores as the view count became larger. This would be ideal, as the stored count would always be expected to be within quite a narrow percentage of the true count, plus the popular threads would pretty much stop pestering the database at all.
_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports."
Kamran Nazeer