{"action":"created","issue":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/1777","repository_url":"https://api.github.com/repos/medic/medic-webapp","labels_url":"https://api.github.com/repos/medic/medic-webapp/issues/1777/labels{/name}","comments_url":"https://api.github.com/repos/medic/medic-webapp/issues/1777/comments","events_url":"https://api.github.com/repos/medic/medic-webapp/issues/1777/events","html_url":"https://github.com/medic/medic-webapp/issues/1777","id":122767397,"number":1777,"title":"Profile data/bandwidth usage in mobile application","user":{"login":"abbyad","id":789512,"avatar_url":"https://avatars.githubusercontent.com/u/789512?v=3","gravatar_id":"","url":"https://api.github.com/users/abbyad","html_url":"https://github.com/abbyad","followers_url":"https://api.github.com/users/abbyad/followers","following_url":"https://api.github.com/users/abbyad/following{/other_user}","gists_url":"https://api.github.com/users/abbyad/gists{/gist_id}","starred_url":"https://api.github.com/users/abbyad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abbyad/subscriptions","organizations_url":"https://api.github.com/users/abbyad/orgs","repos_url":"https://api.github.com/users/abbyad/repos","events_url":"https://api.github.com/users/abbyad/events{/privacy}","received_events_url":"https://api.github.com/users/abbyad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/medic/medic-webapp/labels/2%20-%20Active%20Work","name":"2 - Active Work","color":"bfd4f2"},{"url":"https://api.github.com/repos/medic/medic-webapp/labels/Feature%20Request","name":"Feature Request","color":"6fc5af"},{"url":"https://api.github.com/repos/medic/medic-webapp/labels/Performance","name":"Performance","color":"f7c6c7"},{"url":"https://api.github.com/repos/medic/medic-webapp/labels/Priority","name":"Priority","color":"ff0022"},{"url":"https://api.github.com/repos/medic/medic-webapp/labels/v0.6","name":"v0.6","color":"7193EE"}],"state":"open","locked":false,"assignee":{"login":"estellecomment","id":911434,"avatar_url":"https://avatars.githubusercontent.com/u/911434?v=3","gravatar_id":"","url":"https://api.github.com/users/estellecomment","html_url":"https://github.com/estellecomment","followers_url":"https://api.github.com/users/estellecomment/followers","following_url":"https://api.github.com/users/estellecomment/following{/other_user}","gists_url":"https://api.github.com/users/estellecomment/gists{/gist_id}","starred_url":"https://api.github.com/users/estellecomment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estellecomment/subscriptions","organizations_url":"https://api.github.com/users/estellecomment/orgs","repos_url":"https://api.github.com/users/estellecomment/repos","events_url":"https://api.github.com/users/estellecomment/events{/privacy}","received_events_url":"https://api.github.com/users/estellecomment/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/medic/medic-webapp/milestones/45","html_url":"https://github.com/medic/medic-webapp/milestones/Iteration%202016-09","labels_url":"https://api.github.com/repos/medic/medic-webapp/milestones/45/labels","id":1593891,"number":45,"title":"Iteration 2016-09","description":"","creator":{"login":"abbyad","id":789512,"avatar_url":"https://avatars.githubusercontent.com/u/789512?v=3","gravatar_id":"","url":"https://api.github.com/users/abbyad","html_url":"https://github.com/abbyad","followers_url":"https://api.github.com/users/abbyad/followers","following_url":"https://api.github.com/users/abbyad/following{/other_user}","gists_url":"https://api.github.com/users/abbyad/gists{/gist_id}","starred_url":"https://api.github.com/users/abbyad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abbyad/subscriptions","organizations_url":"https://api.github.com/users/abbyad/orgs","repos_url":"https://api.github.com/users/abbyad/repos","events_url":"https://api.github.com/users/abbyad/events{/privacy}","received_events_url":"https://api.github.com/users/abbyad/received_events","type":"User","site_admin":false},"open_issues":33,"closed_issues":11,"state":"open","created_at":"2016-02-19T19:59:27Z","updated_at":"2016-02-24T10:07:05Z","due_on":"2016-03-04T05:00:00Z","closed_at":null},"comments":22,"created_at":"2015-12-17T16:14:34Z","updated_at":"2016-02-24T10:19:03Z","closed_at":null,"body":"Given the high costs of mobile data we should profile the data usage of the app then make improvements where needed to use as little as possible.\r\n\r\n`performance` label added since this relates to resource usage."},"comment":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/comments/188178452","html_url":"https://github.com/medic/medic-webapp/issues/1777#issuecomment-188178452","issue_url":"https://api.github.com/repos/medic/medic-webapp/issues/1777","id":188178452,"user":{"login":"estellecomment","id":911434,"avatar_url":"https://avatars.githubusercontent.com/u/911434?v=3","gravatar_id":"","url":"https://api.github.com/users/estellecomment","html_url":"https://github.com/estellecomment","followers_url":"https://api.github.com/users/estellecomment/followers","following_url":"https://api.github.com/users/estellecomment/following{/other_user}","gists_url":"https://api.github.com/users/estellecomment/gists{/gist_id}","starred_url":"https://api.github.com/users/estellecomment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estellecomment/subscriptions","organizations_url":"https://api.github.com/users/estellecomment/orgs","repos_url":"https://api.github.com/users/estellecomment/repos","events_url":"https://api.github.com/users/estellecomment/events{/privacy}","received_events_url":"https://api.github.com/users/estellecomment/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T10:19:03Z","updated_at":"2016-02-24T10:19:03Z","body":"From lg.dev, with nginx gzip/deflate : \r\n```1456307596347 {\"app\":{\"tx\":6025834,\"rx\":23691422},\"system\":{\"tx\":17331796,\"rx\":241999914}}\r\n1456308486552 {\"app\":{\"tx\":6028174,\"rx\":23693710},\"system\":{\"tx\":17380345,\"rx\":242078757}}```\r\n\r\ndelta_t = 1456308486552 - 1456307596347 = 890205ms\r\ndelta_tx = 6028174 - 6025834 = 2340B -> 227112B/day = **221kB/day**\r\ndelta_rx = 23693710 - 23691422 = 2288B -> 222065B/day = **217kB/day**\r\n\r\nYou use up your 30MB bundle in 70 days, or 42% it in a month. Better indeed!\r\nBut still not great that half your data plan is spent on waiting for data :(\r\n\r\n(logs : [lg_dev_nginx_deflate.txt](https://github.com/medic/medic-webapp/files/144341/lg_dev_nginx_deflate.txt))\r\n\r\n\r\n\r\n"}}