![]() |
#16 | |
Bujavid tekikin
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 139
Karma: 40366
Join Date: Aug 2013
Location: Malaysia
Device: LG G3 D855, Samsung Galaxy Note N7000
|
Quote:
![]() In any case, I thought it was my mobile's antivirus at first, but nope. I put it down to possibly my phone or Android being momentarily quirky. Last edited by Sefiriot; 09-02-2013 at 12:40 AM. |
|
![]() |
![]() |
![]() |
#17 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The reason: in general it is up to a web client (e.g., CC) to determine where to store downloaded files. Calibre does not provide any template for this because in the vast majority of cases the file path would be ignored. As such, CC has no information about where it is to store the file, so it uses author/title. To fix this, either CC would need to implement the calibre template language (not going to happen -- way too hard), or calibre's content server would need to be extended to evaluate a template and send a suggested file path along with the metadata for a book. This second could happen, but given that it would be used only by CC and would probably need to be "per device", the justification for creating yet another point-of-maintenance in calibre is quite weak. |
|
![]() |
![]() |
![]() |
#18 | ||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
![]() Scan on connect is useful for cases where the user sideloads books into CC's folder using some other app, for initial or complete reinstallations, or if the DB gets corrupted and the user clears it. In the normal course of events it should add nothing. We now default it "on" because of the number of emailed questions the original dialog box provoked. Quote:
I wish I had some way to measure the defragging, and (even better) some way to know if it is necessary. Sigh. Quote:
|
||||
![]() |
![]() |
![]() |
#19 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Interesting to note that the scan for books on the second connect (the one that worked) apparently took 25 seconds. That is a long time. ![]() I have up'ed the timeout in calibre from 1 minute to 5 minutes. I considered getting rid of it all together, but decided that timing out does provide some information. The increase will be in the next calibre release. Getting on to the stuff at the bottom, I am quite sure that this is caused by the same "queue length" problem we have seen before. Calibre thinks that CC has finished storing books, but in fact CC hasn't. It could be hundreds of books behind. This means that when the send metadata job starts (log line 6181), CC isn't listening, instead working its heart out trying to store metadata for books. A minute later, calibre gives up. As I think I have said before, the next version will avoid this problem by refusing to queue saving metadata for more than 5 books. This lets CC overlap receiving metadata from calibre with writing the db, but doesn't allow it to get so far behind that timeouts are generated. It will appear to the user that the transfer is slower (faster than 3.0.5), but the overall time to send will not go up. The next version will also use queuing when receiving metadata during the connection handshake. This should speed up metadata reception by 5% to 10% because network time will be overlapped with database time. |
|
![]() |
![]() |
![]() |
#20 |
Bujavid tekikin
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 139
Karma: 40366
Join Date: Aug 2013
Location: Malaysia
Device: LG G3 D855, Samsung Galaxy Note N7000
|
Installed the new beta app you sent out chaley; performance has improved; many thanks. Sent you a CC debug log from the first run; if you need the calibre side logs as well say the word.
Meanwhile, I think that defragging the database makes grouping work faster; particularly since I have a boatload of tags. Display grouped by tags tends to slow down after a large send and speed up after I clean the DB, which I think ties in with what you were saying about faster DB queries after cleanup. |
![]() |
![]() |
![]() |
#21 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The debug log went to my partner/son in England. He will forward it to me this morning. I look forward to seeing it and looking at the timings, and other things. |
|
![]() |
![]() |
![]() |
#22 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@Sefiriot: thank you for that debug log. Because of it I discovered that some datetime values coming from calibre are now arriving with the millisecond field set. This broke CC's date parser. Now that I know about it, I can fix it.
![]() |
![]() |
![]() |
![]() |
#23 |
Bujavid tekikin
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 139
Karma: 40366
Join Date: Aug 2013
Location: Malaysia
Device: LG G3 D855, Samsung Galaxy Note N7000
|
A bit fuzzy on details, but no, no timeouts since the new version, I think. The last timeout I recall happening was before the new version was installed. Transfers are going amazingly fast compared to before: no more waiting half the morning to update my reading material!
|
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
CC V3.1, officially released today, includes all of the "big library" changes discussed in this thread.
|
![]() |
![]() |
![]() |
#25 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 199
Karma: 436584
Join Date: Jul 2010
Location: the beautiful Pacific Northwest
Device: Kindle Oasis, Pixel 2, Kindle Fire HD 8
|
Hi,
Any chance I could join your test? I have 9751 books at latest count.... edit: please ignore, I just caught up with your latest post, Chaley -- looks like I will have it already. Last edited by Merischino; 09-06-2013 at 01:52 PM. Reason: my own idiocy |
![]() |
![]() |
![]() |
#26 |
Bujavid tekikin
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 139
Karma: 40366
Join Date: Aug 2013
Location: Malaysia
Device: LG G3 D855, Samsung Galaxy Note N7000
|
Oh, no worries Merischino, the more the merrier; and testing is still ongoing. I suspect chaley must think I'm deliberately out to find new and interesting ways to break CC/give him headaches by now, with as many reports and logs as I've submitted over the last few days.
Out of interest, are your 9k books also sitting on the Samsung Galaxy S3? |
![]() |
![]() |
![]() |
#27 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 199
Karma: 436584
Join Date: Jul 2010
Location: the beautiful Pacific Northwest
Device: Kindle Oasis, Pixel 2, Kindle Fire HD 8
|
Quote:
|
|
![]() |
![]() |
![]() |
#28 |
Member
![]() Posts: 10
Karma: 10
Join Date: May 2011
Device: Galaxy N-8000, Moto G - KitKat, Xolo 4.2, Nook Classic, Nook Color
|
![]()
CC 3.1 on Galaxy Tab N-8000.
On wireless connect times taken: Calibre: Get List of Books on Device: 5m 22s Send Metadata to Device: 4m 51s CC works flawlessly on the Galaxy Tab. I wonder if there is any work around on the synchronization time between CC and Calibre. Probably Calibre and CC could each exchange a check sum and keep local files with device book lists (one each for each device...) and only exchange information that has changed. If check sums do not agree then a full fledged exchange could take as much time as it's needed. Just an idea. Once again congratulations on a very fine and highly usable app! |
![]() |
![]() |
![]() |
#29 | |||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Get List of Books on Device: 4m 43s Send Metadata to Device: 0m 2s Quote:
Quote:
Last edited by DoctorOhh; 09-19-2013 at 07:42 AM. |
|||
![]() |
![]() |
![]() |
#30 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
I have been working for some time on doing the same thing in the other direction, CC -> calibre. There are some gotchas having to do with multiple libraries and CC's database performance. For example, most of the time required to send metadata up to calibre is used in CC reading book metadata from database 1 by 1. The network time is overlapped with the db time. Because of this, the only way to get significant improvement is to read everything required at one go from the db, but that can't work if more than a little bit of memory is required because these android devices are so memory challenged. At any rate, this week I came up with an implementation that works: reads the DB in one query but requires minimum memory on the device (around 60 bytes per book). Even this might be too much for some of the devices out there, but we will see. The calibre changes will be in tomorrow's release, and I will start another prerelease cycle next week to test CC + calibre together. In my experiments, with the new code the CC->calibre metadata sync time for 100 books fell from 6 seconds to 1/10 second. I haven't done any tests yet with more books, but I suspect that the time for 1000 books will be under 1/2 second. CC should run at close to network speed, sending around 100 bytes per book to calibre. CC finding calibre using automatic mode takes around 2 or 3 seconds and the initial cc/calibre handshaking adds around 2 more seconds, just as it does today. NB: this improvement will be seen after one full cycle with the new code available because calibre must build its cache. |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Companion syncing experience: issues with a large ondevice library | Sefiriot | Calibre Companion | 26 | 08-27-2013 03:18 PM |
Odyssey Frontlight and large libraries | Rand Brittain | Bookeen | 7 | 12-21-2012 07:19 PM |
Best for large libraries? | crossi | Which one should I buy? | 0 | 09-10-2012 08:23 PM |
For those with large (500+) libraries... | ficbot | General Discussions | 60 | 12-13-2011 01:51 PM |
Touch Questions Regarding Large Libraries | crc | Kobo Reader | 9 | 07-05-2011 11:57 PM |