Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Andrew Boryk
Andrew Boryk
15,916 Points

Max amount you can PFQuery

What is the max amount that you can PFQuery? I believe it is 1000, but I am not sure. I am Querying User's so that I can search and add them to my friend's list. But how do I search all of the users if there are more than 1000?

1 Answer

Robert Bojor
PLUS
Robert Bojor
Courses Plus Student 29,439 Points

Hi Andrew,

You can use the skip parameter to call the next 1000 and so on. This will have to run in some sort of loop that breaks when there are no more results coming from Parse.

Here's a discussion on Parse about this exact problem: https://parse.com/questions/fetch-all-data-in-a-table-using-pfquery