frc5183 / Oatmeal

MIT License
2 stars 0 forks source link

Move database query for reminders to seperate thread. #65

Open Baconing opened 4 months ago

Baconing commented 4 months ago

Move querying the database to a seperate thread that runs every ~5 minutes. It can then put upcoming reminders in an array that can be worked with by the main reminder thread every second, allowing for 1 second reminders (or however long the main reminder thread will run)

Trip-kun commented 4 months ago

I'm not quite ready to start work on this yet, but in addition to this, changing the queryAll to use the stipulation of being within the next 5 minutes utililizing the unix timestamp as our search paramater would be good as it would prevent the inherent memory bloat of loading ALL reminders and instead load only the ones needed before the next query