#ActivityPub developers only please: how many items should be in a full collection page?
-
#ActivityPub developers only please: how many items should be in a full collection page?
-
#ActivityPub developers only please: how many items should be in a full collection page?
If you implement ActivityPub on the server side, feel free to reply with your page size policy.
-
#ActivityPub developers only please: how many items should be in a full collection page?
@evan@cosocial.ca I don't support polls on NodeBB yet so can't vote, but...
Default
perPageis 20*. This is configurable in the admin control panel.* except for user outboxes. That uses a cursor, not pages.
-
-
-
-
#ActivityPub developers only please: how many items should be in a full collection page?
@evan Totally depends on the collection, shouldn't it?
-
undefined evan@cosocial.ca shared this topic
-
#ActivityPub developers only please: how many items should be in a full collection page?
@evan configurable 😀
-
@evan configurable 😀
@naturzukunft2026 great. What's the default? And what *should* the value be? It's an opinion poll; have an opinion.
-
@naturzukunft2026 great. What's the default? And what *should* the value be? It's an opinion poll; have an opinion.
@evan Haha, it depends....
in changinggraph.org it is currently 20 -
#ActivityPub developers only please: how many items should be in a full collection page?
@evan@cosocial.ca As an opinion that is likely to be very unpopular... the page size ideally should be set by the client. Only they know their resource makeup and ability to process the returned information.
Otherwise, we tend to run page size between 60 and 100 depending on the content. And if it's less than 100 entries (and especially when returning an id-list rather than a list of activities), we'll usually just send them out without paging.
The desire is to balance resource usage to get the highest rate of information transfer, and those are the only levers we have available, and they (currently) aren't settable by clients, so it seems the best we can do is default to "large chunks".
I admit that I'm not fond of the page size of 12 that I found in Eugen's followers list of over half a million entries (some years ago). That's a lot of network requests and makes their clients work a lot harder than they need to.
-
@macgirvin I'm okay with that. I just wasn't really aware of any
perPagestyle value that could be passed to servers. -
#ActivityPub developers only please: how many items should be in a full collection page?
@silverpill@mitra.social -- Thanks. Don't know how I missed that, but I'll start using it right away. Cheers.