I have thousands of records in Database and I'm giving user interface with just one Textbox where he will be putting date and records will be searched on basis of Date put in textbox. Now searching logic will be like this, ajax call will go to servlet and there all records will be fetched by firing query to database and will be put in Map and send Map back to ajax with JSON format.
Ajax will iterate over the records with each function and will match the records with date equality.Those who are Matched will be shown using .html(header+data)
Now How this whole process can be made faster or is there any another way of showing the tables with thousand records in faster way at just click of the button.I need help on this.Sorry for the BIG question.