![]() |
#1 |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
[Kobo] Is there a way to disable database writes?
To be completely safe, I would disable any writes to the device database by Calibre, like it acts when the firmware is a newer, and so not yet supported, version. Is there an option or any other way to do this?
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I believe the only writes are done when calibre updates series info and collections on the device.
Frankly, IMHO, there is just a great deal of unwarranted paranoia regarding calibre and the Kobo database. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
Maybe, but I I get a db corruption after deleting books using Calibre. It could be a coincidence, but I want to be sure about it. I think that if the device stores a false fw version, Calibre will disable the database support. Where Calibre gets this information?
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Unfortunately, you are SOL. While YES, the driver does check the DB version, if it is an unsupported one and you have elected NOT to bypass the safety check, it will disable eBook deletion.
(And yes, I was wrong; eBook deletions DO update the database). |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
The KoboTouch driver will updated the database at the following times:
- During the initial sync to while checking shelves and series info (only if options are set) - Deleting a book - Resending a book if the file size changed If you are using the KoboTouchExtendedDriver, there is one other place as well, but it will rarely happen. The first two can be stopped through the driver options. Or changing the metadata management to manual. The other two can't be stopped in the driver. If you want to prevent any updates to the database, the only way to do this is to disable the driver and connect to the device as a folder. This will find the books on the device by scanning the directories. But, you won't be able to do the shelf or series management. I have seen reports that deleting a book caused a database corruption, but not for a while. I would be interested in seeing a debug log when it happened to try and work out what is happening. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
David; just wondering about the Kobo Utilities plugin (and thought it might fit in here).
I know that when it goes to do a backup, it also does a validity check first. However, if you attach it multiple times a day, the validity check is only done the first time. Any thought to either provide a means in Kobo Utility to do a validity check automatically on connect OR to add that as an option to the main driver itself? If added to the driver itself I could see that being an added "safety" measure, and would ensure that the database was shown to be intact BEFORE the driver made any changes to it. |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Peter: Not a bad idea. I have thought of adding a an option to backup on every connect. That is probably overkill, but I'm sure someone would want it. An automatic database check could be handy. If it gets added to the utilities, it won't get run until after the two jobs for the driver. But it could be run as the first of the other jobs.
Adding it to the driver might be a good idea. The question becomes which of the two jobs and what to do if it finds errors. |
![]() |
![]() |
![]() |
#8 | |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
Quote:
PS: I noticed that after a delete, "New" informations are not updated. For "New" informations I mean the tile that it's added when 1 or more books are added to the device. If there's only a new book, clicking on the tile will open the book, otherwise Library will be opened. The covers of the new books are displayed in the tile. If some books are deleted by Calibre, and there was a "New" tile with some of deleted books, their covers are not removed from the tile. On the contrary an empty image is displayed. Tile is not dismissed even if all the books listed by the tile are removed. I suppose Kobo reads some other information about deleted books that Calibre does not write in the database. Anyway I don't know if this is somewhat related to corruption. Last edited by Lucas Malor; 07-28-2014 at 07:18 AM. |
|
![]() |
![]() |
![]() |
#9 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#10 |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I find this to be quite amusing.... Someone concerned about calibre writring to the Kobo database is now interested in how to remove entries from the table used to populate the matrix entry for new books
![]() |
![]() |
![]() |
![]() |
#12 |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
There's a possibility that the problem is caused by nickel itself. Since db data are not as it expects, it could do something wrong and do a transaction without close it. I do not bet on it, but you never know.
|
![]() |
![]() |
![]() |
#13 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Yes, it is a BLOB with what I assume is serialized data in it. I can see some info in them, but not enough to easily decode it. Or have a real desire to do so.
Quote:
But, when do you see the corruption? If it is while the delete is done, then it isn't likely to be nickel. If it is the next connection, that might be different. |
|
![]() |
![]() |
![]() |
#14 |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
At reboot. Not all books are detected, and covers are not displayed.
|
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
So, calibre is not reporting an error but when you disconnect the device shows signs of a corrupt database. Have you checked at the next connection and see that it is corrupted? Have you tried checking the database after the delete from calibre?
I had to check back. You posted a database backup mechanism a while ago. Are you still using that? Is there any chance it might be getting in the way? |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo Kobo glo and calibre 1.25.0 : kobo database version not suported ? | gperrot | Kobo Reader | 2 | 07-13-2014 10:24 AM |
Glo Kobo Glo now has ads/offers/etc? How to disable? | robertiv | Kobo Reader | 1 | 09-20-2013 01:44 AM |
Kobo desktop v1.7.5 corrupts database on original Kobo | Greenmantle | Kobo Reader | 5 | 11-24-2010 07:23 PM |
Calibre and Kobo database | crowez | Calibre | 1 | 10-15-2010 08:24 PM |
Very slow database writes | LessPaul | Calibre | 4 | 08-03-2009 10:51 AM |