Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

PERFORMANCE: Replace prefetching and ModelSerializers with .values() and manual stitching #47

@pmg103

Description

@pmg103

Some initial investigation seems to suggest that a speedup could be gained by ditching prefetch_related and select_related and ModelSerializer and building the response using .values_list() and .values() and manual stitching together the values.

Is this good enough that it would warrant losing the ability to call Model methods/properties?

Would also mean a complete rewrite of the implementation of course :D -- but probably also a simplification.

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