|
|
#1 |
|
Groupie
![]() ![]() Posts: 159
Karma: 170
Join Date: Feb 2009
Device: PRS-505
|
Adding books to a large database
Is there an easier way than to use the gui to add new books, it is just so long to do (over 1 week to add all those books) and the crashes keeps me restarting over and over. I decided to cut the books into various packs so its easier to do, but even with that some crashes keep preventing me from continuing. Any tips on doing this are welcome, as i am at wits end! thanks! N.b: i'm wondering why is it so long? Isn t there a way to just read the metainfo and simply copy each book into a directory? Updating a mysql db is extremely fast, and its not like the books are being entered entirely in the db, just the metainfo so i'm wondering why its taking so long to just enter the title, author etc into the db. Just a question not criticism .
Last edited by Student1; 04-03-2009 at 09:42 PM. |
|
|
|
|
|
#2 |
|
Provocateur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,859
Karma: 505847
Join Date: Feb 2009
Location: Columbus, OH
Device: Kindle Touch, Kindle 2, Kindle DX, iPhone 3GS
|
Calibre seems to do a linear check for duplicates for every file, and the time it takes to do this seems to grow exponentially. If there were a way to turn off check for duplicates, the import might go faster, but otherwise, no there's no easy way to add new books to a large database.
|
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
Groupie
![]() ![]() Posts: 159
Karma: 170
Join Date: Feb 2009
Device: PRS-505
|
Quote:
I thin you are right, the check for duplicates is causing some problems, turning it off might be a good solution. In any case it really doesn t matter as at the end it asks you if you want to include the duplicates... i always say yes as i deal with various format, so its kind of redundant. Last edited by Student1; 04-03-2009 at 09:53 PM. |
|
|
|
|
|
|
#4 |
|
Connoisseur
![]() Posts: 58
Karma: 12
Join Date: Jan 2009
Device: none
|
While my book collection is not quite as large, I have had the same problem. I just split them into folders by their first letter. I have not yet finished them all - I'm currently on L. It does take a while. And it would be nice if we could turn off the check for duplicates until they are all added - then do a single check for them all. I would also like a way to download the metadata and cover with an "I'm feeling Lucky" Button. Getting so many books at once can take a while, eh?
|
|
|
|
|
|
#5 |
|
Groupie
![]() ![]() Posts: 159
Karma: 170
Join Date: Feb 2009
Device: PRS-505
|
You can say that again, lol ages is putting it mildly
! I split them into 21 sets... i m at set 3... boys its going to take time lol
|
|
|
|
|
|
#6 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,475
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
patches are welcome
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#7 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,036
Karma: 416729
Join Date: Jan 2009
Device: KoboGlo
|
Could some standard defragmentation software help in some way ?
|
|
|
|
|
|
#8 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,475
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not really, it's a pretty simple problem, say you have 20000 books in your database, and are adding 100 new books
Then calibre has to make 20,000 * 100 comparisons to check for duplicates. That's presumably what's slowing it down.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#9 | |
|
curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,453
Karma: 5652044
Join Date: Jun 2006
Location: Pittsburgh, PA USA
Device: Kobo Aura (soon), (soon-to-be-ex)nook, (ex)PRS-700, (ex)PRS-500
|
Quote:
Care to exchange a bit of email? Xenophon |
|
|
|
|
|
|
#10 |
|
Provocateur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,859
Karma: 505847
Join Date: Feb 2009
Location: Columbus, OH
Device: Kindle Touch, Kindle 2, Kindle DX, iPhone 3GS
|
I was just getting ready to suggest hashing myself. But in the meantime an option to turn off check for duplicates would be good enough.
|
|
|
|
|
|
#11 | |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,475
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
This is not a high enough priority for me to spend time optimizing.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
|
#12 |
|
Connoisseur
![]() Posts: 71
Karma: 74
Join Date: Mar 2009
Location: Boston, MA
Device: Kindle 3
|
Thought about maybe switching to an SQLite database?
|
|
|
|
|
|
#13 |
|
Groupie
![]() ![]() Posts: 159
Karma: 170
Join Date: Feb 2009
Device: PRS-505
|
My programming days are like a distant memory... last time i touched some code was on mangos server 2 years ago
! What language is calibre being programmed on just for fun? Who knows might check it if someone doesn't beat me to it!
Last edited by Student1; 04-05-2009 at 01:55 PM. |
|
|
|
|
|
#14 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,752
Karma: 4233896
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
I think that is what he is already using.
BOb
__________________
Never ascribe to malice that which is adequately explained by incompetence. --Napoleon Bonaparte |
|
|
|
|
|
#15 |
|
Connoisseur
![]() Posts: 71
Karma: 74
Join Date: Mar 2009
Location: Boston, MA
Device: Kindle 3
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "Database Disk Image is malformed" when connecting to Calibre after adding new books | djorkboy | Kobo Reader | 13 | 10-07-2010 08:47 PM |
| "Database Disk Image is malformed" when connecting to Calibre after adding new books | djorkboy | Calibre | 1 | 10-06-2010 08:59 PM |
| how to remove database names with no books? | setherd | Calibre | 3 | 02-23-2010 09:26 PM |
| 6.11 problem with adding large book collection | acekyoto | Calibre | 25 | 10-01-2009 12:25 PM |
| Adding "Wanted" books to Calibre database? | itimpi | Calibre | 6 | 11-26-2008 03:14 PM |