Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better pagination for ActivityPub outbox #7356

Merged
merged 1 commit into from
May 4, 2018
Merged

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented May 4, 2018

Mastodon fetches these collections only to read totalItems number. We can improve performance by not including items directly in the collection, but instead using first to link to a CollectionPage. Also, this adds proper, discoverable pagination.

Fix #7204

This improves outbox (and removes unused pagination code from collections). See #7357 for following/followers.

@Gargron Gargron added work in progress Not to be merged, currently being worked on performance Runtime performance activitypub Protocol-related changes, federation labels May 4, 2018
@Gargron Gargron removed the work in progress Not to be merged, currently being worked on label May 4, 2018
@Gargron Gargron mentioned this pull request May 4, 2018
24 tasks
@Gargron Gargron merged commit 2c1f7b2 into master May 4, 2018
@Gargron Gargron deleted the fix-collections-perf branch May 4, 2018 17:19
abcang pushed a commit to pixiv/mastodon that referenced this pull request May 22, 2018
abcang added a commit to pixiv/mastodon that referenced this pull request May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
activitypub Protocol-related changes, federation performance Runtime performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants