jesus2099 / konami-command

power‐ups for various web sites
121 stars 25 forks source link

MusicBrainz entity loader library #189

Open jesus2099 opened 8 years ago

jesus2099 commented 8 years ago

In order to, among other things, limit the amount of requests that is made, all scripts could share the loading of a single entity Web Service request.

User script Entity Frequency Cache
ALL LINKS artist* artist page* yes
INLINE STUFF release release page yes
INLINE TRACK ARTIST recording recording page yes
MERGE HELPOR 2 artist, release group or release merge page no
RECORDING_LENGHT_COLUMN (SUPER TURBO) artist\ or work artist recordings and work page yes
RELEASE_EVENT_COLUMN (SUPER TURBO) artist\ or label artist recordings and label page yes

* all in the future (#187) \ those are shared request already

loujine commented 8 years ago

I'm really interested by this idea, I should also decrease the number of requests made by my scripts. Let me know if I can help

jesus2099 commented 8 years ago

Oh so you also stumbled upon that ticket! Great! :) I think it's my next task, to work on this...

jesus2099 commented 8 years ago

@loujine tell me if you have other ideas or if some ideas are wrong or anything (the notes in the first post).

jesus2099 commented 8 years ago

I first thought of waiting for a few seconds delay to gather all client scripts requirements in terms of &inc= they need and then the WS call would only ask for those minimum set of &inc= that is enough for all scripts. But it seems simpler/faster/easier/etc. to just call the entity WS with all possible &inc=, always. What do you think, @loujine? :)