• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Autocomplete List confusion

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I'm implementing automcomplete in my struts 2 project. I have a list of around 15000 values in my database, which will be displayed as suggestions to the user. Now I am not really sure wheather I should fetch them everytime user enters a new letter in to the textbox. Because that will make the autocomplete very slow and of no real use to the user. As an alternate to that I was thinking of storing all the values in some scope of my application like Application scope because the auto complete will appear on each page of my project. But is that a good practice I'm not sure. So what can be the most efficient way to store these values so that the response of autocomplete is good and can be helpful to the users. Thanks for your time and efforts.


Regards
Abhilash
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic