Skip to content

Handling large number of relationships - pagination? #417

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

Closed
dbinetti opened this issue Mar 23, 2018 · 1 comment
Closed

Handling large number of relationships - pagination? #417

dbinetti opened this issue Mar 23, 2018 · 1 comment

Comments

@dbinetti
Copy link

I have a model that sometimes has a large number of child resources (sometimes many thousands). Were this a standard list I'd simply paginate the results -- but it isn't obvious to me how to paginate the relationship links.

It looks like some changes were recently adopted on the json-api spec (json-api/json-api#1251) and I've seen #178 here, but I'm not sure what the current recommendation is for handling this case.

THanks

@sliverc
Copy link
Member

sliverc commented May 2, 2018

As discussed in #178 this is as far as I am concerned still not supported out of the box.

There is a possible workaround to this as mentioned here #178 (comment) but you would have to try how this works out for you.

But to avoid cluttering issues and discussion I am closing this issue. If you have any other comments or questions concerning this best comment on #178 Thanks. And as always if you get this fixed for you PRs are really welcome or even code snippets as a workaround added to issue #178

@sliverc sliverc closed this as completed May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants