{"action":"closed","issue":{"url":"https://api.github.com/repos/LiskHQ/lisk/issues/2352","repository_url":"https://api.github.com/repos/LiskHQ/lisk","labels_url":"https://api.github.com/repos/LiskHQ/lisk/issues/2352/labels{/name}","comments_url":"https://api.github.com/repos/LiskHQ/lisk/issues/2352/comments","events_url":"https://api.github.com/repos/LiskHQ/lisk/issues/2352/events","html_url":"https://github.com/LiskHQ/lisk/issues/2352","id":355230434,"node_id":"MDU6SXNzdWUzNTUyMzA0MzQ=","number":2352,"title":"Poor performance of GET /api/delegates/[address]/forging_statistics","user":{"login":"nazarhussain","id":112468,"node_id":"MDQ6VXNlcjExMjQ2OA==","avatar_url":"https://avatars0.githubusercontent.com/u/112468?v=4","gravatar_id":"","url":"https://api.github.com/users/nazarhussain","html_url":"https://github.com/nazarhussain","followers_url":"https://api.github.com/users/nazarhussain/followers","following_url":"https://api.github.com/users/nazarhussain/following{/other_user}","gists_url":"https://api.github.com/users/nazarhussain/gists{/gist_id}","starred_url":"https://api.github.com/users/nazarhussain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazarhussain/subscriptions","organizations_url":"https://api.github.com/users/nazarhussain/orgs","repos_url":"https://api.github.com/users/nazarhussain/repos","events_url":"https://api.github.com/users/nazarhussain/events{/privacy}","received_events_url":"https://api.github.com/users/nazarhussain/received_events","type":"User","site_admin":false},"labels":[{"id":801775562,"node_id":"MDU6TGFiZWw4MDE3NzU1NjI=","url":"https://api.github.com/repos/LiskHQ/lisk/labels/api","name":"api","color":"f2a163","default":false},{"id":499188580,"node_id":"MDU6TGFiZWw0OTkxODg1ODA=","url":"https://api.github.com/repos/LiskHQ/lisk/labels/performance","name":"performance","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"nazarhussain","id":112468,"node_id":"MDQ6VXNlcjExMjQ2OA==","avatar_url":"https://avatars0.githubusercontent.com/u/112468?v=4","gravatar_id":"","url":"https://api.github.com/users/nazarhussain","html_url":"https://github.com/nazarhussain","followers_url":"https://api.github.com/users/nazarhussain/followers","following_url":"https://api.github.com/users/nazarhussain/following{/other_user}","gists_url":"https://api.github.com/users/nazarhussain/gists{/gist_id}","starred_url":"https://api.github.com/users/nazarhussain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazarhussain/subscriptions","organizations_url":"https://api.github.com/users/nazarhussain/orgs","repos_url":"https://api.github.com/users/nazarhussain/repos","events_url":"https://api.github.com/users/nazarhussain/events{/privacy}","received_events_url":"https://api.github.com/users/nazarhussain/received_events","type":"User","site_admin":false},"assignees":[{"login":"nazarhussain","id":112468,"node_id":"MDQ6VXNlcjExMjQ2OA==","avatar_url":"https://avatars0.githubusercontent.com/u/112468?v=4","gravatar_id":"","url":"https://api.github.com/users/nazarhussain","html_url":"https://github.com/nazarhussain","followers_url":"https://api.github.com/users/nazarhussain/followers","following_url":"https://api.github.com/users/nazarhussain/following{/other_user}","gists_url":"https://api.github.com/users/nazarhussain/gists{/gist_id}","starred_url":"https://api.github.com/users/nazarhussain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazarhussain/subscriptions","organizations_url":"https://api.github.com/users/nazarhussain/orgs","repos_url":"https://api.github.com/users/nazarhussain/repos","events_url":"https://api.github.com/users/nazarhussain/events{/privacy}","received_events_url":"https://api.github.com/users/nazarhussain/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/LiskHQ/lisk/milestones/9","html_url":"https://github.com/LiskHQ/lisk/milestone/9","labels_url":"https://api.github.com/repos/LiskHQ/lisk/milestones/9/labels","id":2612029,"node_id":"MDk6TWlsZXN0b25lMjYxMjAyOQ==","number":9,"title":"Version 1.1.0","description":"","creator":{"login":"karmacoma","id":8068,"node_id":"MDQ6VXNlcjgwNjg=","avatar_url":"https://avatars0.githubusercontent.com/u/8068?v=4","gravatar_id":"","url":"https://api.github.com/users/karmacoma","html_url":"https://github.com/karmacoma","followers_url":"https://api.github.com/users/karmacoma/followers","following_url":"https://api.github.com/users/karmacoma/following{/other_user}","gists_url":"https://api.github.com/users/karmacoma/gists{/gist_id}","starred_url":"https://api.github.com/users/karmacoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karmacoma/subscriptions","organizations_url":"https://api.github.com/users/karmacoma/orgs","repos_url":"https://api.github.com/users/karmacoma/repos","events_url":"https://api.github.com/users/karmacoma/events{/privacy}","received_events_url":"https://api.github.com/users/karmacoma/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":38,"state":"open","created_at":"2017-06-29T12:34:19Z","updated_at":"2018-08-31T14:18:14Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-08-29T16:04:49Z","updated_at":"2018-08-31T14:18:14Z","closed_at":"2018-08-31T14:18:14Z","author_association":"CONTRIBUTOR","body":"### Expected behavior\r\nPerformance of API `GET /api/delegates/[address]/forging_statistics` should be satisfactory (under 1 second). \r\n\r\n### Actual behavior\r\nWe run some benchmarks with following spec:  \r\n\r\n```\r\nCPU: 1vCPU (Digital Ocean) \r\nRAM: 1 GB Memory\r\nDisk: 25 GB Disk\r\nConnections: 10 \r\nTime: 30s\r\n```\r\nAnd got the following results;\r\n\r\n```\r\nFastest: 8.23\r\nSlowest: 8.91\r\nAverage: 9.74\r\n```\r\n\r\n### Steps to reproduce\r\nQuery endpoints mentioned above.\r\n\r\n### Which version(s) does this affect? (Environment, OS, etc...)\r\n1.0.1 (after indexes)"}}
{"actor":{"display_login":"nazarhussain"}}