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

Sorry so you have a folder of images with xmp from your laptop… can you not just copy these files to your main image collection and import them…just let it run at night or something?? Am I missing something?? It should go fairly fast if your hardware is not too limiting…