On high traffic sites the constant writing to the database or object cache may have an impact on performance if your web server isn’t great. A sampling rate of 80-100 is usually for high traffic sites, 40-80 for medium traffic sites and 10-40 for low traffic sites. If you don’t see any performance issues make the number as low as you can. Even if you have high traffic site you can use e.g. 40 if you don’t see any performance issues.
Using this method not every post view is saved. It picks random number between 0 and sample rate number. If it picks the correct number then the views are increased by sampling rate. On high traffic site it should give accurate post views.
No comments yet