ajslater / codex

Codex is a web based comic archive browser and reader
GNU General Public License v3.0
195 stars 6 forks source link

OPDS Suggestion: Page or item limit for feeds. #303

Closed beville closed 1 year ago

beville commented 1 year ago

For the 'sorted' feeds currently offered (Recently Added, Oldest Unread) they are really just the entire list of comic issues, sorted in a particular way. When it's a very large list (10K+), some clients seems to struggle.

Chunky, of course, is trying to do client-side sorting, so it's attempting to load the entire feed before it renders it, and that always times out. But even Panels, which seems to be doing page-fetch-then-render is seems to still be running the fetch process in background and it's slowed down by all that background activity.

Granted, these are client implementation problems, but I would argue that there is not much utility for some feeds like this beyond a certain number issues, maybe 100 or so.

My thought is to create add a new OPDS feed param to limit the number items (or pages) before it stops creating a "next" link.

ajslater commented 1 year ago

As of codex v1.3.11 OPDS special top links are now limited to 100 entries.

beville commented 1 year ago

Awesome! Noticeably better performance when going to those feeds.