So, I have a plugin and for one of my conditions I need to track the value of the device. That is to say I need to know the value before the change and then set the value to the new value. I am doing this via HSEvent and all is working well.
My question is on what is the best way to store this. Right now I'm using a SQLite database to hold the values, but this obviously has some downsides such as the time to retrieve and then save the values as they change. I was wondering if anyone thought it would be better to just store it in memory while the plugin is running. My concern about using memory was that if a user adds too many conditions, it would use up too much memory and then managing the triggers might be a pain (though I could use Linq to filter them, so may be not).
So which would probably be the preferred method for storing the values? Either way I have to reset the stored values on plugin initiation.
My question is on what is the best way to store this. Right now I'm using a SQLite database to hold the values, but this obviously has some downsides such as the time to retrieve and then save the values as they change. I was wondering if anyone thought it would be better to just store it in memory while the plugin is running. My concern about using memory was that if a user adds too many conditions, it would use up too much memory and then managing the triggers might be a pain (though I could use Linq to filter them, so may be not).
So which would probably be the preferred method for storing the values? Either way I have to reset the stored values on plugin initiation.
Comment