Skip to content

Optimization: Improve read_configured_params performance in models #3313

@berardifra

Description

@berardifra

Found a TODO in api_app/models.py. The method read_configured_params performs redundant database queries using exists() + first().
I propose to optimize it using select_related and consolidating the conditional logic.
I have already implemented the fix and verified it with tests.
Can I work on this?

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