Skip to content

Cache user -> level stats/relations #1127

Description

@Toastbrot236

We should cache relations/stats between a user and a level to avoid additional DB calls when serializing levels for API responses, since we include these relations in level responses. These relations should be cached in a dedicated DB table, which would probably include at least the following:

  • Whether the user has hearted the level
  • Whether the user has queued the level
  • The user's rating on the level
  • How often the user has played the level in any game
  • How often the user has completed the level in any game
  • How many uploaded photos the user has taken in the level

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions