decolector / input

Software desarrollado para el proyecto "Input" de Ana Maria Montenegro Jaramillo ( http://montenegrojaramillo.com )
MIT License
1 stars 1 forks source link

dinamic time interval for db queries #1

Closed decolector closed 10 years ago

decolector commented 10 years ago

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).

z3a commented 10 years ago

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

z3a commented 10 years ago

The loop for download and display messages was implemented without the scheduler, right now it is a while true loop with a time.sleep.

decolector commented 10 years ago

I'm closing this issue for now since it seems that this feature is not needed at the moment.