Preserving the evaluation history in a database
Currently info on which rule lead to which result including tags, mappings, etc. is only logged to the terminal in verbose mode (-v
).
The custom-logging.py module provides a dedicated logger that dumps that information into a tinyDB
. This is not the fastest database and slows down the process in production. However, there are other solutions which are way faster. (And the logger doesn't start and I dunno why... needs debugging.).
The current output of that logger is JSON
. This is exactly what e.g. MongoDB is made for and this is super fast.
To conclude, instead of writing into a tinyDB replace this call to write the stream into a mongodb: https://git.gfz-potsdam.de/dynamicexposure/openbuildingmap/rabotnik-obm/-/blob/master/rabotnikobm/custom_logging.py#L38
/cc @cnievas @LaurensJN