Answer the question
In order to leave comments, you need to log in
Statistics for the site, Cash?
Hello
I am recording block data on the site, i.e. with each update of the data +1 to a certain block, so I will find out the number of views of a certain block (exaggerating). To calculate this, I am using NoSQL mongodb. From these statistics, I find out all and unique views per day. Once a day, I transfer the summarized data to another (permanent) collection and clear it from yesterday's records. Before that, I tried to use MySQL, but it is too slow for inserts
1. Tell me, is it correct to use mongo for such statistical data?
2. Perhaps there are some services for this that provide data through the API and is it worth using them in terms of performance?
3. How to read data if the site is cached (JavaScript only)?
Answer the question
In order to leave comments, you need to log in
Redis to the rescue! https://redislabs.com/ebook/redis-in-action/part-2...
I also want to advise you to look in the direction of influxdb, as the storage of your counters, you can display it through grafana.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question