What is the secret of pulling up items that match the characters entered in the search bar that respond instantly? For example, if I type the letter βWβ in the search bar, all phrases containing the letter βWβ at any position of the character within the phrase are returned immediately.
So, if the database of 20,000 phrases contains 500 phrases with the letter "W", they will appear as soon as the user types the first character. Then, when additional characters are typed, the list will automatically decrease.
I can send a query to the SQL server from the iPhone and get this type of response, however, no matter what we try to use other offers, we still cannot get a good response time when storing the database locally on the iPhone.
I know that this performance is available because there are many other applications that display results immediately after entering text.
Please note that this is not the same as indexing all the words in each phrase, as this will only result in matches when the word begins with the character entered. In this case, we are looking for characters in words.
source share