Skip to content

Stock Item List endpoint very slow on bigger datasets #6558

Open

Description

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

GET /api/stock/?part_detail=true&location_detail=true performs a lot of db operations on larger datasets.

Steps to Reproduce

Call /api/stock/?location=8&part_detail=true&location_detail=true

Expected behaviour

Less operations, thus faster execution

Deployment Method

  • Docker
  • Bare metal

Version Information

0.14.0 dev

Please verify if you can reproduce this bug on the demo site.

  • I can reproduce this bug on the demo site.

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    apiRelates to the APIbugIdentifies a bug which needs to be addressedrefactorstockRelated to Stock models

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions