Galaxypedia-Wiki / ketchupbot-updater

epic galxy pedia updator
MIT License
1 stars 0 forks source link

Refactor ketchupbot to send a single API request to the Galaxypedia for mass updates #121

Closed smallketchup82 closed 1 month ago

smallketchup82 commented 1 month ago

I found out that the query api parameter can actually take in multiple different pages.

By combining all of this into one API request, we can significantly boost performance of KetchupBot. Such that it sends 1 api request to galaxy info for ship info, another request to the galaxypedia for the contents of each ship page, and any subsequent requests will likely be page edits.

read more here: https://www.mediawiki.org/wiki/API:Query#:~:text=Type%3A%20boolean%20(details)-,titles,-A%20list%20of

smallketchup82 commented 1 month ago

i'm going to be working on this ASAP—added it to my ai calendar with maximum priority

i honestly dont know how i overlooked this, in literally all versions of ketchupbot... but it can improve ketchupbot's performance by a ton when done right.