Currently, sampled data is just stored as an array in the program. This is a problem for multiple reasons: first of all, it is volitile, meaning that when the server is restarted all the data is lost. Second of all, it means that the data is slowly accumulating over time, increasing RAM usage. Additionally, with the current implementation, all the accumulated data is sent in the API, which is bad because that could potentially result in huge API calls. Here is a list of improvements that need to be made:
Currently, sampled data is just stored as an array in the program. This is a problem for multiple reasons: first of all, it is volitile, meaning that when the server is restarted all the data is lost. Second of all, it means that the data is slowly accumulating over time, increasing RAM usage. Additionally, with the current implementation, all the accumulated data is sent in the API, which is bad because that could potentially result in huge API calls. Here is a list of improvements that need to be made: