Fastest way to search large list
User will enter their account number into a web page. I then get a list from my database (will be about 100,000+ entries), and search to see if the account number is present, and forward to a new web page based on the results of the search.
Any thoughts on the fastest way to search a large list? The list has will have other data in it besides the account number.
My thoughts:
1. get the list
2. sort the list
3. use binary search?
List accountNumberList = getTheList();
Collections.sort(accountNumberList );
Message was edited by:
chet0264

