I’d like to enable autocomplete on some text fields and don’t really know the best strategy to go with. All data is stored in CouchDB and I have some views which return the id and the key with the names for autocompletion. I read about the start key and end key solution and I’d like to use this with now.js. How would that look like?
Is that the right solution to go with or should I rather synchronize with redis or memcache? Or fill a Trie with the list? Or HTMl5 local storage?
The data is used on the main page, so it’s queried very often, but the set is not very large, maybe up to 500 entries, changing approx. once per week.
I used now.js autocomplete with CouchDB Typeahead Search and the results were very good. Didn’t want to install another library (YUI).