Published the new v2 api in preparation for the upcoming streamsnipe feature!
- new includePlayers endpoint returns player history in /servers responses
- /playerHistory has been removed
- you can now put args in the “data” property of an object to allow for additional settings to be included
- caseInsensitive option added for onlinePlayer and playerHistory (for finding players from their Twitch usernames)
- I’ll probably use this more in the future, maybe for “not” conditions or something
Historical player storage was previously done by having one table that had every player’s name and uuid, and then a second table that stored when each player was last seen on each server, referencing each with their primary keys. This avoided storing a ton of duplicate usernames and uuids when users played on multiple different servers, but turns out it was still way faster if I just stored all of the data on one table to avoid a whole extra JOIN in the query. This also required a lot of reworking on the scanner and api, and I was too lazy to update the old v0 api so I officially discontinued it.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.