• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

AJAX - Slow

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to build one web app using AJAX. This application will connect a backend database server based on the input user has entered. I am sending data to servlet after every keystore. I am getting required results but the only problem here is its very slow.

Does any one has some information on guidelines for AJAX application.

Any help in this context is appreciated,

Vinod
 
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This doesn't exactly sound like an Ajax issue, rather, you need to look closely at the performance of your servlet and the data retrieval process. From what I've seen, Ajax is relatively fast and should not introduce any substantial performance issues on its own.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can be slow depending on connection, the processing on the server and the processing on the client(browser). It is never going to react like a client application.

Ways to speed it up is to streamline the process. Questions you need to ask yourself is: Do you really need to make a request for every keystroke? Are you aborting requests when another key is typed? Do you have caching on the client?

Eric
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course it will be slow if you hit server on every key stroke. figure out whether you really required to send request to server for each key storke.
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Vinod Chamoli:
Does any one has some information on guidelines for AJAX application.
Any help in this context is appreciated,


May be you can use the implementation idea behind

dissect google suggest
 
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Jeffrey Hunter:
This doesn't exactly sound like an Ajax issue, rather, you need to look closely at the performance of your servlet and the data retrieval process. From what I've seen, Ajax is relatively fast and should not introduce any substantial performance issues on its own.



Your webiste is one of pretty cool personal website that i have seen. Congrats.
 
Jeffrey Hunter
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Balaji. I'm eager to return to the Ranch after a long hiatus, especially as AJAX is apparently a very "hot" topic here and as a developer, this seems like the place to be to get a grasp on it.
 
She still doesn't approve of my superhero lifestyle. Or this shameless plug:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic