Skip to content

Freetext search causes excessive requests when getting a large number of results #10621

@dianabarsan

Description

@dianabarsan

Describe the bug
Simple freetext search seems to get all results for the search for every search "page" instead of getting one page at a time.

To Reproduce
Steps to reproduce the behavior:

  1. Have a large instance. your search term should yield more than 100 results.
  2. Make a report freetext search - don't use other filters.
  3. It takes a long time to load the results.
  4. Scrolling to the next results page takes equal amount of time.
  5. Inspecting the console, you see many ajax requests to the server.

Expected behavior
A single request should be made for one page of results.

Video

many.nouveau.reqeusts.mp4

Environment

  • App: webapp
  • Version: 5.0.0

Metadata

Metadata

Assignees

Type

Projects

Status

🚀 Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions