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

  • Home
  • SEARCH
  • 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 6941469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:53:23+00:00 2026-05-27T12:53:23+00:00

I have to handle large amount of data retrieved from server using ajax and

  • 0

I have to handle large amount of data retrieved from server using ajax and store it in JavaScript. I am currently using an array to store all the data. this is how I get data and store it in the javascript:

var buffer=new Array();
//when each ajax returns 
buffer=buffer.concat(JSON.parse(ajaxReq.responseText));

there are two questions in my mind:

  1. Is using an array to store all the data efficient, is there an overflow issue with 1 million rows of data??
  2. How is the concat performance? how can it be optimized here?

thanks for any input.

  • 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-27T12:53:24+00:00Added an answer on May 27, 2026 at 12:53 pm

    It looks like you are dumping your whole database on the client at every pageload, so that at the particular page load he may or may not have to wait for quick ajax responses. This is honestly by far the most insane thing I have ever heard of, and hopefully you can see it as such as well.

    Even if your users wouldn’t have to wait for small ajax calls that don’t really take long (look at google autosuggest), having to have them wait for 1 million database rows to transfer and load in memory on every pageload is even worse user experience.

    What you are doing is only feasible if your data fits in localStorage (5MB), which it probably doesn’t.

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

Sidebar

Related Questions

I have a task to store large amount of gps data and some extra
I am working on a project involving large amount of data from the delicious
I have a large amount of Data, which has to be arranged in the
I have an application that sometimes will utilize a large amount of data. The
I'm gettint a large amount of data from a database query and I'm making
I have an app that needs to handle very large strings between a SQL
I have to handle some sensitive data in my application, such as passwords, credit
I'm using C and sometimes I have to handle paths like C:\Whatever C:\Whatever\ C:\Whatever\Somefile
I have asked a question about how to retrieve data from different tables in
I need to bulk load a large amount of data (about 7.000.000 entries) into

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.