I am using this plugin of autocomplete, my doubt is that I do not decide whether to provide the list of elements to filter via AJAX or store it locally, because if it is via AJAX you will be making queries to the database of type LIKE "%queryDelUsuario%"
that from what I understand is very slow each Once the user types in the search engine. But I do not know how convenient it is to store it locally when the item number increases to 100,000 (just to give an example).
Which of the options is more optimal when the number of elements tends to be increasingly higher?