Meteor-Community-Packages / meteor-autocomplete

Client/server autocompletion designed for Meteor's collections and reactivity.
https://atmospherejs.com/mizzao/autocomplete
MIT License
350 stars 109 forks source link

delay for search after typing #71

Open sampaiodiego opened 9 years ago

sampaiodiego commented 9 years ago

I've added a simple delay to make the subscribe after typing to prevent a possible overhead on server for performing a find on every character typed.

marceloschmidt commented 9 years ago

+1

mizzao commented 9 years ago

Happy to do some debouncing here, but I think there is already an inherent one built-in through the reactive computation (on the client).

Have you found that autocomplete is causing performance issues on your server?

jamesgibson14 commented 9 years ago

Adding debouncing or just pulling this into the Master would be great.

mizzao commented 8 years ago

Hi @sampaiodiego - I don't have time to maintain this project anymore, so I gave you commit access to make any changes you'd like. It would be nice to follow the style used by the rest of the code and add some tests to this patch.

If you'd like permission to publish to Meteor under the existing project name, please feel free to send me your Meteor developer username.

mizzao commented 8 years ago

You have been added! https://atmospherejs.com/mizzao/autocomplete

Please do whatever you'd like to maintain and improve the project.