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

Do I have to send multiple requests one by one to get all nodes? #29

Closed
laike9m opened this Issue Jan 6, 2018 · 2 comments

Comments

2 participants
@laike9m

laike9m commented Jan 6, 2018

Say I'm fetching followers, using similar code as the pagination example. Now, if I have 600 followers, does it mean I have to send 6 requests to get them all? And it seems there's no way to parallelize it, since end cursor is needed to perform the next request?

@dmitshur

This comment has been minimized.

Show comment
Hide comment
@dmitshur

dmitshur Jan 6, 2018

Member

Say I'm fetching followers, using similar code as the pagination example. Now, if I have 600 followers, does it mean I have to send 6 requests to get them all?

Yes, that's right. If the max page size is 100 followers, then you'll need to make 6 requests to fetch all 600 followers.

And it seems there's no way to parallelize it, since end cursor is needed to perform the next request?

Correct, you need to fetch the pages sequentially, as far as I know.

Member

dmitshur commented Jan 6, 2018

Say I'm fetching followers, using similar code as the pagination example. Now, if I have 600 followers, does it mean I have to send 6 requests to get them all?

Yes, that's right. If the max page size is 100 followers, then you'll need to make 6 requests to fetch all 600 followers.

And it seems there's no way to parallelize it, since end cursor is needed to perform the next request?

Correct, you need to fetch the pages sequentially, as far as I know.

@dmitshur dmitshur added the question label Jan 6, 2018

@laike9m

This comment has been minimized.

Show comment
Hide comment
@laike9m

laike9m Jan 7, 2018

Thanks for answering.

laike9m commented Jan 7, 2018

Thanks for answering.

@laike9m laike9m closed this Jan 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment