The โmost effective wayโ is highly subjective; You will need to tell us about your specific performance problem.
I would probably look at the pages (on each web server in the farm) in the local log file (of course, of course), then I should have a process that rotates periodically and sums it up in the database (of course, the parallel access descriptor that remains for exercises for exercise).
The adder calculates the number of views of each article in the log file for a certain period (say, run every minute or two), and then do it in one transaction, but many updates are needed, one for each article. This will probably not cause too many problems, since you will only consider one process on each web server that performs one transaction per minute (or 2, 5 or any number), and not one per web request. The database will have less load.
Markr source share