View Single Post
Old 12-14-2008, 10:38 AM   #3
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,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm IIRC adding doesn't involve any operations that scale non-linearly with database size. If you have the source, adding a few

Code:
from time import time
print time.time()
in the _add_books function in gui2/main.py should show you where the slowdown is occurring (you will have to run the GUI using

Code:
calibre-debug -c "from calibre.gui2.main import main; main()"
to see the output
kovidgoyal is offline   Reply With Quote