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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 77k
  • Answers 77k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer If you want your model to work that way, change… May 11, 2026 at 3:17 pm
  • added an answer When i use my extension method in a simple query,… May 11, 2026 at 3:17 pm
  • added an answer You can't easily use a range here because the iterator… May 11, 2026 at 3:17 pm

Related Questions

In my website, users have the possibility to store links. During typing the internet
In my website's advanced search screen there are about 15 fields that need an
My dilema: In .htaccess in my website's root: RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
On my website I use PHP sessions. Session information is stored in files in
I want place ads in my website, but I'm unsure about the common practices

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.