{"action":"created","issue":{"url":"https://api.github.com/repos/pingcap/tidb/issues/1766","repository_url":"https://api.github.com/repos/pingcap/tidb","labels_url":"https://api.github.com/repos/pingcap/tidb/issues/1766/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/tidb/issues/1766/comments","events_url":"https://api.github.com/repos/pingcap/tidb/issues/1766/events","html_url":"https://github.com/pingcap/tidb/pull/1766","id":179161333,"number":1766,"title":"ddl: truncate table by DDL operation.","user":{"login":"coocood","id":891222,"avatar_url":"https://avatars.githubusercontent.com/u/891222?v=3","gravatar_id":"","url":"https://api.github.com/users/coocood","html_url":"https://github.com/coocood","followers_url":"https://api.github.com/users/coocood/followers","following_url":"https://api.github.com/users/coocood/following{/other_user}","gists_url":"https://api.github.com/users/coocood/gists{/gist_id}","starred_url":"https://api.github.com/users/coocood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coocood/subscriptions","organizations_url":"https://api.github.com/users/coocood/orgs","repos_url":"https://api.github.com/users/coocood/repos","events_url":"https://api.github.com/users/coocood/events{/privacy}","received_events_url":"https://api.github.com/users/coocood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-26T07:53:35Z","updated_at":"2016-09-26T07:55:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pingcap/tidb/pulls/1766","html_url":"https://github.com/pingcap/tidb/pull/1766","diff_url":"https://github.com/pingcap/tidb/pull/1766.diff","patch_url":"https://github.com/pingcap/tidb/pull/1766.patch"},"body":"Currently, truncate table deletes rows in table in one large transaction,\r\ntoo large transaction is very likely to fail.\r\nThis commit use DDL to do the work, it returns instantly, old data will be\r\ndeleted by background worker."},"comment":{"url":"https://api.github.com/repos/pingcap/tidb/issues/comments/249503056","html_url":"https://github.com/pingcap/tidb/pull/1766#issuecomment-249503056","issue_url":"https://api.github.com/repos/pingcap/tidb/issues/1766","id":249503056,"user":{"login":"coocood","id":891222,"avatar_url":"https://avatars.githubusercontent.com/u/891222?v=3","gravatar_id":"","url":"https://api.github.com/users/coocood","html_url":"https://github.com/coocood","followers_url":"https://api.github.com/users/coocood/followers","following_url":"https://api.github.com/users/coocood/following{/other_user}","gists_url":"https://api.github.com/users/coocood/gists{/gist_id}","starred_url":"https://api.github.com/users/coocood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coocood/subscriptions","organizations_url":"https://api.github.com/users/coocood/orgs","repos_url":"https://api.github.com/users/coocood/repos","events_url":"https://api.github.com/users/coocood/events{/privacy}","received_events_url":"https://api.github.com/users/coocood/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T07:55:50Z","updated_at":"2016-09-26T07:55:50Z","body":"fixes https://github.com/pingcap/tidb/issues/1693\r\n\r\n@zimulala @shenli @hanfei1991 PTAL"}}
{"actor":{"display_login":"coocood"}}