I am getting trouble with parse.com inner query using. Here is my code.
PFQuery *innerQuery = [PFUser query];
[innerQuery whereKey:@"deactive" equalTo:[NSNumber numberWithBool:NO]];
PFQuery *query = [PFQuery queryWithClassName:@"Post"];
[query orderByDescending:@"voteCount"];
[query setLimit:1];
[query whereKey:@"user" matchesQuery:innerQuery];
[query findObjectsInBackgroundWithBlock:^(NSArray objects, NSError error) {
//some code
}];
Here is a problem. Inner query max limit count is 1000 as well in Parse.com. In my code, after retrieving 1000 objects in User class and execute query among them. If user count exceeds 1000, then rest other users are out of inner query. so I can't get post object which it's voteCount property is largest.
How can I resolve it? Is it impossible on Parse?