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

Simple User Query -> Strategy Caching #108

Open
dOrgJelli opened this issue Feb 8, 2024 · 0 comments
Open

Simple User Query -> Strategy Caching #108

dOrgJelli opened this issue Feb 8, 2024 · 0 comments

Comments

@dOrgJelli
Copy link
Contributor

In order to achieve a 1-second UX, we want to use caching. Additionally we've realized that the aggregate dataset will not change much over time, as GitCoin is going through a AlloV2 migration and we only use historical subgraphs from historical rounds.

Therefore we can use a simple user_prompt -> strategy_id cache, and invalidate it using a database migration in the future if the need presents itself.

Additional ideas:

  • generate 100 example prompts, cache the 100 results, show a random 7 to each user that uses the app
  • each of these 7 will be instantaneous results
@dOrgJelli dOrgJelli modified the milestone: Sprint 2 Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant