I want to count how many times an image is loaded on a webpage. We are looking at maybe 100 times per second.One option is to store every impression as a row in a database, but this would get massive quite quickly. Another option is to have a single variable and just increment it each time.So if I went with a single variable and incremented it each time, is it even possible to lock a database variable?
How to protect quickly-incrementing variables in Django?
python;django;synchronization