Skip to content

Add select_related() to Report retrieval in dot_fec_composer compose_report function #1820

@exalate-issue-sync

Description

@exalate-issue-sync

In the dot_fec_composer compose_report function, we retrieve a report model here and later access a committee_account foreign key attribute here which may trigger an additional query. We should add select_related("committee_account") to the report retrieval and use a tool like Silk to confirm the extraneous query is no longer happening.

QA Notes

null

DEV Notes

null

Design

null

See full ticket and images here: FECFILE-2740

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