-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sensors-logging: Refactor system so no unnecessary memory is used
The old pipeline was saving the entire log in memory, which was severely affecting the application's performance. With this new approach, there's no more logs in memory. All log points are saved in the local database, and retrieved when the request to generate the log file is made. I took the opportunity of this refactor to also address the problem of multiple log requesters interfering with each other. Now the system will not stop logging while there's an active log requester.
- Loading branch information
1 parent
90c9c6f
commit 6b85045
Showing
2 changed files
with
99 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters