Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2010, 08:39 AM   #1
Evilwarning
Member
Evilwarning began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: iPad
Calibre Internal Process While Updating

Hi

Would it be possible to tell what are the steps that calibre does when we update a specific field. For Example if i update the cover or details, does it only update the database or does any sorting, etc ?

Thank you
Evilwarning is offline   Reply With Quote
Old 12-12-2010, 10:11 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Evilwarning View Post
Hi

Would it be possible to tell what are the steps that calibre does when we update a specific field. For Example if i update the cover or details, does it only update the database or does any sorting, etc ?

Thank you
It varies, so you'll need to be more specific. When metadata is changed, the metadata.db SQL database is updated and the metadata.opf file is updated for that record. Updating the database may cause certain SQL triggers to fire, and that may generate sort fields, cause the records to be moved (if title or author change) etc.
Starson17 is offline   Reply With Quote
Advert
Old 12-12-2010, 10:25 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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
depends on exactly how you are updating. A bulk update will resort, a in list update or a metadata single update will not.
kovidgoyal is offline   Reply With Quote
Old 12-12-2010, 12:56 PM   #4
Evilwarning
Member
Evilwarning began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: iPad
I have a large collection of books and every time i make a change to the metadata 10-15 seconds the user interface is unavailable.

to test i have loaded 500 books into a empty library and runs really fast and response, i assume that the system must not be just updating the database but must be doing some operations. Something besides updating the opf file and the database? otherwise would be as response in 20000 as is in 500.

Just talking on the case of updating one book at the time.

Same thing happens when merging book titles.

Thank for your help
Evilwarning is offline   Reply With Quote
Old 12-12-2010, 01:19 PM   #5
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,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
how are you making the change?
kovidgoyal is offline   Reply With Quote
Advert
Old 12-12-2010, 04:37 PM   #6
Evilwarning
Member
Evilwarning began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: iPad
E for the details page and than updating ISBN or/and Cover. But i see the effect on changing any data.

I see the effect too when i just change the author details directly in the datagrid
Evilwarning is offline   Reply With Quote
Old 12-12-2010, 09:36 PM   #7
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,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
strange, 15-20 secs seems excessive, open a ticket for it and I'll look into it when I have the time.
kovidgoyal is offline   Reply With Quote
Old 12-13-2010, 04:57 AM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
My guess is that the time is in tag_view.recount. It calls (indirectly) db.get_categories(), which takes time proportional to the number of tags/authors/publishers, etc. If a) there are lots of items, and b) not enough memory for sqlite to cache the DB, then get_categories will be slow.

@evilwarning: what sort of machine are you running calibre on? In particular, how much RAM do you have, and is your DB on a local disk or a NAS?
chaley is offline   Reply With Quote
Old 12-17-2010, 03:35 AM   #9
Evilwarning
Member
Evilwarning began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: iPad
Hi

I have a Mac Pro with 4 Cores and 4 GB of memory.
Evilwarning is offline   Reply With Quote
Old 12-17-2010, 03:36 AM   #10
Evilwarning
Member
Evilwarning began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: iPad
and from local disk 1TB Western digital Green 32mb Cache
Evilwarning is offline   Reply With Quote
Old 12-17-2010, 08:44 AM   #11
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I don't see why with that configuration you should be seeing the times you do, unless you have zillions of tags and authors. That said, the next release has changes that will help. First, closing the tag pane will stop all the work needed to update it. Second, the time to update the tags pane has been reduced by a factor between 5 and 6 times.

We will see whether these helps you, or whether your machine is haunted.
chaley is offline   Reply With Quote
Old 12-17-2010, 10:19 AM   #12
Evilwarning
Member
Evilwarning began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: iPad
well, 20000 books, around 16000 tags. I'll try closing the tags pane

Thank you for your help
Evilwarning is offline   Reply With Quote
Old 12-17-2010, 03:19 PM   #13
Evilwarning
Member
Evilwarning began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: iPad
Hi

Tested removing the Tag Browser, didn't have any effect.
I Upgraded to 0.7.34 to check the improvements you mentioned, now works FAST, but like FAST and i mean FAST, no delay on updating metadata, on merging. Just perfect!!!

Thank you very much for all your work and effort
Evilwarning is offline   Reply With Quote
Old 12-17-2010, 04:26 PM   #14
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Evilwarning View Post
Tested removing the Tag Browser, didn't have any effect.
I Upgraded to 0.7.34 to check the improvements you mentioned, now works FAST, but like FAST and i mean FAST, no delay on updating metadata, on merging. Just perfect!!!

Thank you very much for all your work and effort
You are welcome. Glad to hear it helped.

The tag browser open/closed change also appeared in 0.7.34, so closing it wouldn't have had any effect until you upgraded. After upgrade, you might be able to see the difference between the browser open and closed. In one of my large library tests, I could see around a 1/2 second difference, enough to be very noticeable but not enough to worry about. But as my library had 5,000 tags instead of 16,000, you might see more of a difference.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suddenly Calibre can't process html saxondawg Calibre 10 09-12-2010 03:20 PM
embeding fonts to epubs in Calibre - automated process gulo Calibre 3 01-27-2010 01:23 PM
calibre-parallel process uses large amount of Win32 Handles CheriePie Calibre 5 03-03-2009 01:03 AM
Upgrading to a newer calibre version - The Process? Dr. Drib Calibre 4 06-22-2008 05:06 AM
Exact process for updating BookDesigner 4.5 to 5.0? Dr. Drib Sony Reader 1 02-02-2007 11:05 PM


All times are GMT -4. The time now is 05:25 PM.


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