~amolith/public-tracker#12: 
Implement pagination

Loading a few thousand URLs into memory, spitting them into an HTML template, and loading that page in a browser is incredibly inefficient; the load time is insane and the page is massive.

Each page should only show 100 URLs.

Status
REPORTED
Submitter
~amolith
Assigned to
No-one
Submitted
2 years ago
Updated
2 years ago
Labels
earl

~amolith 2 years ago

#Backend

  • Create read() function that accepts start, end, and count arguments indicating what the last item is (implying forward iteration) or what the first item is (implying reverse iteration) and how many entries should be returned

#Web UI

  • Add pageStart, pageEnd, and pageItemCount URL queries to root() for passing to read() as start, end, and count values.
  • Add templated forward/backward buttons that pass pageStart, pageEnd, and pageItemCount to the backend as URL queries.

#API

  • Add URL queries to /read path that pass start, end, and count values to read() which returns a JSON blob of the requested data.

~amolith 2 years ago

Amolith referenced this ticket in commit 622b36b.

~amolith 2 years ago

Amolith referenced this ticket in commit 7564d54.

~amolith 2 years ago

Amolith referenced this ticket in commit eb7e22b.

~amolith 2 years ago

Amolith referenced this ticket in commit aa07589.

~amolith 2 years ago

Amolith referenced this ticket in commit 226986a.

~amolith 2 years ago

Amolith referenced this ticket in commit 8428c70.

~amolith 2 years ago

Amolith referenced this ticket in commit 2a59e83.

Register here or Log in to comment, or comment via email.