simple `ct` or scan takes up to 11 seconds to start
Happened during the weekend on ID10. @valentin.valls flushed redis data DB => fixed the problem.
@sebastien.petitdemange reports some KEYS calls when scan starts, can maybe be part of the issue.
There are many parts to this:
-
!3167 (merged) (needs !3257 (merged)) optimize node creation in a pipeline (scan statistics: 'scan.node.prepare') -
!3172 (merged) optimize data watcher by reducing Redis queries (scan statistics: 'scan.events.device') -
#2373 (closed) (needs !3198 (closed)) optimize data watcher by fetching data in a pipeline (scan statistics: 'scan.events.device')
Edit: the last point is useful but in this context, we could skip it altogether by make the data watcher a Redis listener (reading data from Redis triggered by Redis events instead of triggered by the Scan
object through Louie).