Danbooru

Numbers missing

Posted under General

Hello, I'm not sure if this is intentional, but the numbers indicating tag frequency are missing, both on the image search page and the image view page. This seems unlikely to be intentional, as those numbers are useful and interesting, and removing them doesn't seem to be useful.

Updated by Ola

Not really, the numbers were generated by the server-side portion of Danbooru polling it's own database. Not all of that information is available via the API, and what is would require a convoluted script to re-implement.

In the end it wouldn't solve the issues we had / are having, since it would just increase load on the server again anyway.

It'd be best to simply wait and hope Albert can find a way to re-implement the statistics in a reasonable way that is usable for us and sustainable for the server.

Updated

Ola said: Is there a way to get the numbers back via script/plug-in/etc.?

Probably not. That data is no longer sent with the page, so a client-side script would not be able to do anything about that.

Though (contradiction!), it is theoretically possible to use a script that could query /tag/index.xml, and get the tag counts. But that's probably infeasible, because a request would have to be made for each tag*, every time you view a page. Doing that would just be plain-out abusing the server.

*might not be strictly true. I'm not familiar with the API, so I don't know if it's possible to get all the tag info you need using just one query. Even so, it's still probably a bad idea.

Also, do keep in mind that these changes aren't permanent.

Edit: Well, now, I guess my post is just a paraphrasing of what Shinji said.

Updated

Bapabooiee said:
Though (contradiction!), it is theoretically possible to use a script that could query /tag/index.xml,

...Oh. Haha, I forgot all about the tag index. I was querying the wiki pages instead, and that actually seems to be more reliable than using the tag API for some reason. But yeah, either way not a satisfactory solution in the long run.

Bapabooiee said:
*might not be strictly true. I'm not familiar with the API, so I don't know if it's possible to get all the tag info you need using just one query.

I wish. There's a 4-month-old trac for that.

Updated

Count me among those dearly missing the statistics on profile pages.

You know, I wouldn't be opposed to something similar to what we have at the moment but with added links that calculate the desired total on request. Should still ease the load on the server.

1