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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:19:19+00:00 2026-05-12T19:19:19+00:00

I guess no one will have a definative answer to this but considered predictions

  • 0

I guess no one will have a definative answer to this but considered predictions would be appriciated.

I am in the process of developing a mySQL database for a web application and my question is:

Is it more efficient to make a single query that returns a single row using AJAX

or

To request 100 – 700 rows when the user will likely only ever use the results of two or three?

Really I am asking what is heavier for the server 2-3 requests with one result or 1 request with 100 – 700 results?

Thanks,

Mark

  • 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-12T19:19:19+00:00Added an answer on May 12, 2026 at 7:19 pm

    You may want to time how long it takes to get the data from the database. If it takes too long, which will need to be determined by you, but I would guess is over 10 seconds, then you may want to break it into smaller requests, but 700 would be much. You could determine how long you want it to take, but you may want to try to get it to take less than 1 second for each request, and see how many requests that will take.

    Profiling is important, as the database may not be the problem. If you are building a large table, for example, with 1000 rows, then if you fully create the table then render it, that will take a while.

    Your best bet is to use firebug, in firefox, and see how long it actually took to get the data, since you have already profiled how long the database connection actually takes, and then you can see how long it seems to take to display the data once the information returned from the server.

    Profiling is your best bet, as firebug allows you to profile javascript, to see if you really need to optimize the database.

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

Sidebar

Related Questions

This is probably an easy one, but I'm missing something I guess. The problem
I would like to have a step line chart like this one, using D3
Have looked for an answer here, but couldn't find one. When you call: myTableAdapter.Update(myDataTable);
I'm developing an app which will have a central database users can add entries
I´m currently developing a Struts2 app where a user will make one of three
As you will guess i'm new to php. Thanks for your help. I have
I'm posting this as a vent for my questions (I will have a multitude).
I have this homework that I gotta finish, but then something about it is
I have a ul with several li elements, one of them will always have
I guess this is a pretty beginner question, I know that generally you will

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.