Gelbooru

Notice: Visit your account options to access your Patreon rewards for May. You can disable message notifications in your account options. Lol.

Ticket Information - ID: #837


ID:Category:SeverityReproducibilityDate SubmittedUpdated By:
0000837Feature RequestnormalN/A05/21/16 11:05AMlozertuser
Reporterara-ara
Assigned to:geltas
Resolution:Open
View StatusPublic
Version:
Target Version:N/A
Summary:Tag dumps
Description:I'd like to create a command-line uploader for Gelbooru, where I can enter tags with autocomplete capability without querying API every keystroke. A JSON tag dump created once a week or month would be extremely useful for this purpose. Creating it shouldn't hurt the server - there are about 400k tags, so the JSON would weight 2-3 MB while being perfectly cacheable.

Another option is to expose tag list API with pagination, but to get all the results, I'd have to flood the site with many requests. Assuming one page could show 100 records, I'd need 4k requests, which sounds very bad.

It would be great for this to have tag usages as well, so I could sort the suggestions by their popularity.

Thanks
Additional Info:
ara-ara replied at 2016-05-21 11:08:55
...I've underestimated the dump size, but if you consider serving it with gzip, it sounds about right. :)

lozertuser replied at 2016-05-23 21:29:00
I read somewhere it was 80-300ms between keypresses before you should query an API. We use 150ms on TheDoujin.