Sample Header Ad - 728x90

Caching impression counts to avoid mysql inserts

2 votes
0 answers
71 views
We currently get a lot of mySQL inserts/updates on duplicate daily (millions) and we're looking at speeding up the application by using some form of counter with memcached and then clearing it on intervals with a cron. Is this possible? What happens if 2 people hit at the exact same millisecond? Will the counter still go up twice or will it only increment once? Some more information on how to handle this would be great.
Asked by Kyle R
Aug 2, 2015, 08:35 PM
Last activity: Aug 3, 2015, 02:33 AM