10-04-2014, 08:51 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2014
Device: Barnes & Noble Nook
|
Calibre database backend
I've been trying to find out of a while now if there are any plans (or work in progress) for allowing Calibre to use a different database than SQLite; I didn't have much success , maybe someone can answer this for me?
I might be able/willing to help such an effort. As a side note, for me, the database is one of the major issues of Calibre: I have a large collection of about 15000 books, *lots* of tags, authors, etc. and almost all operations involving the database are slow: searching, adding new books, e.g. right now calibre is frozen for >15 minutes after trying to delete about 1000 tags at once... (and no, my computer is not old/slow, has plenty of ram, disks defragged, etc. ) |
10-04-2014, 09:10 AM | #2 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, there are no plans, and I highly doubt your speed issues are anything to do with the database. Search a little on this forum and you will find plenty of tips on how to improve your performance in calibre. The most common being:
1) exclude your calibre library folder from antivirus 2) hide the tag browser 3) Dont use custom columns that are built from other columns using templates 4) Restrict what columns unprefixed searches search via preferences->Searching Just anecdotally, on my machine adding a book to a library containing 50,000 books completes in under five seconds, and adding a book involves searching through all existing books for duplicates. Last edited by kovidgoyal; 10-04-2014 at 09:12 AM. |
Advert | |
|
10-04-2014, 09:32 AM | #3 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2014
Device: Barnes & Noble Nook
|
Quote:
My gut feeling is that the slowness simply comes from the large amount of books, authors and tags . At this moment my collection has 14689 books, 6426 authors and 5315 tags. I'm trying to clean the tags up and I delete them in batches of 100-200 using the Manage Tags feature; each time the whole GUI freezes up for 1-2 minutes (not complaining about the fact that the operation seems to take place on the GUI thread, since Calibre shows up as (not responding), but about the fact that it takes long to make changes on the database). As for imports, I import folders at once and it seems to take long for PDF files. I'll try to do some profiling, maybe I can figure out what's going on. As a side note, any idea why Calibre is doing these operations while importing books? |
|
10-04-2014, 09:47 AM | #4 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's not a question of showing tags, it is closing the tag browser, the entire left panel in calibre.
And trust me, your problems have nothing to do with the database. There's no way I can convince you of that in plain text, so feel free to instrument the code, calibre is open source |
10-04-2014, 09:53 AM | #5 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And as for deleting tags in bulk being slow, that is probably because the manage tags dialog deletes them one at a time rather than in bulk. (It was written a long time ago before the bulk manipulation APIs were available in the new calibre database backend).
|
Advert | |
|
10-04-2014, 10:46 AM | #6 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This commit: https://github.com/kovidgoyal/calibr...1e7237fc50c454
should greatly improve the performance of deleting/renaming large numbers of items via the Manage dialog |
10-04-2014, 11:47 PM | #7 | |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
10-08-2014, 10:12 AM | #8 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2014
Device: Barnes & Noble Nook
|
Quote:
|
|
10-09-2014, 05:28 PM | #9 |
Reader
Posts: 46
Karma: 162
Join Date: Nov 2010
Location: Hannover
Device: Kindle KB and Kindle Fire HD 8.9
|
You can speedup Calibre when you put the Library on an SSD.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New database backend - testers needed | kovidgoyal | Calibre | 314 | 08-23-2013 06:09 AM |
calibre V0.9.41 released, includes new database backend for testing | Alexander Turcic | Calibre | 0 | 07-28-2013 02:47 AM |
NewsBeamer Android App that uses calibre as a backend | duluoz | Related Tools | 6 | 05-23-2013 08:19 AM |
shared backend database? | perler | Calibre | 4 | 01-26-2012 05:37 AM |
Building calibre backend only? | jesse | Calibre | 2 | 03-15-2009 05:32 PM |