Advertisement

07.15.2007 at 11:13AM PDT, ID: 22697423
[x]
Attachment Details

Loading csv file to a javascript variable on page load

Asked by techbie in PHP Scripting Language, JavaScript

Tags: javascript, csv, file, load, variable

Hi all,

I have a requirement. I hope u all have seen Google suggest website. I have a similar lookup to be done using php. I have my data available both in database as well as a file in the server. I have done an AJAX call to create the similar lookup. Now performance is getting an issue. There will be about 500 to 1000 users at a time. So all the people doing this operation will make the server very slow.

Is there any way, I can load all the information to a local variable and do a direct javascript call instead of Ajax. My data contains about 50,000 records (one word in each record. The records can increase to 1 lakh).

Will this be a feasible solution. Will javascript variable be able to hold this much data. Should I create a cookie to do this..

I am not sure whether this is a feasible solution or not..

please tell me a good optimal solution to handle this problem

techbie

Start Free Trial
[+][-]07.15.2007 at 12:27PM PDT, ID: 19491583

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2007 at 01:05PM PDT, ID: 19491682

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, JavaScript
Tags: javascript, csv, file, load, variable
Sign Up Now!
Solution Provided By: ray-solomon
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.21.2007 at 02:43PM PDT, ID: 19540691

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.21.2007 at 10:59PM PDT, ID: 19541701

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2007 at 07:55AM PDT, ID: 19556682

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32