Skip to content

Improving use_query #113

Closed
Closed
@rmorshea

Description

@rmorshea

Current Situation

There are a number of usability problems with use_query:

  1. Prefetch logic is not perfect and can have significant performance costs: use_query does not properly pre-fetch some model fields #110
  2. The interface does not lend itself to future extensions: Add ability to disable Model/QuerySet restrictions on use_query #104, Add fetch_policy=... to use_query #103
  3. And that, when a user accesses a field that has not been pre-fetched in the scope of a render function, the SynchronousOnlyOperation error they get from Django does not communicate this fact and how to resolve it.

Proposed Actions

Discuss and arrive at a solution to each of the above problems. I'll update this section as we reach consensus on how to proceed.

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