Command to efficiently import elements from a large list of IIIF images
Closes #927 (closed)
I went a bit overboard with this but it's now making as few DB queries as possible, while still capable of:
- processing a large list of paths
- supports gzipped and text files
- works in 2 stages:
- read the file and build an in-memory graph of the required elements
- browse the graph and only create the required elements
- create images in db (with size detection)
- use specified page & folder types
- will not create duplicates on restart as it detects pre-existing element with same name+type+parents (using a relatively efficient query without overlap nor contains on paths)
Edited by Bastien Abadie