on-internet
← Community

How to optimize collection subscription in Meteor?

Stack Overflow ·

I'm working on a filtered live search module with Meteor.js. Usecase & problem: A user wants to do a search through all the users to find friends. But I cannot afford for each user to ask the complete users collection. The user filters the search using checkboxes. I'd like to subscribe to the matched users. What is the best way to do it? I guess it would be better to create the query client-side, then send it the the method to get back the desired set of users. But, I wonder : when the filtering criteria changes, does the new subscription erase all of the old one? Because, if I do a first sear

Comments

Sign in or sign up to comment and upvote.

No comments yet.