Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Autocomplete List confusion

 
Abhilash Chander
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic