Skip to content

Categorized rankings #2

@kenrestivo

Description

@kenrestivo

I've been asked to display rankings per theme (used as categories) per user, on a custom leaderboard.

I'm also trying to do it without making changes to the UserInfuser codebase, or if I do need to make changes, I'd like to do them in a way that could be accepted upstream.

I'm very familiar with SQL but not with GQL. If this were SQL, I'd either do an ad-hoc join query to calculate the per-theme rankings on the fly, or perhaps create a jointable with foreign keys for user and theme, and a field for rank, and just store the rank there, joined to user.

Do you have any preference as to how this should be done, or any advice on how to do it with a minimum of change to the codebase?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions