Skip to content

Conversation

@dfabulich
Copy link
Collaborator

Rather than using a complicated system of triggers like I did in #270, for this one, I think it's fine to just refresh the materialized view via cron running once every five minutes. (The query is supposed to take less than a second, when the system isn't overloaded.)

Cooking up the triggers would require us to manage triggers on all of these tables:

  • users
  • reviews
  • reviewvotes
  • specialreviewers
  • reclists
  • reclistitems

This is the simplest thing that could possibly work.

@dfabulich dfabulich requested a review from salty-horse January 3, 2024 01:29
@dfabulich dfabulich force-pushed the user-scores-materialized-view branch from 4b2a6c6 to 9229fab Compare January 3, 2024 01:30
@dfabulich dfabulich force-pushed the user-scores-materialized-view branch from 9229fab to 15208d2 Compare January 3, 2024 12:30
@dfabulich dfabulich force-pushed the user-scores-materialized-view branch from 15208d2 to ddf68cc Compare January 4, 2024 19:01
@dfabulich dfabulich merged commit fd39f54 into main Jan 4, 2024
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

Successfully merging this pull request may close these issues.

3 participants