I have a time-series database where I put all my data in it in timely-ordered fashion. Unfortunately, the database doesn't have any realtime listener capability built into it, and I need to make an app that responds to any changes happened to my dataset.
Using that as the context, I came up with idea to regularly query all data within certain time range, and use the query result as entry point for the app that supposed to responds to the data changes.
Do you know any algorithm or technique that can help me doing this efficiently? I tried implement it before, but it seems to be ineffective, since data missing on a query return won't be processed, and I also tried to overlap the time frame on each interval, but that also results in inefficiency, since multiple data get processed multiple time, and the result of the process duplicates.