Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider changing the source of truth #213

Open
KenEucker opened this issue Dec 22, 2023 · 0 comments
Open

Consider changing the source of truth #213

KenEucker opened this issue Dec 22, 2023 · 0 comments

Comments

@KenEucker
Copy link
Owner

Describe the problem
The source of truth, stored in the form of Imgur albums, comes as a single download of text data from Imgur's API: https://api.imgur.com/models/album

The API first parses the entirety of this data to get all tag data, then returns that data for use in all methods, regardless of the size of the data requested. (for example, if the most recent tag is requested, it will process all tag images before it searches for the most recent tag -- because it cannot know what the most recent is without reading in all tags first)

Options for changing the source of truth include:

  1. a JSON database that holds this data and is cached somewhere.
  2. Store the hash of the most recently posted biketag in sanity.
  3. Create a database for BikeTags to enable more atomic interactions with the data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant