Skip to content

[BUG] pagination does not improve response time #532

@mmaeffert

Description

@mmaeffert

Describe the bug
When using the ?limit query parameter, it does not improve the response time compared to not setting a limit at all

To Reproduce
Steps to reproduce the behavior:

  1. Create 300k twins
  2. use GET /submodels endpoint
  3. see that the response takes more than a minute
  4. use GET /submodels?limit=5 endpoint
  5. See that the response takes equally long

Expected behavior
I would expect a faster response time nearly equivalent to the set limit / number of submodels ratio

BaSyx (please complete the following information):

Additional context
I suspect that application still querries every submodel and just adds the first five to the response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions