rundfunk-mitbestimmen icon indicating copy to clipboard operation
rundfunk-mitbestimmen copied to clipboard

Statistics: Use unpaginated remote API

Open roschaefer opened this issue 7 years ago • 0 comments

  • I'm submitting a ...

    • user interface improvement
  • What is the current behavior? Every time when I click on the pagination links, I have to wait for the API request.

  • What is the expected behavior? I want to get all records at once and paginate locally in the browser.

  • What is the motivation / use case for changing the behavior? Reduce page load times and improve user experience.

  • What could be a possible solution? (not obligatory)

selection_064

At the moment each API request takes about 1.5 seconds to finish and produces a size of 2.9KB. An API call with maximum page size will take the same time and is 71.4KB large. So let's optimize not for the payload of the request but for the database processing time on the backend.

See ember-cli-pagination how to use unpaginated APIs.

roschaefer avatar Oct 16 '17 10:10 roschaefer