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 7853779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:47:59+00:00 2026-06-02T19:47:59+00:00

I was wondering what you think is a better solution for a field which

  • 0

I was wondering what you think is a better solution for a field which searches a table upon every keyup().

  1. AJAX query to search database table, return results
  2. AJAX query to search database table, then store results in a session, search session on subsequent requests
  3. AJAX query to search database table, then store results in a JS object/array, search object/array on subsequent requests

I should note, the table could easily reach 1000 rows but wouldn’t grow to something beyond a few thousand. What is an effective, performance driven way to approach this?

Could this be a good solution?

http://jqueryui.com/demos/autocomplete/

  • 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. Editorial Team
    Editorial Team
    2026-06-02T19:48:00+00:00Added an answer on June 2, 2026 at 7:48 pm

    I think your best bet (making some assumptions based on your comments) would be to cache the results on the server (not session, cache), then consider the lifetime of that cached object. If you are doing a LOT of client side use of that, AND the client side is a browser, you might send it to the client to use after that. Consider that 1000 X 100 would be 100,000 – not huge but still not trial.

    If it is a less optimal client such as a mobile device, you may consider something more optimal for that device set.

    This is all pretty subjective however.

    EDIT: You should be able to structure such that your cache would be used by multiple clients (if they are all the same data set) whereas session would be per user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if anyone could comment on which way is better and WHY?
I was wondering if anyone had an opinion on what they think is the
I think this is just a Best Practices question, but I was wondering if
Just wondering... is there a PHP equivalent to Perl's Taint Mode? I don't think
Being relatively new to programming--think Programming in Objective-C by Kochan, Chapter 15--I'm wondering if
Wondering what is the best or most popular database client tool. Similar to Microsoft's
So i was wondering if i this is OK or if theres another better
I was wondering if theres a realy good (performant) solution how to Convert a
I'm just wondering what the optimal solution is here. Say I have a normalized
I was wondering if there is any nice solution for the following problem: Assuming

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.