Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-07-2013, 05:14 PM   #1
N13L5
tenjooberrymuds
N13L5 began at the beginning.
 
Posts: 58
Karma: 12
Join Date: Sep 2010
Device: Android
Question 5 hours updating metadata after downloading meta data for 300 books on i-3770k

I'm puzzled,

I used to update a lot of meta data on an extremely crappy netbook on an older version of Calibre in 2010, and it used to apply it without noticeable delay, meaning as soon as I hit the 'next' button, it was applied and showing me the next book instantly.

So I'm extremely surprised the current version seems so slow on an exceedingly fast system, that encodes a 1080p movie in ~20 minutes.

Apparently, the current version of Calibre lets you make your changes for all selected books without applying them, until you reach the end and only then it starts...

This design is a bit precarious, cause if you edited Metadata for 300 books and then your system crashes or electricity goes out, before it completes all of them, you just lost many hours of work. So now my system is grinding away for hours, even though its pretty much idle...

Has anyone else experienced this issue? I'm close to 5 hours in and its at 64%...

I only have the browser running and both CPU and Memory are less than 20% commited.
N13L5 is offline   Reply With Quote
Old 06-07-2013, 05:18 PM   #2
N13L5
tenjooberrymuds
N13L5 began at the beginning.
 
Posts: 58
Karma: 12
Join Date: Sep 2010
Device: Android
The new Metadata window is really nice though and all the new download options are awsome. 98% of the time it gets the correct stuff too...
N13L5 is offline   Reply With Quote
Advert
Old 06-07-2013, 06:19 PM   #3
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
I don't think that the computer is the limiting factor at all, more your Internet connection and the response time for the metadata source(s) you have active.

The metadata is only updated in the metadata.db file, and that's not demanding at all.
Adoby is offline   Reply With Quote
Old 06-07-2013, 06:45 PM   #4
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: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Adoby View Post
I don't think that the computer is the limiting factor at all, more your Internet connection and the response time for the metadata source(s) you have active.

The metadata is only updated in the metadata.db file, and that's not demanding at all.
Adoby
Updating metadata of 300 books, will mark those records. At low priority, Calibre will start backing those up (metadata.opf) in the books folder.
You can see the backlog: right-click Calibre Library: Library Maintenance: Library Metadata Backup Status.
I think one of the sources is having troubles (?Goodreads?)
theducks is offline   Reply With Quote
Old 06-07-2013, 06:58 PM   #5
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: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@N13L5 The new bulk metadata has 3 stages - gather, review and update - I'm assuming you're referring to the last one.

I've not done that many books in a batch. But I've recently been doing batches of 30-50 books on a friends 7 year old Tosh Portege (dual Core 1.2GHz Centrino, 2GB of RAM) running Vista and Calibre 0.9.3n 32bit. I've not noticed the sort of performance you seem to be getting on those batch sizes, the update phase typically takes < 5 minutes.

And I'm usually running Firefox, Open Office Writer and almost 30 tray applets. I don't know if its relevant but I run calibre jobs at Low Priority (Pref->Behave) and One at Time (Pref Miscellaneous). My perception is that those settings give me better performance.

At a glance I don't think calibre accesses the internet in the update phase, my up/down network indicators show minimal activity, never more than 2.00kb/s and most of the time at 0.00 - assuming there's no other activity (browsers, ftp etc).

Looks to me like some sort of resource contention, try shutting down other applications - what OS are you on?

BR
BetterRed is online now   Reply With Quote
Advert
Old 06-07-2013, 07:44 PM   #6
N13L5
tenjooberrymuds
N13L5 began at the beginning.
 
Posts: 58
Karma: 12
Join Date: Sep 2010
Device: Android
Quote:
Originally Posted by Adoby View Post
I don't think that the computer is the limiting factor at all, more your Internet connection and the response time for the metadata source(s) you have active.
My internet is very fast, but that can't be it anyway, because I'm not waiting on the downloads.

The steps go like this:

1) download metadata and book covers for 300 books. (that took less than 30 minutes, I didn't measure it exactly)

2) go through all the books, pick or correct any of the Metadata.

3) After you hit 'next' after the last book, it automatically goes to apply the metadata. There is no more downloading at this point. This is the process that took almost 8 hours to complete.
N13L5 is offline   Reply With Quote
Old 06-07-2013, 07:52 PM   #7
N13L5
tenjooberrymuds
N13L5 began at the beginning.
 
Posts: 58
Karma: 12
Join Date: Sep 2010
Device: Android
Talking

Quote:
Originally Posted by BetterRed View Post
@N13L5 The new bulk metadata has 3 stages - gather, review and update - I'm assuming you're referring to the last one.
I believe your entire Post is correct on every point.

I was not running anything but browser and skype in the background during that time...

And this computer is fast enough, where I can have 2 browsers with 100 tabs open, plus word, excel, skype, viber, and a few utilities at the same time while playing a demanding computer game like crysis or gw2 or skyrim.

Resource contention is a good idea, I just can't detect anything.

I will follow your advice for changing the Calibre settings and try with 50 books next.

Thanks for your detailed answer
N13L5 is offline   Reply With Quote
Old 06-07-2013, 07:56 PM   #8
N13L5
tenjooberrymuds
N13L5 began at the beginning.
 
Posts: 58
Karma: 12
Join Date: Sep 2010
Device: Android
Quote:
Originally Posted by theducks View Post
Adoby
Updating metadata of 300 books, will mark those records. At low priority, Calibre will start backing those up (metadata.opf) in the books folder.
You can see the backlog: right-click Calibre Library: Library Maintenance: Library Metadata Backup Status.
I think one of the sources is having troubles (?Goodreads?)
Excellent suggestion, I will check into that too!

thanks!
N13L5 is offline   Reply With Quote
Old 06-07-2013, 08:36 PM   #9
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: 43,870
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Disable your antivirus. There's no way that updating metadata on 300 books can possibly take 8 hours unless you have some external program interfering or your library is ona very slow disk, like a networked disk.
kovidgoyal is offline   Reply With Quote
Old 06-07-2013, 11:39 PM   #10
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: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
Adoby
Updating metadata of 300 books, will mark those records. At low priority, Calibre will start backing those up (metadata.opf) in the books folder.
You can see the backlog: right-click Calibre Library: Library Maintenance: Library Metadata Backup Status.
I think one of the sources is having troubles (?Goodreads?)
@theducks - with 300 books the reading of the updates from the database by the backup process maybe contending with the process that is updating the database with the remaining reviewed downloads.

When does the writing of the database changes to the .opf files (backing up) start in this scenario - after the first update is applied or after they all been applied. If former maybe database contention is a possibility.

I'm sure I've seen a post in relation to one of the plugins that suggests limiting the number of books in a batch to - 50ish.

BR
BetterRed is online now   Reply With Quote
Old 06-08-2013, 12:12 AM   #11
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: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
BR I don't know when it starts, but it is a throttled task so as to not impact normal use.
theducks is offline   Reply With Quote
Old 06-08-2013, 12:34 AM   #12
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: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
BR I don't know when it starts, but it is a throttled task so as to not impact normal use.
Aaaah, but is the applying of 300 updates 'normal use' - the background task that writes the new opf files yields if I start doing something, but does it yield if another task or thread is doing something - I dunno either.

We'll have to wait for the Magister Ludi to enlighten us.

BR
BetterRed is online now   Reply With Quote
Old 06-08-2013, 01:29 AM   #13
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: 43,870
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The background task always yields. It sleeps after doing one opf.
kovidgoyal is offline   Reply With Quote
Old 11-16-2014, 03:54 AM   #14
Elwynd02
Member
Elwynd02 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Nov 2014
Device: Nexus 7
Waaaaah! This made me very sad. I think this probably means my reviewing has been lost. (I accidentally closed the 'review metadata' window about halfway through. Tedious to do in the first place, really annoying to have to re-do!)

Would be really good it if could write the changes after a batch of 10 or something.
Elwynd02 is offline   Reply With Quote
Old 11-16-2014, 04:53 AM   #15
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: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@Elwynd02 - you're conflating when the database (metadata.db) is updated after a bulk metadata download and when the backup metadata (metadata.opf) for each book gets rewritten.

As I've posted in your other thread - I believe the database is updated when the review is complete, that happens lickety-split.

The rewriting of the metadata.opf files is slow in order that it doesn't hog resources, but if you close calibre down before its rewritten everything, then when you next start calibre the rewriting of the metadata.opf files will resume.

The need to rewrite the metadata.opf files can be triggered by many things, some are obvious - such as downloading metadata, others not so obvious - removing a tag will trigger an update to every book that uses the tag.

BR
BetterRed is online now   Reply With Quote
Reply

Tags
calibre 64-bit, meta data, slow


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error updating meta data Sharkslayer Library Management 1 04-01-2013 05:48 AM
uploaded books are corrupt and missing meta data PeterKennedy Calibre 1 10-10-2012 01:14 AM
Saving Meta-data to Books without conversion Theeo123 Calibre 14 12-09-2010 07:42 PM
Updating Meta Data/Info of book on Kindle AutumnDreamer Calibre 5 07-24-2010 05:00 PM
Add books - Meta Data format wwaldo Calibre 2 03-17-2010 07:38 PM


All times are GMT -4. The time now is 12:28 AM.


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