- LibraryThing
- All topics
- Hot topics
- Book discussions
- All discussions
- Your LibraryThing
- Join to start using.
 |
Tag pages much fasterJoin LibraryThing to post. This topic is currently marked as "dormant"—the last message is more than 90 days old. You can revive it by posting a reply. 1 timspaldingEdited: Mar 3, 2011, 5:05pm 
Chris Catalfo and I made a number of infrastructure changes to how tags are dealt with. The result is that tag pages are now much faster. Here, for example, is a chart of seconds-took to times happened for the key database query on the tag pages before:
(0) => 134568 (1) => 4379 (2) => 715 (3) => 416 (4) => 263 (5) => 155 (6) => 135 (7) => 97 (8) => 85 (9) => 81 (10) => 64 (11) => 69 (12) => 43 (13) => 47 ... (162) => 1 (163) => 1 (181) => 1
That is, although most of the time it's fast, some users hit it and it takes 10, 20, 60, even 181 seconds!
This schitzophrenic speed was the result of an extra caching layer. The first time someone hit "fiction" or "mystery" when the cache was cleared somehow got totally screwed. After that, it was fast.
Anyway, here's the new results with a totally clean cache.
(0) => 1758 (1) => 87 (2) => 4 (3) => 3 (5) => 1
It's never taken longer than five seconds. "Fiction" with more than a million works on its list took less than a second.
Anyway, that's why it's faster, if you notice. There are some other places we can do something similar, so with any luck we'll see similar gains elsewhere. 3_Zoe_Mar 3, 2011, 5:23pm 
Speed is good :).
I don't suppose anything similar could make the Tag Mirror calculations more manageable? 4rodneyvcMar 3, 2011, 5:38pm 
Why are so many touchstones showing in this thread?!?! 5sqdancerMar 3, 2011, 6:05pm 
>4 I'm guessing that Tim had originally used brackets around the numbers in his first post (which created touchstones) and then he changed the brackets to parentheses.
6235711Mar 3, 2011, 6:25pm 
Um... I suppose I should have said this earlier, but I haven't been able to see a tag page in days. In Opera, that is. I was working in IE a bit for other reasons, so I got round it that way and didn't think about posting a bug. I suppose this explains it.
Unless it's an unrelated problem at my end. Anyone else having a problem loading tag pages in Opera? 7TomVealMar 3, 2011, 7:06pm 
I use Opera (the world would be a better place if more people did) and am not having any trouble loading tag pages. 8235711Mar 3, 2011, 7:18pm 
Thank you. I'll assume it has nothing to do with the new feature then. 9235711Mar 3, 2011, 7:46pm 
My problem is solved. Apologies for hijacking the thread.
Back on topic: improved speed is excellent.
I don't suppose anything similar could make the Tag Mirror calculations more manageable?
Actually, you know, I think this might be the thing. I'll take a look.
Tim
And dare I ask if this could somehow miraculously revive tag alphabetization? *crosses fingers*
No, that's something else. But yes, important to fix. 16DaynaRTMar 4, 2011, 8:53am 
Could this help Tag Watch make a comeback? 17_Zoe_Mar 4, 2011, 9:19am 
I love this thread :) 19DaynaRTMar 4, 2011, 9:40am 
>18 Tag watch is not tag mirror.
>16
No, tag watch is a very different beast, but tag mirror's chances are transformed here. Stay tuned. 21DaynaRTMar 4, 2011, 9:56am 
>20 Ah, ok. It was worth a shot. :) 23tardisMar 4, 2011, 10:54am 
Oh, I love tag mirror. 24loraxMar 4, 2011, 11:49am 
20>
Darn. Oh well, we got one great feature back, anyway!
26_Zoe_Mar 4, 2011, 2:34pm 
:D
It would also be nice if the tag name at the top of the pop-up were a link to the tag page. 27_Zoe_Mar 4, 2011, 2:43pm 
Also, books with a 0.01% prevalence index should just not appear on the list at all.
Actually, when I was fooling around with it just now, most of the -0.01% prevalence books were perfectly valid. It just means that not many people tagged them that way.
On the other hand, I would definitely support any titles giving a 0.00% return being left off the list - that's what Pride & Prejudice got in my results.
It would also be nice if the tag name at the top of the pop-up were a link to the tag page.
Oh, I see. Okay, will do.
30> Pride & Prejudice has one vampire tag out of 37,560 copies which rounds to 0.00%
>33 Yeah, I know. Don't you think that might mean you could leave it off the list?
From what I've seen, anything 0.05% or less could be left off the list.
Okay, everyone look at your list and give me your cut-off.
I've just looked at several tags (since I think the precision is going to vary from tag to tag), and I think 0.05% would be a reasonable cut-off. Some items with less are still okay, but I suspect this will be good enough.
Another request for Tag Watch Please.
By the way, what is the list of books sorting on? It's not the percentage. 40_Zoe_Mar 4, 2011, 4:41pm 
Yeah, 0.05% seems good for total exclusion. I still like the 1% notification with any impact that has on the size of the tags etc. That is, I want additional exclusion at 0.05%, but I don't want anything between 0.05% and 1% to be treated more leniently than it is now. 41loraxMar 4, 2011, 4:48pm 
I think 0.1% prevalance index would be a good cutoff. Below that is the realm of The Satanic Verses showing up for "baseball" (0.02%), or The Annotated Alice for "historical fiction" (0.05%). There are still some idiocies above that cutoff but there's virtually nothing useful below it.
It's not the percentage.
Yeah, it's balancing the percentage and the number of copies. We don't want a book with one copy tagged one time jumping to the top because it's 100%. 44SylviaCMar 4, 2011, 5:02pm 
I'm finding the irrelevant ones start popping up most frequently around 0.07 and 0.06%. So a cutoff anywhere between 0.1 and 0.05 would probably be fine. (Of course, there was Official Rules of Card Games coming up at 0.20% for the tag "Christian Fiction"...) |  33,935 messages This group does not accept members.  AboutThis topic is not marked as primarily about any work, author or other topic.  TouchstonesWorks- The No. 1 Ladies' Detective Agency by Alexander McCall Smith
- Pretties by Scott Westerfeld
- Chromosome 6 by Robin Cook
- Chobits, Volume 7 by CLAMP
- l8r, g8r (Internet Girls) by Lauren Myracle
- Number9Dream by David Mitchell
- Fullmetal Alchemist, Volume 10 by Hiromu Arakawa
- Fullmetal Alchemist, Volume 11 by Hiromu Arakawa
- Eclipse by Cate Tiernan
- 13 Little Blue Envelopes by Maureen Johnson
- Question Quest by Piers Anthony
- Fruits Basket, Vol. 15 by Natsuki Takaya
- Naruto, Volume 16 by Masashi Kishimoto
- Babel-17 by Samuel R. Delany
- Fruits Basket, Vol. 18 by Natsuki Takaya
- Fruits Basket, Vol. 19 by Natsuki Takaya
- Code: And Other Laws of Cyberspace, Version 2.0 by Lawrence Lessig
- Cubs Nation: 162 Games. 162 Stories. 1 Addiction. by Gene Wojciechowski
- The Little Big Things: 163 Ways to Pursue EXCELLENCE by Thomas J. Peters
- De perenprins by Willy Vandersteen
- Pride and Prejudice by Jane Austen
- Lord of the Flies by William Golding
- Wicked: The Life and Times of the Wicked Witch of the West by Gregory Maguire
- Northanger Abbey by Jane Austen
- Coraline by Neil Gaiman
- Perfume: The Story of a Murderer by Patrick Süskind
- The Screwtape Letters by C. S. Lewis
- The War of the Worlds by H. G. Wells
- I, Robot by Isaac Asimov
- A Passage to India by E. M. Forster
- Wuthering Heights by Emily Brontë
- Uglies by Scott Westerfeld
- Doctor Zhivago by Борис Пастернак
- The Amulet of Samarkand by Jonathan Stroud
- Howl's Moving Castle by Diana Wynne Jones
- Dragonsinger by Anne McCaffrey
- 84, Charing Cross Road by Helene Hanff
- Black Powder War by Naomi Novik
- Feed by M.T. Anderson
- The Satanic Verses by Salman Rushdie
- The Annotated Alice: The Definitive Edition by Lewis Carroll
- Official Rules of Card Games by Albert H. Morehead
Authors
|