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

chore: remove local cache #10379

Merged
merged 3 commits into from
Oct 21, 2024
Merged

chore: remove local cache #10379

merged 3 commits into from
Oct 21, 2024

Conversation

mattkrick
Copy link
Member

@mattkrick mattkrick commented Oct 18, 2024

Description

the local cache logic is pretty complex. it caches data in memory, then in redis, then grabs it from rethinkdb (or from a custom query).

since we sort templates differently now we don't need to calculate the score.
PG is pretty fast at getting public templates (250ms) but redis is even faster (2ms) so we still rely on redis to store this values, but got rid of the overhead.

NOTE: these fetches are currently used by the client. in a future PR we should remove them, but i just want to refactor here because the goal is to get rethinkdb gone

Signed-off-by: Matt Krick <matt.krick@gmail.com>
@mattkrick mattkrick marked this pull request as ready for review October 21, 2024 18:59
@mattkrick mattkrick merged commit 47f080a into master Oct 21, 2024
7 checks passed
@mattkrick mattkrick deleted the chore/remove-rethinkdb-cache branch October 21, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant