![]() |
#76 |
Old Kaz
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
|
|
![]() |
![]() |
![]() |
#77 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Yup, confirmed.
Trivial fix in PR #3 ![]() (That was a regression, which is why I remembered it as working fine ;p). EDIT: Well, that was the shortest-lived PR ever. xD. git master should be working fine now ![]() Last edited by NiLuJe; 09-19-2014 at 01:00 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#78 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 40008
Join Date: Aug 2014
Location: Paris, France
Device: PW2, Kobo H20, Kobo Aura One
|
Thanks for the report and the PR! The fix is now merged.
Edit: added v1.6 in first post. Last edited by barsanuphe; 09-19-2014 at 01:21 PM. |
![]() |
![]() |
![]() |
#79 |
Old Kaz
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
|
NiLuJe, barsanuphe
Great! It's worked; collections files are correct. Thanks! ![]() |
![]() |
![]() |
![]() |
#80 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Sep 2014
Device: pw2
|
thanks for the plugin!
i've tired using CM for building collections based on the folder structure (took so long ~12-16 hours for 3920 books). hopefully your plugin will be much faster! what i really wonder is it possible to add an ability to calibre plug-in to build collections based on dir structure on local PC and then sync to kindle to avoid waiting and processing on slow kindle PW device? the above question is probably more to @NiLuJe. on another note: is there any tweaks/tips to generally improve performance of plugin on kindle pw2? (e.g. installing gawk will speed it a bit or it doesnt matter at all?) |
![]() |
![]() |
Advert | |
|
![]() |
#81 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@mobusr: In this instance (collections from directory structure), the limiting factor is the crappy flash memory used by the PW (i.e., IO), not the CPU, so doing this from a desktop or the device itself shouldn't be drastically different (in LS's case. In CM case there are Java mysteries on top...) [especially since we'd be doing it with code in the exact same language (Python)].
The only potential issue that I can see is that you *might* hit memory consumption issues with very, very large data sets when doing that on the device, but if you have that much entries, the device would already have been slowed down to a crawl anyway ;D. gawk will speed up KUAL, nothing else. Last edited by NiLuJe; 09-21-2014 at 07:30 AM. |
![]() |
![]() |
![]() |
#82 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
@mobusr: In addition to NiLuJe's reply directly above - -
The collections catalog is stored in a high level database. The application using a high level database has very little (usually none) control over how it does its underlying I.O. The Amazon build of sqlite3 **should** already be as optimized as it can be in regards to I.O. to flash storage. And if it isn't, we can't do much about that. ![]() Since the initial creation of a large collections catalog is a "one time" operation - - I think we (the users) will just have to put up with its creation time. |
![]() |
![]() |
![]() |
#83 | |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Sep 2014
Device: pw2
|
Quote:
1) sync kindle documents stuff to the PC 2) create same collection db on the PC 3) sync db from the PC to the kindle Is it possible? I think this should speed up process significantly. CM few times shutted down I think because of the memory issues. |
|
![]() |
![]() |
![]() |
#84 | ||
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Sep 2014
Device: pw2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#85 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
If you mean copying the database file in its entirety - That would make it possible to control the low-level I.O. during the copy application. But that opens a whole new level of complexity - That database file might be "open" by various applications. All uses of the "deleted" copy would have to be forced closed before the actual underlying storage was released and the new copy was used. A system re-start would almost certainly be required. - - - - The combination of Librarian and LibrarianSync in combination with Calibre should already handle partial updates. |
|
![]() |
![]() |
![]() |
#86 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@mobusr: That's simply not how either CM, LS, nor the Calibre plugin are engineered (and for good reason, as knc1 gave an example of). And I stand by my point that the ends probably wouldn't justify the means
![]() (Plus, the Kindle DB is *NOT* accessible over USBMS, which makes transparent sync unachievable without a proxy). As for LS, without doing completely stupid things in the name of speed, the current major hotspot is ccat, and we have no real control over it. Bypassing it (which means reinventing a better wheel than Amazon's) and doing the SQL ourselves would *possibly* net some minor speed advantages, but would increase complexity and decrease maintainability of the code. You're welcome to try your hand at it, LS is modular enough to make that switch doable. Note that if you use Librarian to manage your library & collections, the first point is moot, because the json will be generated on the library host machine, if I'm not mistaken. The ccat thing still stands, though. (With a bit of creativity, the same effect can be achieved with the Calibre plugin, since you can use the exact same kind of variables to build the collections as you can to build the directory structure. With the added bonus that both Calibre and the plugin maintain their own cache to avoid IO-bound performance penalties on subsequent runs). As for CM, there's an extra layer of indirection through the java framework, so who knows how that affects performance. Just try it with LS, it should already be a magnitude faster. As knc1 ended on, either Librarian + LS, Calibre + Plugin + LS, or LS on its own is already smart enough to do what you want in an efficient manner. Last edited by NiLuJe; 09-21-2014 at 03:26 PM. |
![]() |
![]() |
![]() |
#87 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 40008
Join Date: Aug 2014
Location: Paris, France
Device: PW2, Kobo H20, Kobo Aura One
|
I'm coming a little late to the party, but you could as was mentioned use librarian or at least, in your case, you could write a very small script to list your files on your PC, preserving your folder structure, and generate a json file in the librarian format.
Then you could use LibrarianSync to just perform the collection update without accessing the kindle files. |
![]() |
![]() |
![]() |
#88 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Sep 2014
Device: pw2
|
thanks guys!
i will try all of the solutions you've posted. much appreciated! what if i generate relevant json? how do i import it into kindle's db? EDIT: re-read @barsnuphe reply, will try that! |
![]() |
![]() |
![]() |
#89 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 40008
Join Date: Aug 2014
Location: Paris, France
Device: PW2, Kobo H20, Kobo Aura One
|
By the way, I would be interested to know how long LibrarianSync takes to update your almost 4000 ebooks... from the folder structure or from json.
I have not yet tested librarian & LibrarianSync with that many books. |
![]() |
![]() |
![]() |
#90 | |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Sep 2014
Device: pw2
|
Quote:
So I'm gonna install librarian into virtual machine with Linux and give it a go. |
|
![]() |
![]() |
![]() |
Tags |
kindle collections, librariansync |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vocabulary builder and flash card feature on old kindle 2/3/dx? | dark.knight1 | Kindle Developer's Corner | 12 | 10-10-2015 01:12 PM |
Vocabulary builder | bobafruit | Kindle Developer's Corner | 25 | 09-04-2015 01:46 AM |
Free (nook/Kindle/iTunes/DRM-free) Legacy Builder [Xtian Business Leadership Advice] | ATDrake | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 10-13-2014 02:44 AM |
Vocabulary Builder for Kindle Paperwhite 1 | pxpxpx | Amazon Kindle | 2 | 02-16-2014 06:07 PM |
SBPubX Builder | tmaynard | Fictionwise eBookwise | 16 | 11-20-2008 12:35 PM |