{"action":"created","issue":{"url":"https://api.github.com/repos/freekmurze/activitylog/issues/5","labels_url":"https://api.github.com/repos/freekmurze/activitylog/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/freekmurze/activitylog/issues/5/comments","events_url":"https://api.github.com/repos/freekmurze/activitylog/issues/5/events","html_url":"https://github.com/freekmurze/activitylog/issues/5","id":68353381,"number":5,"title":"Batch inserts","user":{"login":"philipmclifton","id":3420435,"avatar_url":"https://avatars.githubusercontent.com/u/3420435?v=3","gravatar_id":"","url":"https://api.github.com/users/philipmclifton","html_url":"https://github.com/philipmclifton","followers_url":"https://api.github.com/users/philipmclifton/followers","following_url":"https://api.github.com/users/philipmclifton/following{/other_user}","gists_url":"https://api.github.com/users/philipmclifton/gists{/gist_id}","starred_url":"https://api.github.com/users/philipmclifton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipmclifton/subscriptions","organizations_url":"https://api.github.com/users/philipmclifton/orgs","repos_url":"https://api.github.com/users/philipmclifton/repos","events_url":"https://api.github.com/users/philipmclifton/events{/privacy}","received_events_url":"https://api.github.com/users/philipmclifton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-14T12:15:00Z","updated_at":"2015-04-14T12:17:06Z","closed_at":null,"body":"Hi, Nice work, everything works perfectly.\r\n\r\nOne suggestion. \r\n\r\nInstead of creating an entry on every event and ramping up the database calls why not store all the events in an array and running a batch insert at the end of the request with the __destruct method?\r\n\r\nOn normal request this isn't an issue but if looping through data and creating entries the query count is 2x.\r\n\r\nSomething like this might work?\r\n\r\nhttps://github.com/philipmclifton/activitylog"},"comment":{"url":"https://api.github.com/repos/freekmurze/activitylog/issues/comments/92788182","html_url":"https://github.com/freekmurze/activitylog/issues/5#issuecomment-92788182","issue_url":"https://api.github.com/repos/freekmurze/activitylog/issues/5","id":92788182,"user":{"login":"philipmclifton","id":3420435,"avatar_url":"https://avatars.githubusercontent.com/u/3420435?v=3","gravatar_id":"","url":"https://api.github.com/users/philipmclifton","html_url":"https://github.com/philipmclifton","followers_url":"https://api.github.com/users/philipmclifton/followers","following_url":"https://api.github.com/users/philipmclifton/following{/other_user}","gists_url":"https://api.github.com/users/philipmclifton/gists{/gist_id}","starred_url":"https://api.github.com/users/philipmclifton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipmclifton/subscriptions","organizations_url":"https://api.github.com/users/philipmclifton/orgs","repos_url":"https://api.github.com/users/philipmclifton/repos","events_url":"https://api.github.com/users/philipmclifton/events{/privacy}","received_events_url":"https://api.github.com/users/philipmclifton/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T12:17:06Z","updated_at":"2015-04-14T12:17:06Z","body":"Please note: according to tests, not working code."}}