Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9082165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:29:38+00:00 2026-06-16T20:29:38+00:00

i am getting 10,000 records returned from a JSON query, and it is split

  • 0

i am getting 10,000 records returned from a JSON query, and it is split into 102 pages with roughly 100 objects per page. The first 100 items are loaded fine, but then it stops loading more. How do I get it to go to the next page? How is this normally done? This code used to be for sqlite alone. Now I have finished transforming it into a new app using core data, but it gets stuck in the first page. Anything I am doing wrong?

here is the JSON nslog (last lines)

"PageNo":1,"TotalPages":102,"RecordCount":10163}




    -(void) serverDidFinishSending: (NSData *)responseData manager:(WebServiceCommunicator*)aManger requestURL:(NSURL *) url
        {
//Added the code below just to test out apple's JSON serializer
            NSError *error;
            NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:&error];
            NSLog(@"dictionary %@",dictionary);
            // Create the base object from factory.

//currently JSON serializer happens here 
    ReturnObjectFactory *aFactory = [[[ReturnObjectFactory alloc] init] autorelease];
        id object = [aFactory createObjectWithClassName:_className fromData:responseData];

        // Pass on the object to the target class and let that class deal with this object
        if(_target && [_target respondsToSelector:@selector(didRecieveObject:sender:)])
           [_target didRecieveObject:object sender:self];

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T20:29:40+00:00Added an answer on June 16, 2026 at 8:29 pm

    i Think you are getting a Array of Dictionary so when you firing your query , you are getting only first index of array. So try to get all data by creating a loop.

    Try the below Code.

    -(void) serverDidFinishSending: (NSData *)responseData manager:(WebServiceCommunicator*)aManger requestURL:(NSURL *) url
    {
    NSError *error;
    id jsonObject = [NSJSONSerialization JSONObjectWithData:responseData options:NSJSONReadingAllowFragments error:&error];
    NSLog(@"dictionary %@",jsonObject);
    
    if ([jsonObject respondsToSelector:@selector(objectForKey:)])
         {
    // This is a dictionary
    // Create the base object from factory.
    ReturnObjectFactory *aFactory = [[[ReturnObjectFactory alloc] init] autorelease];
    // get your stuffs here
        }
    else
        {
        // Treat as a Array
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anybody have experience with getting random results from index with +100,000,000 (100 million)
We have a operation in which more than 100.000 records are read from a
From a database query I'm getting one record returned with fields/values and putting it
I am inserting 1,00,000 records into databse through background thread.at this time when I
I have been getting requests that require me to query up to 1,000 account
I have a dynamic query that returns around 590,000 records. It runs successfully the
Getting a strange error when trying to insert data into an Access database using
I've a table with about 130 000 records with telephonenumbers. The numbers are all
I am importing a csv file with more then 5,000 records in it. What
dataElementsList : TypesAndData.DataElement list is a list of 50,000 records (actually many more but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.