{"action":"created","issue":{"url":"https://api.github.com/repos/idno/Known/issues/1136","labels_url":"https://api.github.com/repos/idno/Known/issues/1136/labels{/name}","comments_url":"https://api.github.com/repos/idno/Known/issues/1136/comments","events_url":"https://api.github.com/repos/idno/Known/issues/1136/events","html_url":"https://github.com/idno/Known/pull/1136","id":126350034,"number":1136,"title":"Call db->optimize at most once a day","user":{"login":"kylewm","id":950127,"avatar_url":"https://avatars.githubusercontent.com/u/950127?v=3","gravatar_id":"","url":"https://api.github.com/users/kylewm","html_url":"https://github.com/kylewm","followers_url":"https://api.github.com/users/kylewm/followers","following_url":"https://api.github.com/users/kylewm/following{/other_user}","gists_url":"https://api.github.com/users/kylewm/gists{/gist_id}","starred_url":"https://api.github.com/users/kylewm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylewm/subscriptions","organizations_url":"https://api.github.com/users/kylewm/orgs","repos_url":"https://api.github.com/users/kylewm/repos","events_url":"https://api.github.com/users/kylewm/events{/privacy}","received_events_url":"https://api.github.com/users/kylewm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-13T06:20:17Z","updated_at":"2016-01-13T09:10:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/idno/Known/pulls/1136","html_url":"https://github.com/idno/Known/pull/1136","diff_url":"https://github.com/idno/Known/pull/1136.diff","patch_url":"https://github.com/idno/Known/pull/1136.patch"},"body":"Loading /admin/ takes a while because of a call to db->optimize().\r\nThis PR throttles it so that it will only call optimize if it's been\r\nmore than 24 hours since the last call. I'm open to other ideas too\r\n(including leaving it alone)"},"comment":{"url":"https://api.github.com/repos/idno/Known/issues/comments/171222062","html_url":"https://github.com/idno/Known/pull/1136#issuecomment-171222062","issue_url":"https://api.github.com/repos/idno/Known/issues/1136","id":171222062,"user":{"login":"physcocode","id":7591484,"avatar_url":"https://avatars.githubusercontent.com/u/7591484?v=3","gravatar_id":"","url":"https://api.github.com/users/physcocode","html_url":"https://github.com/physcocode","followers_url":"https://api.github.com/users/physcocode/followers","following_url":"https://api.github.com/users/physcocode/following{/other_user}","gists_url":"https://api.github.com/users/physcocode/gists{/gist_id}","starred_url":"https://api.github.com/users/physcocode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/physcocode/subscriptions","organizations_url":"https://api.github.com/users/physcocode/orgs","repos_url":"https://api.github.com/users/physcocode/repos","events_url":"https://api.github.com/users/physcocode/events{/privacy}","received_events_url":"https://api.github.com/users/physcocode/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T09:10:45Z","updated_at":"2016-01-13T09:10:45Z","body":"+1 i was actually thinking about this\r\n"}}