View Single Post
Old 02-06-2014, 07:52 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,435
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
every time you call calibredb, the entire database has to be read from disk and loaded into memory (that is the way calibre works). Therefore, calling calibredb repeatedly is never going to be very fast.

The only way to speed it up is to use the calibre db interface directly via a python script, which will avoid re-reading the db each time. But since your import is a one time operation, if I were you. I'd just let it chug away, it'll get htere eventually. Do something else in the meantime.
kovidgoyal is offline   Reply With Quote