For page pv statistics, should we collect statistics on page PVS, whether to directly update the pv field of the database, or first update the records in memcache to the database on a regular basis? For memcache databases, all page pv statistics
To calculate the page pv, is the pv field of the database directly updated, or is the record in memcache first, and then regularly updated to the database? Database memcache
------ Solution --------------------
Almost all
However
It seems silly to transition from memcache if the traffic is small.
If the traffic is high, a large amount of memory is required to cope with the traffic, and the memory allocated to memcache is not much, it is still necessary to frequently write the database.
If memcache is placed on an independent server, it does not seem necessary to write the database.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service