{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/frappe/issues/6342","repository_url":"https://api.github.com/repos/frappe/frappe","labels_url":"https://api.github.com/repos/frappe/frappe/issues/6342/labels{/name}","comments_url":"https://api.github.com/repos/frappe/frappe/issues/6342/comments","events_url":"https://api.github.com/repos/frappe/frappe/issues/6342/events","html_url":"https://github.com/frappe/frappe/pull/6342","id":374724730,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MzQ3ODE5","number":6342,"title":"[Feature]: Autoincrement","user":{"login":"sivankar","id":13943539,"node_id":"MDQ6VXNlcjEzOTQzNTM5","avatar_url":"https://avatars3.githubusercontent.com/u/13943539?v=4","gravatar_id":"","url":"https://api.github.com/users/sivankar","html_url":"https://github.com/sivankar","followers_url":"https://api.github.com/users/sivankar/followers","following_url":"https://api.github.com/users/sivankar/following{/other_user}","gists_url":"https://api.github.com/users/sivankar/gists{/gist_id}","starred_url":"https://api.github.com/users/sivankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivankar/subscriptions","organizations_url":"https://api.github.com/users/sivankar/orgs","repos_url":"https://api.github.com/users/sivankar/repos","events_url":"https://api.github.com/users/sivankar/events{/privacy}","received_events_url":"https://api.github.com/users/sivankar/received_events","type":"User","site_admin":false},"labels":[{"id":822152649,"node_id":"MDU6TGFiZWw4MjIxNTI2NDk=","url":"https://api.github.com/repos/frappe/frappe/labels/test-case-required","name":"test-case-required","color":"8bea25","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-28T07:08:48Z","updated_at":"2018-11-09T05:49:50Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/frappe/frappe/pulls/6342","html_url":"https://github.com/frappe/frappe/pull/6342","diff_url":"https://github.com/frappe/frappe/pull/6342.diff","patch_url":"https://github.com/frappe/frappe/pull/6342.patch"},"body":"Autoincrement, is a new feature which allow user to configure doctype to have auto increment numbering. This helps in performance for doctypes which does not need sequencing, best suit can be\r\n1. child table\r\n2. error log\r\n3. email queue\r\netc.\r\n\r\nIt uses database auto increment feature to set the name.\r\n\r\nwhat is done\r\n1. create new doctype with autoincrement.\r\n2. curd operation\r\n\r\nwhat is pending.\r\n1. add code to migrate old data.\r\n2. test cases\r\n\r\nPerformance improvement:\r\n3 times faster then naming series.\r\n\r\nTest details:\r\nCreated a simple doctype student with 4 attributes\r\nName, Age, Gender and Standard.\r\n\r\ncreated a Jmeter script with 200 User and each post 5 request.\r\n![config](https://user-images.githubusercontent.com/13943539/47613086-1ec21280-daae-11e8-9b63-8a814713f47b.png)\r\n\r\nNaming Series result:\r\n![naming series](https://user-images.githubusercontent.com/13943539/47613084-19fd5e80-daae-11e8-94b9-63a7e211d84c.png)\r\n\r\nAutoincrement result:\r\n![auto](https://user-images.githubusercontent.com/13943539/47613097-40bb9500-daae-11e8-95d8-8b6201b18608.png)\r\n \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/frappe/frappe/issues/comments/437257693","html_url":"https://github.com/frappe/frappe/pull/6342#issuecomment-437257693","issue_url":"https://api.github.com/repos/frappe/frappe/issues/6342","id":437257693,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzI1NzY5Mw==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-11-09T05:49:50Z","updated_at":"2018-11-09T05:49:50Z","author_association":"NONE","body":"This pull request has been automatically marked as stale because it has not had recent activity. It will be closed within a week if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.\n"}}
{"actor":{"display_login":"stale"}}