|
|
Thread Tools | Search this Thread |
12-13-2017, 07:27 AM | #1 |
Connoisseur
Posts: 87
Karma: 1234
Join Date: Sep 2012
Device: Onyx Boox M92
|
sudden and remarkable slowdown after user stopping backup of metadata
Hi All,
despite the suggestion of the manual, I have been putting my bigger and bigger (40+k) ebook collection on a (single user) NAS and so far things have gone fine (some but acceptable delay in retrieving books and saving edited metadata). Last time, however, I had the unhappy idea to make a backup of the database via Library Metadata Backup Status. Once I realised that the backup process would have to be extremely long I stopped it. Since then on, I found that any access to NAS library has been hugely delayed (every and each action to GUI, including list scrolling is painful and always [not reponding] remark appears beside library name in the window tool bar. Moreover, I notice that whenever I hold the library open, NAS drives are constantly in activity, which does not end overnight, even when I don't do anything. Therefore I suspect that anyway backup internal processes have been not stopped actually. No trouble at all when I access library through a local USB external drive, but it is not practical. In the NAS arragnement, router has been rebooted many times and cables are fine. Any clue to fix this newer trouble of mine? |
12-13-2017, 09:24 AM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Metadata backup writes individual OPF files to the library, so if your library is ona slow drive, it will be very slow. ANd stopping it wont help, as it will automatically restart (calibre tries hard to make sure your db is backed up).
Your best bet is to temporarily move your library to a fasst disk. DO the backup and then move it back. |
Advert | |
|
12-13-2017, 11:07 AM | #3 |
Well trained by Cats
Posts: 29,806
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
NAS / cloud drives are not supported.
The Calibre Library use a Transactional model. Files are written, data base updated, old files deleted (when renamed) Network caching and delays can hamper or even lose a step. A modern USB2 or 3 direct attached hard drive should be able to keep pace with most of Calibres common operations |
12-13-2017, 12:31 PM | #4 |
Connoisseur
Posts: 87
Karma: 1234
Join Date: Sep 2012
Device: Onyx Boox M92
|
Thanks for diagnosis (though there is no sign that it is backup'ing besides HDD activity, unfortunately) and suggestion provided, Kovid!
Then it has been as I suspected, Calibre WILL eventually do the backup. It was INDEED a serious, unforgivable mistake to request a backup for a NAS library with 43520 books! Yes, sir, I will backup the library (due its value it is often synched) and work in the copy, then backup it again! As your smart suggestion of setting the env CALIBRE_OVERRIDE_DATABASE_PATH variable, I wonder if it would be possible to change machinery so that it works on ONE certain library only. Last edited by RotAnal; 12-13-2017 at 12:56 PM. |
12-13-2017, 02:25 PM | #5 | |
Well trained by Cats
Posts: 29,806
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:
|
|
Advert | |
|
12-13-2017, 02:42 PM | #6 | |
null operator (he/him)
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@RotAnal - if you can do the 'database backup' via calibredb backup_metadata command you should find it's a lot faster. By design, the option in the GUI does it as a very low priority 'background' task, it typically chugs along at about a book a second, whereas the command line option does it as a normal priority 'foreground' task and executes as fast as it can.
Quote:
At server <libraryName>\metadata.db files reference ...\Metadata\<libraryName>.metadata.sqlite files at workstation. This may or may not be doable on your NAS and workstation setup. I changed the extensions to .sqlite because Windows regards .db files as something 'special' - thumbs.db and all that jazz. Obviously the server side symlinks must conform to calibre's expectations, so they retain the metadata.db name. On Windows the name of a symlink and its target do not have to be the same, I have a vague recollection from aeons ago that on another OS they did have to be the same. BR Last edited by BetterRed; 12-13-2017 at 03:17 PM. Reason: to get rid of the spaces Vbully inserts into long strings - grrrrhh |
|
12-14-2017, 04:25 AM | #7 | ||
Connoisseur
Posts: 87
Karma: 1234
Join Date: Sep 2012
Device: Onyx Boox M92
|
Quote:
Quote:
Thanks again |
||
12-14-2017, 04:47 AM | #8 | ||
null operator (he/him)
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
If you could capture the actual text and post it here someone could probably work out what's going on. Quote:
BR |
||
12-14-2017, 01:54 PM | #9 | |
Well trained by Cats
Posts: 29,806
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:
(it is fun to cleanup after this happens ) |
|
12-17-2017, 05:35 AM | #10 | |
Connoisseur
Posts: 87
Karma: 1234
Join Date: Sep 2012
Device: Onyx Boox M92
|
Quote:
Still, the opportunity to keep the metadata.db file local to the notebok, while leaving actual library in the NAS would be desirable, and I do hope that Calibre developers will implement that eventually through Calibre adjustable, internal pointers. As I wrote before, using a global env variable is not very practical when one has many, different libraries. Last edited by RotAnal; 12-17-2017 at 05:39 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
speed up metadata backup | ilovejedd | Library Management | 7 | 08-29-2013 10:27 PM |
Stopping Calibre rechecking library metadata | Mythlandia | Library Management | 9 | 02-28-2013 02:58 PM |
metadata backup | silverraven | Calibre | 3 | 03-06-2012 07:56 PM |
Metadata Backup? | Mountainjack | Calibre | 2 | 07-17-2011 04:42 PM |
Sudden big slowdown in page turn time | KlondikeGeoff | Sony Reader | 16 | 06-25-2011 10:15 PM |