I am wondering what is the best way to make a live search using Meteor and React-Native.
So we should do the search inside a MongoDB collection.
What is the best way? Subscribe everytime the text change? Subscribe once and get all the data and in local filter the data? ...
Thanks!
Depends on the size of the collection to be searched.
A variation of client-side search is that you just publish the field that you're going to search on then when the document is found you subscribe to a publication that gives you the rest of the fields for that one document.