![]() |
#1 |
Member
![]() 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 |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
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.
|
![]() |
![]() |
![]() |
#4 |
Member
![]() 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 |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
how are you making the change?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() 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 |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
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.
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,336
Karma: 8012652
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? |
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 13
Karma: 10
Join Date: Oct 2010
Device: iPad
|
Hi
I have a Mac Pro with 4 Cores and 4 GB of memory. |
![]() |
![]() |
![]() |
#10 |
Member
![]() Posts: 13
Karma: 10
Join Date: Oct 2010
Device: iPad
|
and from local disk 1TB Western digital Green 32mb Cache
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,336
Karma: 8012652
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. ![]() |
![]() |
![]() |
![]() |
#12 |
Member
![]() 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 |
![]() |
![]() |
![]() |
#13 |
Member
![]() 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 |
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,336
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
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. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |