2

Hi I was wondering why my parse query was only returning an 100 objects when their is over 3000 rows in the parse db. I am using this in a xamrian.ios application and its only getting the first 99 objects back any ideas help is appreciated. And yes I did debug the code its only retreieving the first 99 objects back.

public async void populateFromParseLocalDB()
    {
        var query = ParseObject.GetQuery ("clinics");;
        IEnumerable<ParseObject> results = await query.FindAsync();


        int i;
        foreach (var record in results)
        {
            i++;
            Console.WriteLine("in for each");
            var name = record.Get<String>("Name");
            Console.WriteLine(name);
        }

        int mycount = i;
    }
4
  • Did you debug your code first line by line? Commented Oct 19, 2014 at 11:32
  • Yes as soon as its the results is only 99 records in it but the db has 3000 rows Commented Oct 19, 2014 at 11:34
  • Make sure you don't have any TOP(X) statement in sp Commented Oct 19, 2014 at 11:37
  • @malkam this is not a stored proc your answer is illrelavant Commented Jan 30, 2016 at 15:56

1 Answer 1

7

From the Parse Docs:

You can limit the number of results by calling Limit. By default, results are limited to 100, but anything from 1 to 1000 is a valid limit:

Sign up to request clarification or add additional context in comments.

2 Comments

this is for a postcode search using lat and long so I want all records aviable to me how do i get them all back and push into local class
Read the docs. Combine the Limit and Skip parameters and make multiple calls to get all the data you need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.