> I assume that mlogger rescanning ODB is somewhat intensive process; and that's why we don't want rescanning to
> happen every time the ODB is changed?
A rescan maybe takes some tens of milliseconds. Something you can do on every run, but not on every ODB change (like writing to the slow control values).
We would need a somehow more clever code which keeps a copy of the variable names for each equipment. If the names change or the array size changes,
the scan can be triggered.
> Stopping/restarting mlogger is okay. But would it be better to have some alternate way to force mlogger to
> rescan the ODB? Like an odbedit command like 'mlogger_rescan'; or some magic ODB key to force the rescan. I
> guess neither of these options is really any easier for the developer. It just seems awkward to need to restart
> mlogger for this.
Indeed. But whatever "new" we design for the scan will users complain "last week it was enough to restart the logger, now what do I have to do". So nothing
is perfect. But having a button in the ODB editor like "Rebuild history database" might look more elegant. One issue is that it needs special treatment, since
the logger (in the Mu3e experiment) needs >10s for the scan, so a simple rpc call will timeout.
Let's see what KO has to say on this.
Best,
Stefan |