Computing.Net > Forums > Web Development > Javascript database

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Javascript database

Reply to Message Icon

Name: smumdax
Date: August 1, 2005 at 08:34:59 Pacific
OS: XP
CPU/Ram: whatever
Comment:

I've been spending about 10 hours on creating a sort of Javascript database... just to find out that the computer that'll be using it is so slow that it takes about 4 minutes to give results of a search query..
Here's the details:
- I have about 60 000 entries.
- To make design & update easier, I've separated the list into 25 js files.
- Each js files is an new Array creator with the entries being new values to the array.
- I have a search script that looks at each entrie to find the query and then display it in the document.

Problem is: with 60k+ entries, the search takes an eternity to complete on a slow compu (under P3-500Mhz)

Is there any way to speed up the process? If it implies changing my entire program and using something else, I'm open to it (now that's a first!)



Sponsored Link
Ads by Google

Response Number 1
Name: Laler
Date: August 1, 2005 at 11:18:07 Pacific
Reply:

using something else, I'm open to it (now that's a first!)

Use a serverside scripting (and a database server)? :D At least the process will be done in the server, the visitor's browser will only need to parse HTML.

Learning one like PHP isn't hard if you have a programmer's logic, Most different programming languages only have different syntax. You can start in php.net, phpfreaks.com, this forum, and a lot more.

---
Site of the Day


0

Response Number 2
Name: smumdax
Date: August 1, 2005 at 19:19:10 Pacific
Reply:

Well.. nice try Laler... sorry to disappoint you. I'm stuck with a working environnement that doesn't give me the possibility to use PHP... If I could, trust me I would be using it. PHP is one that I use very often! :D

Here's the catch: I don't have any internet access on the computer. This script I'm creating will be used ocally, not on a server.

So... right now, a real database isn't possible. That's why I reverted to an Javascript Array and tried my best with what I was given.. but now I'm stuck again.

Any more ideas?


0

Response Number 3
Name: Laler
Date: August 1, 2005 at 20:28:42 Pacific
Reply:

ah ic :D

well, I have no idea then. using offline webserver like dwebpro or mini-apache will give even slower result on a 500 MHz PC, don't you think?

I have a P3 866 Mhz. With it, opening page with 'javascript fading rollover' annoys me, with any browser =D So I don't see how it'll work with your 60000 rows database smoothly.

Maybe someone will have a better idea :D

---
Site of the Day


0

Response Number 4
Name: anonproxy
Date: August 1, 2005 at 20:42:51 Pacific
Reply:

Yeah, javascript in-browser is not a data-crunching language. Browsers are notorious for js memory leaks anyway. I would even choose use an Excel VBA over this. But you can still use a java applet or flash object. These runtimes are more performance-oriented.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Javascript database

'active' drop-down lists www.computing.net/answers/webdevel/active-dropdown-lists/2861.html

drop down menu database link www.computing.net/answers/webdevel/drop-down-menu-database-link/1447.html

javascript onclick add member www.computing.net/answers/webdevel/javascript-onclick-add-member/2028.html