What is the best way to import thousands of processing histories into my primary darktable database?

This is something I will have to try.