In my Rails app, I want to an incremental search (like autocomplete) through the Customer
table in the DB, looking for names, and showing the results as you type, Google Instant-style.
My brief research for gems or examples that might help in this scenario didn't provide any useful results.
Is there a Rails way to implement this?
The only issue I can think of is that that having approx. 500k records in the DB (even if the name related columns are indexed) might slow down the responsiveness.
As a solution for that, the ajax request might be triggered only after typing in the first 4-5 characters.
Any other suggestions, leads, issues, ideas, comments?
Use this: Tokeninput
and here is Railscast for it: TokenInput railscast
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With