{"action":"closed","number":2290,"pull_request":{"url":"https://api.github.com/repos/thoughtbot/paperclip/pulls/2290","id":82710357,"html_url":"https://github.com/thoughtbot/paperclip/pull/2290","diff_url":"https://github.com/thoughtbot/paperclip/pull/2290.diff","patch_url":"https://github.com/thoughtbot/paperclip/pull/2290.patch","issue_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2290","number":2290,"state":"closed","locked":false,"title":"Instead of copying files in adapters, create hard links where possible","user":{"login":"cbeckr","id":1845525,"avatar_url":"https://avatars.githubusercontent.com/u/1845525?v=3","gravatar_id":"","url":"https://api.github.com/users/cbeckr","html_url":"https://github.com/cbeckr","followers_url":"https://api.github.com/users/cbeckr/followers","following_url":"https://api.github.com/users/cbeckr/following{/other_user}","gists_url":"https://api.github.com/users/cbeckr/gists{/gist_id}","starred_url":"https://api.github.com/users/cbeckr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbeckr/subscriptions","organizations_url":"https://api.github.com/users/cbeckr/orgs","repos_url":"https://api.github.com/users/cbeckr/repos","events_url":"https://api.github.com/users/cbeckr/events{/privacy}","received_events_url":"https://api.github.com/users/cbeckr/received_events","type":"User","site_admin":false},"body":"Rebased #2120 to master.\r\nPaperclip duplicates the original files quite a lot as part of its validation process. (#1642, #1326).\r\nWhen uploading large files (several hundred megabytes to gigabyte range), this becomes a problem: The web server will be busy creating 3 - 4 duplicates on disk, while the app (and potentially the user) are waiting for the upload operation to complete.\r\nThis pull request introduces hard links instead of ```FileUtil.cp``` where possible to keep the logic as-is but save time and disk space.","created_at":"2016-08-25T12:28:02Z","updated_at":"2016-08-28T20:29:34Z","closed_at":"2016-08-28T20:29:34Z","merged_at":"2016-08-28T20:29:34Z","merge_commit_sha":"4debddb80ff7ea5da7145aa116eb909247380a3a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/paperclip/pulls/2290/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/paperclip/pulls/2290/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/paperclip/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2290/comments","statuses_url":"https://api.github.com/repos/thoughtbot/paperclip/statuses/68bdb11d5bccda66b228b04ca8e0946313de8c4e","head":{"label":"mes:link_or_copy_file","ref":"link_or_copy_file","sha":"68bdb11d5bccda66b228b04ca8e0946313de8c4e","user":{"login":"mes","id":2941164,"avatar_url":"https://avatars.githubusercontent.com/u/2941164?v=3","gravatar_id":"","url":"https://api.github.com/users/mes","html_url":"https://github.com/mes","followers_url":"https://api.github.com/users/mes/followers","following_url":"https://api.github.com/users/mes/following{/other_user}","gists_url":"https://api.github.com/users/mes/gists{/gist_id}","starred_url":"https://api.github.com/users/mes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mes/subscriptions","organizations_url":"https://api.github.com/users/mes/orgs","repos_url":"https://api.github.com/users/mes/repos","events_url":"https://api.github.com/users/mes/events{/privacy}","received_events_url":"https://api.github.com/users/mes/received_events","type":"Organization","site_admin":false},"repo":{"id":52860920,"name":"paperclip","full_name":"mes/paperclip","owner":{"login":"mes","id":2941164,"avatar_url":"https://avatars.githubusercontent.com/u/2941164?v=3","gravatar_id":"","url":"https://api.github.com/users/mes","html_url":"https://github.com/mes","followers_url":"https://api.github.com/users/mes/followers","following_url":"https://api.github.com/users/mes/following{/other_user}","gists_url":"https://api.github.com/users/mes/gists{/gist_id}","starred_url":"https://api.github.com/users/mes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mes/subscriptions","organizations_url":"https://api.github.com/users/mes/orgs","repos_url":"https://api.github.com/users/mes/repos","events_url":"https://api.github.com/users/mes/events{/privacy}","received_events_url":"https://api.github.com/users/mes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mes/paperclip","description":"Easy file attachment management for ActiveRecord","fork":true,"url":"https://api.github.com/repos/mes/paperclip","forks_url":"https://api.github.com/repos/mes/paperclip/forks","keys_url":"https://api.github.com/repos/mes/paperclip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mes/paperclip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mes/paperclip/teams","hooks_url":"https://api.github.com/repos/mes/paperclip/hooks","issue_events_url":"https://api.github.com/repos/mes/paperclip/issues/events{/number}","events_url":"https://api.github.com/repos/mes/paperclip/events","assignees_url":"https://api.github.com/repos/mes/paperclip/assignees{/user}","branches_url":"https://api.github.com/repos/mes/paperclip/branches{/branch}","tags_url":"https://api.github.com/repos/mes/paperclip/tags","blobs_url":"https://api.github.com/repos/mes/paperclip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mes/paperclip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mes/paperclip/git/refs{/sha}","trees_url":"https://api.github.com/repos/mes/paperclip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mes/paperclip/statuses/{sha}","languages_url":"https://api.github.com/repos/mes/paperclip/languages","stargazers_url":"https://api.github.com/repos/mes/paperclip/stargazers","contributors_url":"https://api.github.com/repos/mes/paperclip/contributors","subscribers_url":"https://api.github.com/repos/mes/paperclip/subscribers","subscription_url":"https://api.github.com/repos/mes/paperclip/subscription","commits_url":"https://api.github.com/repos/mes/paperclip/commits{/sha}","git_commits_url":"https://api.github.com/repos/mes/paperclip/git/commits{/sha}","comments_url":"https://api.github.com/repos/mes/paperclip/comments{/number}","issue_comment_url":"https://api.github.com/repos/mes/paperclip/issues/comments{/number}","contents_url":"https://api.github.com/repos/mes/paperclip/contents/{+path}","compare_url":"https://api.github.com/repos/mes/paperclip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mes/paperclip/merges","archive_url":"https://api.github.com/repos/mes/paperclip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mes/paperclip/downloads","issues_url":"https://api.github.com/repos/mes/paperclip/issues{/number}","pulls_url":"https://api.github.com/repos/mes/paperclip/pulls{/number}","milestones_url":"https://api.github.com/repos/mes/paperclip/milestones{/number}","notifications_url":"https://api.github.com/repos/mes/paperclip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mes/paperclip/labels{/name}","releases_url":"https://api.github.com/repos/mes/paperclip/releases{/id}","deployments_url":"https://api.github.com/repos/mes/paperclip/deployments","created_at":"2016-03-01T08:31:48Z","updated_at":"2016-03-01T08:31:50Z","pushed_at":"2016-08-25T12:21:37Z","git_url":"git://github.com/mes/paperclip.git","ssh_url":"git@github.com:mes/paperclip.git","clone_url":"https://github.com/mes/paperclip.git","svn_url":"https://github.com/mes/paperclip","homepage":"https://thoughtbot.com/open-source","size":3393,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"thoughtbot:master","ref":"master","sha":"544fa14cdb5715ba9a15d519783025c467448759","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":8393,"name":"paperclip","full_name":"thoughtbot/paperclip","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/paperclip","description":"Easy file attachment management for ActiveRecord","fork":false,"url":"https://api.github.com/repos/thoughtbot/paperclip","forks_url":"https://api.github.com/repos/thoughtbot/paperclip/forks","keys_url":"https://api.github.com/repos/thoughtbot/paperclip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/paperclip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/paperclip/teams","hooks_url":"https://api.github.com/repos/thoughtbot/paperclip/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/paperclip/events","assignees_url":"https://api.github.com/repos/thoughtbot/paperclip/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/paperclip/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/paperclip/tags","blobs_url":"https://api.github.com/repos/thoughtbot/paperclip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/paperclip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/paperclip/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/paperclip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/paperclip/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/paperclip/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/paperclip/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/paperclip/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/paperclip/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/paperclip/subscription","commits_url":"https://api.github.com/repos/thoughtbot/paperclip/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/paperclip/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/paperclip/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/paperclip/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/paperclip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/paperclip/merges","archive_url":"https://api.github.com/repos/thoughtbot/paperclip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/paperclip/downloads","issues_url":"https://api.github.com/repos/thoughtbot/paperclip/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/paperclip/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/paperclip/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/paperclip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/paperclip/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/paperclip/releases{/id}","deployments_url":"https://api.github.com/repos/thoughtbot/paperclip/deployments","created_at":"2008-04-10T19:58:20Z","updated_at":"2016-08-28T16:57:21Z","pushed_at":"2016-08-28T20:29:34Z","git_url":"git://github.com/thoughtbot/paperclip.git","ssh_url":"git@github.com:thoughtbot/paperclip.git","clone_url":"https://github.com/thoughtbot/paperclip.git","svn_url":"https://github.com/thoughtbot/paperclip","homepage":"https://thoughtbot.com/open-source","size":7095,"stargazers_count":8062,"watchers_count":8062,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1813,"mirror_url":null,"open_issues_count":87,"forks":1813,"open_issues":87,"watchers":8062,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/paperclip/pulls/2290"},"html":{"href":"https://github.com/thoughtbot/paperclip/pull/2290"},"issue":{"href":"https://api.github.com/repos/thoughtbot/paperclip/issues/2290"},"comments":{"href":"https://api.github.com/repos/thoughtbot/paperclip/issues/2290/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/paperclip/pulls/2290/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/paperclip/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/paperclip/pulls/2290/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/paperclip/statuses/68bdb11d5bccda66b228b04ca8e0946313de8c4e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tute","id":54260,"avatar_url":"https://avatars.githubusercontent.com/u/54260?v=3","gravatar_id":"","url":"https://api.github.com/users/tute","html_url":"https://github.com/tute","followers_url":"https://api.github.com/users/tute/followers","following_url":"https://api.github.com/users/tute/following{/other_user}","gists_url":"https://api.github.com/users/tute/gists{/gist_id}","starred_url":"https://api.github.com/users/tute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tute/subscriptions","organizations_url":"https://api.github.com/users/tute/orgs","repos_url":"https://api.github.com/users/tute/repos","events_url":"https://api.github.com/users/tute/events{/privacy}","received_events_url":"https://api.github.com/users/tute/received_events","type":"User","site_admin":false},"comments":0,"review_comments":1,"commits":1,"additions":24,"deletions":3,"changed_files":3}}
{"actor":{"display_login":"tute"}}