View Single Post
Old 07-09-2016, 04:06 PM   #1
sealbeater
Banned
sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.
 
Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
Tips to speed up adding books?

So, I'm a somewhat new user of calibre and I'm currently using the command line to add books. I have quite a few and I understand that it isn't a good idea apparently to use tools like parallel to write multiple entries to the calibre db. I'm currently using a for loop that does a find on the available formats that calibre can import and after importing, deletes the file.

for I in `find . -type f -name "*.azw" -o -name "*.azw3" -o -name "*.azw4" -o -name "*.chm" -o -name "*.djvu" -o -name "*.rb" -o -name "*.snb" -o -name "*.tcr" -o -name "*.epub" -o -name "*.lit" -o -name "*.lrf" -o -name "*.mobi" -o -name "*.pdf" -o -name "*.rtf" -o -name "*.prc" -o -name "*.pdb" -o -name "*.txt" -o -name "*.doc"` ; do calibredb add --duplicates "$I" && rm -v "$I"; done


So, this works fine but I was wondering if anyone had done anything interesting to either speed up the process or multithread it somehow. I had a friend who used a hadoop cluster to speed up jobs, I was wondering if anyone had done something similar with calibre.
sealbeater is offline   Reply With Quote