Currently, if you run a supplementMetadataFromJSON (or from TSV) command with fields that are already defined, the cached versions in memory persist, which can cause errors.
Running python OneClick.py reloadMemory fixes the problem; but this can be expensive on a very large bookworm (several minutes before complete, although the database should remain usable in the meantime), and only a few tables actually need to be reloaded (those affected by the command).
The supplement command should therefore run the code to update the memory tables in a way that forces reload, rather than accepting a populated table as adequate.
Currently, if you run a
supplementMetadataFromJSON
(or from TSV) command with fields that are already defined, the cached versions in memory persist, which can cause errors.Running
python OneClick.py reloadMemory
fixes the problem; but this can be expensive on a very large bookworm (several minutes before complete, although the database should remain usable in the meantime), and only a few tables actually need to be reloaded (those affected by the command).The supplement command should therefore run the code to update the memory tables in a way that forces reload, rather than accepting a populated table as adequate.