I've the parse database name as Timetable, I want to get the data from the column "Intake", but I've a lot of data in it, around 5000 records. I know the maximum query objects that we can get is 1000, but how to get more than 1000 records? The codes that I wrote is only query for 1000
var query = PFQuery(className: "Timetable")
var limit:NSInteger = 1000
var skip:NSInteger = 0
query.limit = limit
query.skip = skip
query.orderByAscending("Intake")
query.findObjectsInBackgroundWithBlock
{
(objects:[AnyObject]?, error:NSError?) -> Void in
if error == nil
{
query.findObjectsInBackgroundWithBlock
{
(objects:[AnyObject]?, error:NSError?) -> Void in
if error == nil
{
for object in objects! as [AnyObject]
{
var intakeCode = object["Intake"] as? String
if !self.pickerString.containsObject(object["Intake"] as! String) {
self.pickerString.addObject(object["Intake"] as! String)
}
}
self.pvIntakeCode.reloadAllComponents()
}
else
{
NSLog("Error: %@ %@", error!, error!.userInfo!)
}
}
}
else
{
NSLog("Error: %@ %@", error!, error!.userInfo!)
}
I know this problem is existing from stackoverflow, but I really don't understand what it says. (Another question is from here:Parse.com query for 10000 (10K) objects). But I don't understand about it, sorry for asking the question again.