I'm building an autocomplete feature for an input box which is similar to Google's Instant Search.
I need to have an instant response for the autocomplete feature. The table I'm executing the query with the term in it has hundreds of thousands of records and more that a hundred of columns. For example: 500,000 records, 120 columns.
So, I have two issues:
By the way, I'm using the Joomla framework which might cause some slow down, too.
Use Indexing
on Field which you want to show in autocomplete from your Database.
Auto-complete can be triggered when the user input is at-least 3 characters long.
If possible consider to use a nosql database like Mongodb or Cassandra for this table as they are made for that kind of data, especially if the data will grow. To transport the data from the server to the client use json.