02-08-2021, 11:52 AM | #16 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Calibre loads the DB into memory when it starts. If you make changes it starts with the memory copy, changes it, then writes it to the DB. It does not check if the DB had been changed. If another calibre instance is running then the two memory copies are now out of sync. Changes in the other instance will overwrite those made by the first instance. For a certain class of changes the result will be a database that is not consistent with the rest of the library, sometimes to the point where there is significant data loss. You can post all the "tests" you want. You can believe me or not. Neither changes the underlying fact that running multiple instances of calibre of the same library will eventually destroy your library. Last edited by chaley; 02-08-2021 at 12:22 PM. |
|
02-08-2021, 12:16 PM | #17 | |
Bibliophagist
Posts: 35,428
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
As for not arguing with the creator? You might want to check the calibre FAQs. Look for [URL="https://manual.calibre-ebook.com/faq.html#i-am-getting-errors-with-my-calibre-library-on-a-networked-drive-nas"I am getting errors with my calibre library on a networked drive/NAS?[/URL] for his stance on storing your calibre library on a networked drive. |
|
Advert | |
|
02-08-2021, 12:35 PM | #18 |
Member
Posts: 14
Karma: 10
Join Date: Sep 2014
Device: PC W10pro, Android Moto 5S
|
The problem I started with had little to do with all this and I have been (single-)using Calibre for years from my NAS, indeed storing the database locally. Don't know why anymore, anyway I forgot about it in a way. For the (good?) reason mentioned above I wanted to be able to access the books by way of Calibre from two PC's. Now Chalye tells me the database will be destroyed which doesn't seem correct from my experience. It can become inconsistent as he describes in a later post. As I am still "single-using" chances are small if non-existent. I am willing to take that small risk, probably resulting in deleting and adding a book again. Then I make backups regularly. There seems to be a possibility to run a Calibre server on my Synology NAS. I guess it would be truly multi-user. I would prefer that, but the installation looked too much for my limited Linux knowledge.
|
02-08-2021, 02:23 PM | #19 |
Well trained by Cats
Posts: 29,804
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
'Server' is a single connection to the DB
The 'Server' does the user request management. |
02-08-2021, 07:22 PM | #20 | |
Bibliophagist
Posts: 35,428
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
And the result of database inconsistency can be far more serious than "probably resulting in deleting and adding a book again." At one point while experimenting, I managed to render a calibre database unusable after adding and deleting books on three machines, vacuuming the database and then closing all instances as close to the same time as I could. I did recover most of the library by deleting the metadata.db and then rebuilding the database and ignoring the errors from having duplicate IDs. Your computer, your way of using it. Make sure you keep your backups up to date. |
|
Advert | |
|
02-08-2021, 07:55 PM | #21 | |
Custom User Title
Posts: 8,625
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
02-09-2021, 11:41 AM | #22 | |
the rook, bossing Never.
Posts: 11,161
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Ultimately a server based database is just accessing files, but the client is only accessing a server process and the files are private to it. The Server process will track row and table usage and lock rows or sometimes tables or indexes. Even then, for success, the Client app has to be written multuser aware and do something sensible when it finds it can't recreate a table or update a row or rebuild an index. |
|
Tags |
books.db, export_import |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple Calibre Installations in Windows 10 Program and Features | zakropotch | Calibre | 2 | 03-21-2018 06:08 PM |
Syncing Metadata Between Calibre Installations | JonMoss | Library Management | 15 | 11-27-2013 02:28 PM |
Request Expanding Memory Space For Application Installations | birdspark | enTourage Archive | 4 | 04-11-2011 11:40 AM |