Closed aalfiann closed 5 years ago
I close this issue because the counter is working. I hope there is an example to use database container with detail explanation. Thank you.
Hi @aalfiann.
the counter
doesn't count current cached stats. The reason (maybe) is that it's complicated count cache when stats are counted. I want to improve mechanism and storing data in future version.
Currently there is 30 seconds delay for flushing of cache. Just let me know if you have any questions or we can discuss about it on Total.js messenger.
Hello,
I have database like this users.nosql
Here is my test:
The output is always 0.
But after a minutes later, the output is 10. I've seen that there is new file users.nosql-counter2 created.
My question is how this is work? is this using built-in cache? how long this will refreshed? Is stats_sum will working since there is no any date in users.nosql-counter2 file?
Also I didn't found any example in totaljs github about using database counter in detail.
So please help me to understand this great framework.
Thank you