Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 11-10-2023, 02:41 AM   #1
Sanchezct89
Junior Member
Sanchezct89 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2023
Device: kobo libra 2
Smile Import large quantities of epubs to calibre

Greetings to all friends.

I am new to the experience and management of Calibre as my online particle library.

I have a large collection of epubs built over many years (more than 25,000 epubs).

Is there a way to add them to the library quickly? Because when I try to add the folder where I have them, it locates them but it takes an average of 10-15 seconds per book and of course, an average of 13 seconds for the 25,000 epubs, we are talking about 325,000 seconds = 5416.6 hours = 90.2 hours = 3.76 days. Almost 4 days to add the library! Do you know any way to add it faster?

Thank you all very much and happy reading!
Sanchezct89 is offline   Reply With Quote
Old 11-10-2023, 03:23 AM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,716
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
You could try the command line calibredb add ==>> https://manual.calibre-ebook.com/gen...bredb.html#add

But I don't know that it would be substantially faster.

BR
BetterRed is offline   Reply With Quote
Advert
Old 11-10-2023, 09:59 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,046
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
And Faster is not always better (or safer ).
Do chunks (~25 or less), This stores everything at the end of the task. A crashed task has no guarantee what the state will be.

fix those issues (normalize Authors, titles as you go. Quality check Plugin ) ) as you find. There will be issues

It took me a long time to document my 900+ Paperbacks into Calibre (some did not have ISBN they were so old )

(I move the Processed Source folder to an 'Archive' drive, which also frees up drive space for the Library )
theducks is offline   Reply With Quote
Old 11-10-2023, 11:08 AM   #4
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 439
Karma: 145424
Join Date: Dec 2017
Device: Kobo
A realy quick way is to use the "auto-add from folder" feature.

Go to Preferences>Adding book>Automating adding and set a folder to target (need a restart)
After that, Calibre will be automaticly read and add any eBook in your target folder to the current Calibre library, then delete the original file from the folder. If your books is splited on several folder, move then to the target folder (your OS will be move file faster than Calibre read/add/delete the eBook).
Once you've added all your books, don't forget to disable the "auto-add" by clear the target folder field.

This solution are 2 major flaw: The book are added in mass without checking, so that can product a lot of wrong metadata that need to be correted AND the original book are permanently deleted by Calibre after being added in the library, so be undo available.
So that not the safer way, but probably the most faster.
The user interface of Calibre is so practical, convenient and efficient, that if your are well prepared, with a good metodologie, is can be a realy good solution.

Last edited by un_pogaz; 11-10-2023 at 11:13 AM.
un_pogaz is offline   Reply With Quote
Old 11-10-2023, 01:35 PM   #5
Sarmat89
Fanatic
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 516
Karma: 2268308
Join Date: Nov 2015
Device: none
Adding EPUBs is so slow due to excessive disk I/O. Putting the TEMP directory on a RAM disk should help.
Sarmat89 is offline   Reply With Quote
Advert
Old 11-10-2023, 04:05 PM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,108
Karma: 168983686
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
When I compared adding 1000 ePubs from a spinning rust drive compared to adding them from a NVMe PCIe 4.0 drive, the speed difference was negligible.
DNSB is offline   Reply With Quote
Old 11-13-2023, 01:36 PM   #7
kjdavies
Zealot
kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.
 
Posts: 112
Karma: 53342
Join Date: Jun 2013
Device: Sony PRS-600
Quote:
Originally Posted by BetterRed View Post
You could try the command line calibredb add ==>> https://manual.calibre-ebook.com/gen...bredb.html#add

But I don't know that it would be substantially faster.

BR
It is unlikely to be be faster. Each time you call calibredb, it loads the library. The GUI loads the library once and processes each file in turn.

I am a little startled at the long load times, though. I have quite-large libraries (some number in the hundreds of thousands -- I use it to manage publisher and game dev resources) and even then it doesn't take so long... even running off an external drive.

edit: That assumes you're loading one file at a time. I don't do that and had forgotten you can have calibre add by directory (even recursively). That would not have the same overhead per file, it should behave closer to the GUI upload.

Last edited by kjdavies; 11-13-2023 at 01:39 PM. Reason: forgot calibredb can bulk load
kjdavies is offline   Reply With Quote
Old 11-13-2023, 01:41 PM   #8
kjdavies
Zealot
kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.
 
Posts: 112
Karma: 53342
Join Date: Jun 2013
Device: Sony PRS-600
Quote:
Originally Posted by Sanchezct89 View Post
Greetings to all friends.

I am new to the experience and management of Calibre as my online particle library.

I have a large collection of epubs built over many years (more than 25,000 epubs).

Is there a way to add them to the library quickly? Because when I try to add the folder where I have them, it locates them but it takes an average of 10-15 seconds per book and of course, an average of 13 seconds for the 25,000 epubs, we are talking about 325,000 seconds = 5416.6 hours = 90.2 hours = 3.76 days. Almost 4 days to add the library! Do you know any way to add it faster?

Thank you all very much and happy reading!
Are all the files in a single folder? You don't say what OS you're using, but Windows does not like having more than about a thousand files in a directory. I've built systems around breaking that up for performance reasons.

What happens if you try loading from a folder with, say, a hundred files in it?

If that makes a difference and you're storing everything in one folder, perhaps break it up into folders of 500-1000 files instead.
kjdavies is offline   Reply With Quote
Old 11-13-2023, 01:44 PM   #9
kjdavies
Zealot
kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.
 
Posts: 112
Karma: 53342
Join Date: Jun 2013
Device: Sony PRS-600
Quote:
Originally Posted by un_pogaz View Post
A realy quick way is to use the "auto-add from folder" feature.

Go to Preferences>Adding book>Automating adding and set a folder to target (need a restart)
After that, Calibre will be automaticly read and add any eBook in your target folder to the current Calibre library, then delete the original file from the folder. If your books is splited on several folder, move then to the target folder (your OS will be move file faster than Calibre read/add/delete the eBook).
Once you've added all your books, don't forget to disable the "auto-add" by clear the target folder field.

This solution are 2 major flaw: The book are added in mass without checking, so that can product a lot of wrong metadata that need to be correted AND the original book are permanently deleted by Calibre after being added in the library, so be undo available.
So that not the safer way, but probably the most faster.
The user interface of Calibre is so practical, convenient and efficient, that if your are well prepared, with a good metodologie, is can be a realy good solution.
A third limitation of this approach is that calibre loads the files into whatever library is open. Unless things have changed since I last did this, you can't have different libraries monitoring different folders.

Also, I found it can affect system performance, if there are a lot of files to be processed. I ended up writing a script that would copy files to be loaded into the intake folder (and move the originals to a 'these have been done' folder) to help limit this. And to make it easier to interrupt (stop the manager script so it no longer moves files, and the autoload would run out of files to upload).
kjdavies is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying large epubs xrm0 Apple Devices 7 01-27-2013 07:36 PM
Onyxboox M92 and very large epubs JohnGalt Onyx Boox 2 09-15-2012 02:32 AM
Touch Adobe Digital and Calibre. Do I need to import my epubs to both of them? polli Kobo Reader 34 11-25-2011 04:38 AM
Hangs during large import Ernisius Calibre 4 11-06-2010 08:17 AM
Unable to import large db keep getting an error Student1 Calibre 20 02-26-2009 11:02 PM


All times are GMT -4. The time now is 06:01 PM.


MobileRead.com is a privately owned, operated and funded community.