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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:27:07+00:00 2026-05-11T08:27:07+00:00

In my website’s advanced search screen there are about 15 fields that need an

  • 0

In my website’s advanced search screen there are about 15 fields that need an autocomplete field.
Their content is all depending on each other’s value (so if one is filled in, the other’s content will change depending on the first’s value).
Most of the fields have a huge amount of possibilities (1000’s of entries at least).

Currently make an ajax call if the user stops typing for half a second. This ajax call makes a quick call to my Lucene index and returns a bunch of JSon objects. The method itself is really fast, but it’s the connection and transferring of data that is too slow.

If I look at other sites (say facebook), their autocomplete is instant. I figure they put the possible values in their HTML, so they don’t have to do a round trip. But I fear with the amounts of data I’m handling, this is not an option.

Any ideas?

  • 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. 2026-05-11T08:27:07+00:00Added an answer on May 11, 2026 at 8:27 am
    1. Return only top x results.
    2. Get some trends about what users are picking, and order based on that, preferably automatically.
    3. Cache results for every URL & keystroke combination, so that you don’t have to round-trip if you’ve already fetched the result before.
    4. Share this cache with all autocompletes that use the same URL & keystroke combination.
    5. Of course, enable gzip compression for the JSON, and ensure you’re setting your cache headers to cache for some time. The time depends on your rate of change of autocomplete response.
    6. Optimize the JSON to send down the bare minimum. Don’t send down anything you don’t need.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My website has a search procedure that runs very slowly. One thing that slows
Website: http://www.animefushigi.com Make your browser window skinny, note that there is no horizontal scroll
My website structure is a header, content, footer. My goal is that every time
My website makes a lot of requests. I often need to cancel all current
My website is 900px witdth. Is there anything I can do that through facebook
My website was designed for firefox, and now that I've got most of the
My website has a sponsorship system that allows users to invite friends by email
My website has been broken since Dreamhost upgraded their servers a couple of weeks
My website has somewhat graceful degradation in the sense that if JS is disabled,
My website has tons of large images that reduces my site speed. I want

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.