{"action":"created","issue":{"url":"https://api.github.com/repos/GroundMeteor/db/issues/89","labels_url":"https://api.github.com/repos/GroundMeteor/db/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/GroundMeteor/db/issues/89/comments","events_url":"https://api.github.com/repos/GroundMeteor/db/issues/89/events","html_url":"https://github.com/GroundMeteor/db/issues/89","id":65326627,"number":89,"title":"Local-only Ground collection freezes browser on page load","user":{"login":"gwendall","id":329887,"avatar_url":"https://avatars.githubusercontent.com/u/329887?v=3","gravatar_id":"","url":"https://api.github.com/users/gwendall","html_url":"https://github.com/gwendall","followers_url":"https://api.github.com/users/gwendall/followers","following_url":"https://api.github.com/users/gwendall/following{/other_user}","gists_url":"https://api.github.com/users/gwendall/gists{/gist_id}","starred_url":"https://api.github.com/users/gwendall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwendall/subscriptions","organizations_url":"https://api.github.com/users/gwendall/orgs","repos_url":"https://api.github.com/users/gwendall/repos","events_url":"https://api.github.com/users/gwendall/events{/privacy}","received_events_url":"https://api.github.com/users/gwendall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-30T23:23:27Z","updated_at":"2015-04-08T13:27:20Z","closed_at":null,"body":"I have a local-only Ground collection (containing about a thousand docs) with a template rendering its documents.\r\n```javascript\r\nCollection = new Ground.Collection(\"xxx\", { connection: null });\r\nTemplate.list.helpers({\r\n  items: function() {\r\n    return Collection.find({}, { limit: 10 });\r\n  }\r\n});\r\n```\r\nWhenever I load the page, the browser freezes (CPU usage goes to 100%) for a few seconds, then things get back to normal and the elements get displayed. Is that a known bug? How could I circumvent that?"},"comment":{"url":"https://api.github.com/repos/GroundMeteor/db/issues/comments/90915217","html_url":"https://github.com/GroundMeteor/db/issues/89#issuecomment-90915217","issue_url":"https://api.github.com/repos/GroundMeteor/db/issues/89","id":90915217,"user":{"login":"nicolsondsouza","id":3874384,"avatar_url":"https://avatars.githubusercontent.com/u/3874384?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolsondsouza","html_url":"https://github.com/nicolsondsouza","followers_url":"https://api.github.com/users/nicolsondsouza/followers","following_url":"https://api.github.com/users/nicolsondsouza/following{/other_user}","gists_url":"https://api.github.com/users/nicolsondsouza/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolsondsouza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolsondsouza/subscriptions","organizations_url":"https://api.github.com/users/nicolsondsouza/orgs","repos_url":"https://api.github.com/users/nicolsondsouza/repos","events_url":"https://api.github.com/users/nicolsondsouza/events{/privacy}","received_events_url":"https://api.github.com/users/nicolsondsouza/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T13:27:20Z","updated_at":"2015-04-08T13:27:20Z","body":"Because of this problem, \r\nI created my own Local storage,\r\nwhich act similar to groundDB,\r\nbut not as good as groundDB,\r\nyup but does the trick,\r\n\r\nIt is call on startup, to restore data,\r\nand it is called on when session is about to end to store the data,\r\nthis way, the problem is fixed."}}