![]() |
#31 |
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
|
One of the performance problems is opening the shelf list. As far as I can tell it is purely about building that list. It doesn't matter where the books are, how big they are or whether they have covers. The time taken increases with the number of shelves, and the number of books on any shelf.
The shelf list shows all the shelves and a count of the books on them. At first glance it is simple to write an SQL statement to fetch the list. But, there are some complications. The main complication is the SD card. If you insert an SD card, all the books on it are added to the database. You can then put these on shelves. If you remove the SD card, the books are not removed from the database. But, they are no longer listed in the library. And the count of books on the shelves does not include them. Even with that complication, it takes to long. I had a play with this earlier in the week. I can produce the appropriate results with the following query: Code:
SELECT name, COUNT(c.contentID) FROM shelf s LEFT OUTER JOIN shelfContent sc ON s.name = sc.shelfname LEFT OUTER JOIN content c ON c.contentid = sc.contentid WHERE (c.contentType = 6 or c.contentType IS NULL) AND (externalId IS NULL OR externalid = '90164EF8' OR externalid = '') AND s._IsDeleted = 'false' AND (sc._IsDeleted = 'false' OR sc._IsDeleted is NULL) GROUP BY name ORDER BY name I also had a play with the indices. I added a couple that I thought might help, but didn't get any performance improvements. From the above, I can only assume that someone has written some bad code that iterates over the database and manually counts everything. Or maybe the device is low enough powered to not be able to execute the query quickly. I would love to look at the code and see what they did. Alternatively, I might have missed something in my query and there is a legitimate reason for the slow speed. And for the interested, "externalId" appears to be an id for the external SD card. I don't know where it comes from, but any book with this set, is on the SD card. The value is also in the "Kobo Reader.conf" in a line "90164EF8=true". |
![]() |
![]() |
![]() |
#32 |
GranPohbah-Fezzes r cool!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,056
Karma: 3151024
Join Date: Jul 2010
Device: Nook STRs, Kobo Touch, Kobo Glo
|
I had forgotten that they didn't store covers for books on the SDHC in past versions(and seem to have dropped creation again as the implementation was not the proper resolution as noted by some forum members).
Maybe it's asking a lot, but it seems to me that they'd be better off by at least a factor of 1:3 by just including the high resolution version of the cover in the epub like Calibre does in its processing. But, then I guess that would only be a kepub concern for Kobo. It'd be nice if they could do it for both kepubs and epubs. |
![]() |
![]() |
Advert | |
|
![]() |
#33 |
GranPohbah-Fezzes r cool!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,056
Karma: 3151024
Join Date: Jul 2010
Device: Nook STRs, Kobo Touch, Kobo Glo
|
I have a hard time believing that it should take anywhere near 90 seconds to assemble and start displaying a list even with 5000 items with a 1GHz processor and anything resembling efficient code, but as David has pointed out without a look under the hood, who knows?
|
![]() |
![]() |
![]() |
#34 | |
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:
Images for kepubs and recommendations and things from Kobo, will have a 22 character id. From what I have seen, these are cleaned up properly. If you delete these, the device will still be OK, but a blank or a dot will be shown for the cover of these books. |
|
![]() |
![]() |
![]() |
#35 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,316
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#36 | |
Tenrec
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 724
Karma: 1076988
Join Date: Oct 2012
Device: Kobo Aura One, Kobo Glo
|
Quote:
When I did a simple search of files starting with "file", the only thing that came up was 7 images for 3 library books I currently have sideloaded on the main memory (2 I haven't opened yet, so don't have the biggest image file). It takes my computer ages just to open all the thumbnails in the folder. So it's a bit time consuming to look at exactly what all is there. The properties say 4,959 items, totalling 176.7 MB. I had a few more when I had my sideloaded epubs on main memory, but calibre seems to have cleaned it up fine. But I have only about 220 kepubs on my main memory (plus the 3 library books and 1 txt file). So even if I had all three images for all of them, it shouldn't be more than around 660 images. Even if calibre has also sent images for the kepubs that match an epub in my library (which I doubt it does) that shouldn't add more than 110x3 images, so still under 1000 images total. And based on what you're saying I shouldn't have most of those 4000 extra files? I haven't gone into the kobo bookstore on my glo in ages (months) and I haven't gotten recommendations for almost as long (one of the firmwares stopped me getting images since my account has no bought books, now when I go into the bookstore screen it just shows a screen telling me that if i buy my first book, I get a discount...). So I'm assuming these images were collected quite some time ago. They all have the 22 character ID which you describe, so it's pretty impossible to weed out ones I don't have the books for. But I'm not keen on having all my kepubs lose their covers, so I don't want to just delete them all. Any ideas? |
|
![]() |
![]() |
![]() |
#37 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Quote:
![]() Maybe make a mirror image first or copy books to a new library and use a newly formatted SD card (they are not too expensive) and send books to it. Helen |
|
![]() |
![]() |
![]() |
#38 |
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
|
I just had a look in my images directory. There are 768 images. So, that's about 256 books. The library list says 102 books. That suggest 252 covers from somewhere else. They probably are for recommendations, as I have bought a few books and do a sync a couple of times a week.
The database has a row for each book. This includes the imageId. You could delete all images that don't have an imageId in the database. That needs a little SQL and a script. And I think I would be lazy. Move all the images out of the directory. And then generate a script to move the images that have an imageId in the database back. |
![]() |
![]() |
![]() |
#39 |
Tenrec
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 724
Karma: 1076988
Join Date: Oct 2012
Device: Kobo Aura One, Kobo Glo
|
this is only for my kepubs's images....i have all my epubs on an SD card and they aren't the issue...that images folder only has the books on the card. i don't believe there is a way to force kepubs onto an SD card (other than filling the whole main memory...)
|
![]() |
![]() |
![]() |
#40 | |
Tenrec
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 724
Karma: 1076988
Join Date: Oct 2012
Device: Kobo Aura One, Kobo Glo
|
Quote:
but guess i could just delete all my kepubs and then all the images and then sync the kepubs back on....fun fun. or I could just leave it. it's not really a big deal, it's more that it's annoying when i'm looking to see if a certain book cover is there or the like, .....5000 is a lot to go through. would logging in and out clean up the images files or only with a factory reset? i forget what you lose with a log in and out...do you lose reading stats? i like my reading stats ![]() |
|
![]() |
![]() |
![]() |
#41 |
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
|
I don't think logging out would help. It replaces the database, but, I don't think it touches the files. It definitely doesn't touch the sideloaded books or cover images. I don't know if it does anything with the purchased kepubs. And you would lose the reading stats for any books not synced to the Kobo servers.
|
![]() |
![]() |
![]() |
#42 | |
Tenrec
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 724
Karma: 1076988
Join Date: Oct 2012
Device: Kobo Aura One, Kobo Glo
|
Quote:
|
|
![]() |
![]() |
![]() |
#43 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Quote:
Helen |
|
![]() |
![]() |
![]() |
#44 | |
Tenrec
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 724
Karma: 1076988
Join Date: Oct 2012
Device: Kobo Aura One, Kobo Glo
|
Quote:
But kepubs that are built right give fairly accurate stats. Try Anna Karenina...that's the kepub I read for the longest and when the kepub stats were introduced, I was quite glad to get the stats on that one ![]() |
|
![]() |
![]() |
![]() |
#45 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 299
Karma: 1042776
Join Date: Aug 2010
Device: none
|
Quote:
i am up to 5000 now and i plan to dump another 4000 as soon as i have converted from mobi to rtf format using calibre. i just copy/paste. also i bought a nook glow and wow it does not suffer the slow down problem at all as i have put about 4000 pdfs and epubs on to it using a micro sd card. it does not read txt,rtf,doc,mobi files.only pdf with reflow and epub. no slow downs at all. it must be using a master file indexing table instead of going through all the files which is what causes the problem. this is called SMART PROGRAMMING. browsing through the books is very very smooth. also it has a explorer type folder browser so you can put different authors in different folders. i.e it has folder support which is the holy grail of any ebook readers. you ereader makers listening? who in their right mind wants masochistically to spend years of their lives laboriously creating shelves 1 book by 1 book? it is better than the kindle which has a 3000 book limit after which it becomes sluggish unusable or freezes/reboots at random.again poor programming and no folder support. i might even sell the 3g keyboard kindle which cost me £150 plus £50 for the replacement 3g keyboard kindle when the screen developed lines. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mini kobo mini sale! | desert dog | Kobo Reader | 0 | 12-22-2012 12:08 AM |
How do you like your Kobo Mini? | bcgirl | Kobo Reader | 8 | 12-14-2012 01:40 PM |
Kobo Mini: So, which is it? | twowheels | Kobo Reader | 5 | 12-13-2012 09:19 AM |
Mini Kobo Mini | robdrob | Kobo Reader | 57 | 10-31-2012 04:29 PM |
Kobo Desktop for PC Only works if you have a Kobo ! | Kevin2960 | Kobo Reader | 10 | 12-08-2011 12:48 PM |