{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/nicolasmartinelli/oomusic/pulls/4","id":90327950,"html_url":"https://github.com/nicolasmartinelli/oomusic/pull/4","diff_url":"https://github.com/nicolasmartinelli/oomusic/pull/4.diff","patch_url":"https://github.com/nicolasmartinelli/oomusic/pull/4.patch","issue_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/issues/4","number":4,"state":"closed","locked":false,"title":"Optimize adding track to playlist","user":{"login":"Etana","id":207256,"avatar_url":"https://avatars.githubusercontent.com/u/207256?v=3","gravatar_id":"","url":"https://api.github.com/users/Etana","html_url":"https://github.com/Etana","followers_url":"https://api.github.com/users/Etana/followers","following_url":"https://api.github.com/users/Etana/following{/other_user}","gists_url":"https://api.github.com/users/Etana/gists{/gist_id}","starred_url":"https://api.github.com/users/Etana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Etana/subscriptions","organizations_url":"https://api.github.com/users/Etana/orgs","repos_url":"https://api.github.com/users/Etana/repos","events_url":"https://api.github.com/users/Etana/events{/privacy}","received_events_url":"https://api.github.com/users/Etana/received_events","type":"User","site_admin":false},"body":"In a scenario of adding 1000 tracks to a playlist with 2000 tracks, this speed the time from 3 minutes to 6 seconds.\r\n\r\nIt is possible that the better slowness was from `PlaylistLine.create` which would maybe invalidate the next `self.playlist_line_ids.mapped('track_id')`.","created_at":"2016-10-21T06:13:25Z","updated_at":"2016-10-21T09:33:44Z","closed_at":"2016-10-21T09:33:44Z","merged_at":null,"merge_commit_sha":"2139658cef23ac43cbd05bafc5b87897a154900f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/pulls/4/commits","review_comments_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/pulls/4/comments","review_comment_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/issues/4/comments","statuses_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/statuses/f5468b4307c2f3040ef4ce5b308ad62979b2cd68","head":{"label":"Etana:patch-1","ref":"patch-1","sha":"f5468b4307c2f3040ef4ce5b308ad62979b2cd68","user":{"login":"Etana","id":207256,"avatar_url":"https://avatars.githubusercontent.com/u/207256?v=3","gravatar_id":"","url":"https://api.github.com/users/Etana","html_url":"https://github.com/Etana","followers_url":"https://api.github.com/users/Etana/followers","following_url":"https://api.github.com/users/Etana/following{/other_user}","gists_url":"https://api.github.com/users/Etana/gists{/gist_id}","starred_url":"https://api.github.com/users/Etana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Etana/subscriptions","organizations_url":"https://api.github.com/users/Etana/orgs","repos_url":"https://api.github.com/users/Etana/repos","events_url":"https://api.github.com/users/Etana/events{/privacy}","received_events_url":"https://api.github.com/users/Etana/received_events","type":"User","site_admin":false},"repo":{"id":71534922,"name":"oomusic","full_name":"Etana/oomusic","owner":{"login":"Etana","id":207256,"avatar_url":"https://avatars.githubusercontent.com/u/207256?v=3","gravatar_id":"","url":"https://api.github.com/users/Etana","html_url":"https://github.com/Etana","followers_url":"https://api.github.com/users/Etana/followers","following_url":"https://api.github.com/users/Etana/following{/other_user}","gists_url":"https://api.github.com/users/Etana/gists{/gist_id}","starred_url":"https://api.github.com/users/Etana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Etana/subscriptions","organizations_url":"https://api.github.com/users/Etana/orgs","repos_url":"https://api.github.com/users/Etana/repos","events_url":"https://api.github.com/users/Etana/events{/privacy}","received_events_url":"https://api.github.com/users/Etana/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Etana/oomusic","description":null,"fork":true,"url":"https://api.github.com/repos/Etana/oomusic","forks_url":"https://api.github.com/repos/Etana/oomusic/forks","keys_url":"https://api.github.com/repos/Etana/oomusic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Etana/oomusic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Etana/oomusic/teams","hooks_url":"https://api.github.com/repos/Etana/oomusic/hooks","issue_events_url":"https://api.github.com/repos/Etana/oomusic/issues/events{/number}","events_url":"https://api.github.com/repos/Etana/oomusic/events","assignees_url":"https://api.github.com/repos/Etana/oomusic/assignees{/user}","branches_url":"https://api.github.com/repos/Etana/oomusic/branches{/branch}","tags_url":"https://api.github.com/repos/Etana/oomusic/tags","blobs_url":"https://api.github.com/repos/Etana/oomusic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Etana/oomusic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Etana/oomusic/git/refs{/sha}","trees_url":"https://api.github.com/repos/Etana/oomusic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Etana/oomusic/statuses/{sha}","languages_url":"https://api.github.com/repos/Etana/oomusic/languages","stargazers_url":"https://api.github.com/repos/Etana/oomusic/stargazers","contributors_url":"https://api.github.com/repos/Etana/oomusic/contributors","subscribers_url":"https://api.github.com/repos/Etana/oomusic/subscribers","subscription_url":"https://api.github.com/repos/Etana/oomusic/subscription","commits_url":"https://api.github.com/repos/Etana/oomusic/commits{/sha}","git_commits_url":"https://api.github.com/repos/Etana/oomusic/git/commits{/sha}","comments_url":"https://api.github.com/repos/Etana/oomusic/comments{/number}","issue_comment_url":"https://api.github.com/repos/Etana/oomusic/issues/comments{/number}","contents_url":"https://api.github.com/repos/Etana/oomusic/contents/{+path}","compare_url":"https://api.github.com/repos/Etana/oomusic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Etana/oomusic/merges","archive_url":"https://api.github.com/repos/Etana/oomusic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Etana/oomusic/downloads","issues_url":"https://api.github.com/repos/Etana/oomusic/issues{/number}","pulls_url":"https://api.github.com/repos/Etana/oomusic/pulls{/number}","milestones_url":"https://api.github.com/repos/Etana/oomusic/milestones{/number}","notifications_url":"https://api.github.com/repos/Etana/oomusic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Etana/oomusic/labels{/name}","releases_url":"https://api.github.com/repos/Etana/oomusic/releases{/id}","deployments_url":"https://api.github.com/repos/Etana/oomusic/deployments","created_at":"2016-10-21T06:05:49Z","updated_at":"2016-10-21T06:05:50Z","pushed_at":"2016-10-21T09:25:33Z","git_url":"git://github.com/Etana/oomusic.git","ssh_url":"git@github.com:Etana/oomusic.git","clone_url":"https://github.com/Etana/oomusic.git","svn_url":"https://github.com/Etana/oomusic","homepage":null,"size":262,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nicolasmartinelli:master","ref":"master","sha":"0aed9026a741963bc68c5239176ff3c2fcc8f6be","user":{"login":"nicolasmartinelli","id":386952,"avatar_url":"https://avatars.githubusercontent.com/u/386952?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasmartinelli","html_url":"https://github.com/nicolasmartinelli","followers_url":"https://api.github.com/users/nicolasmartinelli/followers","following_url":"https://api.github.com/users/nicolasmartinelli/following{/other_user}","gists_url":"https://api.github.com/users/nicolasmartinelli/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasmartinelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasmartinelli/subscriptions","organizations_url":"https://api.github.com/users/nicolasmartinelli/orgs","repos_url":"https://api.github.com/users/nicolasmartinelli/repos","events_url":"https://api.github.com/users/nicolasmartinelli/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasmartinelli/received_events","type":"User","site_admin":false},"repo":{"id":65129318,"name":"oomusic","full_name":"nicolasmartinelli/oomusic","owner":{"login":"nicolasmartinelli","id":386952,"avatar_url":"https://avatars.githubusercontent.com/u/386952?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasmartinelli","html_url":"https://github.com/nicolasmartinelli","followers_url":"https://api.github.com/users/nicolasmartinelli/followers","following_url":"https://api.github.com/users/nicolasmartinelli/following{/other_user}","gists_url":"https://api.github.com/users/nicolasmartinelli/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasmartinelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasmartinelli/subscriptions","organizations_url":"https://api.github.com/users/nicolasmartinelli/orgs","repos_url":"https://api.github.com/users/nicolasmartinelli/repos","events_url":"https://api.github.com/users/nicolasmartinelli/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasmartinelli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicolasmartinelli/oomusic","description":null,"fork":false,"url":"https://api.github.com/repos/nicolasmartinelli/oomusic","forks_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/forks","keys_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/teams","hooks_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/hooks","issue_events_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/issues/events{/number}","events_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/events","assignees_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/assignees{/user}","branches_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/branches{/branch}","tags_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/tags","blobs_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/statuses/{sha}","languages_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/languages","stargazers_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/stargazers","contributors_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/contributors","subscribers_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/subscribers","subscription_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/subscription","commits_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/contents/{+path}","compare_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/merges","archive_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/downloads","issues_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/issues{/number}","pulls_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/pulls{/number}","milestones_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/milestones{/number}","notifications_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/labels{/name}","releases_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/releases{/id}","deployments_url":"https://api.github.com/repos/nicolasmartinelli/oomusic/deployments","created_at":"2016-08-07T11:13:55Z","updated_at":"2016-08-12T23:32:33Z","pushed_at":"2016-10-21T09:25:08Z","git_url":"git://github.com/nicolasmartinelli/oomusic.git","ssh_url":"git@github.com:nicolasmartinelli/oomusic.git","clone_url":"https://github.com/nicolasmartinelli/oomusic.git","svn_url":"https://github.com/nicolasmartinelli/oomusic","homepage":null,"size":262,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nicolasmartinelli/oomusic/pulls/4"},"html":{"href":"https://github.com/nicolasmartinelli/oomusic/pull/4"},"issue":{"href":"https://api.github.com/repos/nicolasmartinelli/oomusic/issues/4"},"comments":{"href":"https://api.github.com/repos/nicolasmartinelli/oomusic/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/nicolasmartinelli/oomusic/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/nicolasmartinelli/oomusic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nicolasmartinelli/oomusic/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/nicolasmartinelli/oomusic/statuses/f5468b4307c2f3040ef4ce5b308ad62979b2cd68"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":4,"deletions":5,"changed_files":1}}
{"actor":{"display_login":"nicolasmartinelli"}}