SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast briercan's Avatar
    Join Date
    Nov 2006
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can I make my ajax any faster?

    If yes, then how?
    Here's the page:
    http://thisplaceiknow.com/search/

    The page initially pulls the data from a sql server using coldfusion, and populates the map. When you enter any search terms or change any of the options, it calls an ajax request for an xml file to populate the list of places and add points to the map. It just seems slow, and I haven't been able to make it any quicker. Any suggestions would help. Thanks.
    thisplaceiknow.com - Search for and submit real-life places.
    (Those are the ones that don't start with http://)

  2. #2
    SitePoint Addict jtrelfa's Avatar
    Join Date
    Oct 2004
    Location
    Troy, Mi
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are a couple of things that can make it "faster"
    1. Optimize your server-side code to ensure that you aren't making unnecessary round trips to the database. For example, if the user checked the "wifi" box without changing the other parameters, why not have the result set cached rather than re-query?
    2. You're cookie size can impact performance: http://yuiblog.com/blog/2007/03/01/p...search-part-3/
    3. If you're using shared hosting, you can't always guarantee the speed of your connection. Consider dedicated hosting


    The only other suggestion is to look for places where you can cache information to minimize trips to the server and/or the database.

  3. #3
    SitePoint Member
    Join Date
    Feb 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cool site briercan. Good idea too, first time i have seen something like this implemented.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •