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 6673693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:39:26+00:00 2026-05-26T03:39:26+00:00

When getting a list of items via a json call is it better to

  • 0

When getting a list of items via a json call is it better to use several small calls (to get info as it’s needed) or one large call with all the data.

For example, you have a json call to get a list of books matching a particular title keyword. There are 100 results. You’re displaying the data in a paginated form – 10 results per ‘page’. Is it more efficient to make one call and get all the results or to make a call for the next 10 on each page?

I would imagine it’s partly determined by how many results there are. If it’s some huge number the second option seems clear. But what is a good limit to the number you can get in one call – 100, 1000, 10,000 items?

  • 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-05-26T03:39:27+00:00Added an answer on May 26, 2026 at 3:39 am

    It depends.

    Obviously, you want to keep the bandwidth usage to a minimum, but there is also an overhead to each individual call. You’ll have to make some educated guesses, most importantly: how likely is it that you are going to need the data from pages 2 to 100?

    If it is very likely (say, in 90% of the cases users are going to click through many pages of the same result set), then I’d download the whole result in one go, but otherwise, I’d load individual pages as you go.

    Another thing to keep in mind is latency. Every ajax call has a certain latency, depending on the distance (in network topology, not necessarily geographical) between client and server. For the first load, the latency is inevitable, but after that, you need to ask yourself whether fast response is important. Under normal circumstances, it is expected and acceptable, but if your typical use case involves flipping back and forth between pages a lot, then it might become a nuisance, and you might consider buying snappiness for a longer initial loading time.

    If you want to load multiple pages, but the result set is too large (say, thousands or millions of pages), you might think about more sophisticated schemes, e.g., download the requested page and the next 10, or download the requested page immediately and then prefetch the next 10 pages in the background.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting from database list of items ordered by descending date. I use
I have the following XML file getting populated via list view. I can't get
I keep getting a 'List does not exist' error whenever I try and use
How do you get a list of CSS files included in a page via
The following function compares a new list of items to an old one and
i am getting a list of items from sqlite database and place them in
I am getting a list of running processes via LINQ. The two properties I
I'm loading a list view full of items via getJSON. But when I tap
I need some help getting a serialized <ul> list submitted via a AJAX post
I have list view with custom array adapter. I want to get items click

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.