{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla-services/autopush/issues/143","labels_url":"https://api.github.com/repos/mozilla-services/autopush/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/mozilla-services/autopush/issues/143/comments","events_url":"https://api.github.com/repos/mozilla-services/autopush/issues/143/events","html_url":"https://github.com/mozilla-services/autopush/issues/143","id":103542438,"number":143,"title":"Prevent notification overload","user":{"login":"bbangert","id":100193,"avatar_url":"https://avatars.githubusercontent.com/u/100193?v=3","gravatar_id":"","url":"https://api.github.com/users/bbangert","html_url":"https://github.com/bbangert","followers_url":"https://api.github.com/users/bbangert/followers","following_url":"https://api.github.com/users/bbangert/following{/other_user}","gists_url":"https://api.github.com/users/bbangert/gists{/gist_id}","starred_url":"https://api.github.com/users/bbangert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbangert/subscriptions","organizations_url":"https://api.github.com/users/bbangert/orgs","repos_url":"https://api.github.com/users/bbangert/repos","events_url":"https://api.github.com/users/bbangert/events{/privacy}","received_events_url":"https://api.github.com/users/bbangert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-27T16:03:38Z","updated_at":"2015-08-27T16:03:38Z","closed_at":null,"body":"We should not store indefinite lists of notifications per-user, as is done at the moment. One way to do this in a fairly efficient manner might be during a notification, 10% of the time, we check the count of notifications for the user, and if it exceeds the max notifications we want to hold per user, do a trim operation immediately."}}