Skip to content

improve speed of BulkArea query #458

@glassbead0

Description

@glassbead0

Querying BulkArea for an entire state is slow. this is because of the N+1 problem when querying for media, climbs, and organizations for each area. To improve perfomance, we should update the code to use a JOIN query to get all the data (areas, climbs, media, organizations), in one query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    Status

    General backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions