Skip to content

Speed up user stats build (parallelize heavy step) #3

@crisdosaygo

Description

@crisdosaygo

The user stats build is currently the slowest step by a wide margin. Investigate parallelizing the aggregation and shard writing (or splitting by username ranges / month buckets).\n\nIdeas:\n- Parallelize by shard group or username prefix.\n- Pre-aggregate monthly counts per raw chunk, then reduce.\n- Consider a staged temp DB per worker, then merge.\n- Explore WAL + chunked transactions to reduce lock contention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions