{"action":"created","issue":{"url":"https://api.github.com/repos/Urigo/angular-meteor/issues/400","labels_url":"https://api.github.com/repos/Urigo/angular-meteor/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/Urigo/angular-meteor/issues/400/comments","events_url":"https://api.github.com/repos/Urigo/angular-meteor/issues/400/events","html_url":"https://github.com/Urigo/angular-meteor/issues/400","id":84540984,"number":400,"title":"How to stop mini mongo collections getting to big?","user":{"login":"JohnAReid","id":7714810,"avatar_url":"https://avatars.githubusercontent.com/u/7714810?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnAReid","html_url":"https://github.com/JohnAReid","followers_url":"https://api.github.com/users/JohnAReid/followers","following_url":"https://api.github.com/users/JohnAReid/following{/other_user}","gists_url":"https://api.github.com/users/JohnAReid/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnAReid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnAReid/subscriptions","organizations_url":"https://api.github.com/users/JohnAReid/orgs","repos_url":"https://api.github.com/users/JohnAReid/repos","events_url":"https://api.github.com/users/JohnAReid/events{/privacy}","received_events_url":"https://api.github.com/users/JohnAReid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-03T12:38:40Z","updated_at":"2015-06-03T13:15:32Z","closed_at":null,"body":"Is there a way to clear the existing mini mongo collection before making a $meteor.subscribe call. \r\n\r\nI am finding that the code is getting slower (performing a find on the collection) as the client collection is getting larger each time a new $meteor.subscribe is made, and the client collection most likely contains data no longer required."},"comment":{"url":"https://api.github.com/repos/Urigo/angular-meteor/issues/comments/108402297","html_url":"https://github.com/Urigo/angular-meteor/issues/400#issuecomment-108402297","issue_url":"https://api.github.com/repos/Urigo/angular-meteor/issues/400","id":108402297,"user":{"login":"JohnAReid","id":7714810,"avatar_url":"https://avatars.githubusercontent.com/u/7714810?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnAReid","html_url":"https://github.com/JohnAReid","followers_url":"https://api.github.com/users/JohnAReid/followers","following_url":"https://api.github.com/users/JohnAReid/following{/other_user}","gists_url":"https://api.github.com/users/JohnAReid/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnAReid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnAReid/subscriptions","organizations_url":"https://api.github.com/users/JohnAReid/orgs","repos_url":"https://api.github.com/users/JohnAReid/repos","events_url":"https://api.github.com/users/JohnAReid/events{/privacy}","received_events_url":"https://api.github.com/users/JohnAReid/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T13:15:32Z","updated_at":"2015-06-03T13:15:32Z","body":"This is something I have been working on and making sure my search is on the _id field whenever possible.\r\n\r\nMy concern is really with linking the collection to the $scope object, if the whole collection on the client is exposed to the $scope does this not create extra overheads.    Is it not possible to allocate the collection to a variable within the controller and then clear that variable by setting it to null?"}}