a few more tests: i ran an import of the same 95 images as above in a test instance of the current /dev/2.0 branch. I apparently misremembered and we have been using caUtils import-data not caUtils import-media. the import took 5m24s - ~3.4 sec/jpg.
to test the possible effect of the regex i deleted the imported object representations in CA, created 40,000 empty files with a .jpg extension in a directory alongside the directories containing the original images in the import folder, then ran the same import again. this bumped the import time up to 8m - ~5 sec/jpg.
to try and rule out variables in the test, i deleted all object representations again, removed the 40k empty .jpg files, and ran the import one more time. it completed in about the same time as the first test, 5m22s.
i haven't used ./caUtils --media-import before and will see if I can figure out how to use and test it as well. i hope this helps clarify things, i can do further testing or provide further details if needed.
95 JPG import:
$ time sudo -u nginx ./caUtils import-data --format=XLSX --mapping=media-import-test --source=../../import/import-media.xlsx -l /tmp -d DEBUG
CollectiveAccess 2.0 (213/GIT) Utilities
(c) 2013-2026 Whirl-i-Gig
Importing TEST7 [30.00M] 100.0% 95/95 ETC: -. Elapsed: 05m:20s [▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩]
Imported data from source ../../import/import-media.xlsx
real 5m24.089s
user 0m0.008s
sys 0m0.007s
95 JPG import w/ 40,000 other files in import folder:
$ time sudo -u nginx ./caUtils import-data --format=XLSX --mapping=mediaimporttest --source=../../import/import-media.xlsx -l /tmp -d DEBUG
CollectiveAccess 2.0 (213/GIT) Utilities
(c) 2013-2026 Whirl-i-Gig
Importing TEST7 [36.00M] 100.0% 95/95 ETC: -. Elapsed: 07m:51s [▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩]
Imported data from source ../../import/import-media.xlsx
real 8m1.014s
user 0m0.041s
sys 0m0.026s