dinamic time interval for db queries
Closed this issue · 3 comments
Display client should pull messages in db and wait a proportional time interval before the next db hit. The interval should be message_interval * number of messages, where message interval is an integer for seconds and this value should be configurable (config.xml).
I think that the delay could be implemented as a parameter of the control flow of the program. If the task of querying docs stops before download all the documents in the db, new ones added within this process could be lost because the shift of the indexes of the db. But if the program downloads and reproduces all the documents from the db, would reduce unnecessary db calls
The loop for download and display messages was implemented without the scheduler, right now it is a while true
loop with a time.sleep
.
I'm closing this issue for now since it seems that this feature is not needed at the moment.