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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:14:10+00:00 2026-05-25T10:14:10+00:00

I am developping an application that retrieves some data from a server. I have

  • 0

I am developping an application that retrieves some data from a server.
I have two options:

  • Get the whole data set from the server and then work with it using the pattern ‘singleton’ to reduce the number of queries

  • For each query, get the corresponding data set from the server

What is the best choice?

  • 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-25T10:14:10+00:00Added an answer on May 25, 2026 at 10:14 am

    In my opinion it depends.

    It depends on the size of the data and if it even makes sense to return data that your user may not even need.

    Personally, in my app that I am building I will be returning only the data that is required at that time. Obviously though, once I have the data I won’t be fetching it again if it makes sense to keep hold of it for good or even just temporarily.

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

Sidebar

Related Questions

I am developing an iPhone application that retrieves the data from remote MySQL server.
I am developing an application that needs to retrieve some data from a web
I'm developing an asp.net application that has some potentially large data tables. I would
I'm developing an application which read some data from a db. The connection to
I'm developing an android application. I retrieve some data that looks like this: <a
I've developing an ASP.NET application that interfaces with Google Maps and retrieves marker information
I am developing an application that involves some sensitive user information. I retrieve this
I'm developing a Web application. I need to display some decimal data correctly so
I'm developing a Java application that has performance at its core. I have a
I have never really done any serious testing other then writing some simple Java

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.