top | item 40537255

(no title)

finack | 1 year ago

Crazy idea: provide a search box, and when the user hits "enter", POST the data to the backend, which queries the database, and then returns the relevant results.

discuss

order

10000truths|1 year ago

It's possible to make autosuggest performant on poor Internet connections, it just needs a little more thought put into optimizing for it:

1. Debounce!

2. Use WebSockets to minimize unnecessary round trips

3. Cache previous results and use them when the input is a superstring of a previous input (e.g. results for "Android mobile dev" will always be a subset of the results for "mobile dev")

szundi|1 year ago

Crazy straightforward