{"action":"opened","issue":{"url":"https://api.github.com/repos/nextgis/android_gisapp/issues/516","repository_url":"https://api.github.com/repos/nextgis/android_gisapp","labels_url":"https://api.github.com/repos/nextgis/android_gisapp/issues/516/labels{/name}","comments_url":"https://api.github.com/repos/nextgis/android_gisapp/issues/516/comments","events_url":"https://api.github.com/repos/nextgis/android_gisapp/issues/516/events","html_url":"https://github.com/nextgis/android_gisapp/issues/516","id":178196483,"number":516,"title":"Doubled requests during sync","user":{"login":"BishopGIS","id":1708122,"avatar_url":"https://avatars.githubusercontent.com/u/1708122?v=3","gravatar_id":"","url":"https://api.github.com/users/BishopGIS","html_url":"https://github.com/BishopGIS","followers_url":"https://api.github.com/users/BishopGIS/followers","following_url":"https://api.github.com/users/BishopGIS/following{/other_user}","gists_url":"https://api.github.com/users/BishopGIS/gists{/gist_id}","starred_url":"https://api.github.com/users/BishopGIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BishopGIS/subscriptions","organizations_url":"https://api.github.com/users/BishopGIS/orgs","repos_url":"https://api.github.com/users/BishopGIS/repos","events_url":"https://api.github.com/users/BishopGIS/events{/privacy}","received_events_url":"https://api.github.com/users/BishopGIS/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nextgis/android_gisapp/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-20T22:26:00Z","updated_at":"2016-09-20T22:26:00Z","closed_at":null,"body":"During sync, mobile app request from server API version for each layer. This is doubled a request count and data volume sent on network.\r\n\r\nServer log for 3 layers:\r\n```\r\n[pid: 28654|app: 0|req: 19219/25312] 176.99.221.48 () {40 vars in 562 bytes} [Wed Sep 21 08:19:56 2016] GET /ngw/api/component/pyramid/pkg_version => generated 133 bytes in 3 msecs (HTTP/1.1 200) 2 headers in 87 bytes (2 switches on core 0)\r\n[pid: 28654|app: 0|req: 19220/25313] 176.99.221.48 () {38 vars in 766 bytes} [Wed Sep 21 08:19:56 2016] GET /ngw/api/resource/64/feature/?mdate={\"gt\":\"2016-03-21T00:00:00Z\"}&bbox=14516073.000000,5204969.000000,15477032.000000,6184456.000000 => generated 254 bytes in 67 msecs (HTTP/1.1 401) 3 headers in 135 bytes (1 switches on core 0)\r\n[pid: 28654|app: 0|req: 19221/25314] 176.99.221.48 () {40 vars in 562 bytes} [Wed Sep 21 08:19:56 2016] GET /ngw/api/component/pyramid/pkg_version => generated 133 bytes in 1 msecs (HTTP/1.1 200) 2 headers in 87 bytes (2 switches on core 0)\r\n[pid: 28656|app: 0|req: 3681/25315] 176.99.221.48 () {38 vars in 622 bytes} [Wed Sep 21 08:19:56 2016] GET /ngw/api/vector_layer/57/diff/?ts_start=2016-09-21T01:13:07Z => generated 43 bytes in 121 msecs (HTTP/1.1 200) 2 headers in 71 bytes (1 switches on core 0)\r\n[pid: 28654|app: 0|req: 19222/25316] 176.99.221.48 () {40 vars in 562 bytes} [Wed Sep 21 08:19:57 2016] GET /ngw/api/component/pyramid/pkg_version => generated 133 bytes in 1 msecs (HTTP/1.1 200) 2 headers in 87 bytes (1 switches on core 0)\r\n[pid: 28654|app: 0|req: 19223/25317] 176.99.221.48 () {38 vars in 764 bytes} [Wed Sep 21 08:19:57 2016] GET /ngw/api/resource/16/feature/?date={\"gt\":\"2016-03-21T00:00:00Z\"}&bbox=14516073.000000,5204969.000000,15477032.000000,6184456.000000 => generated 254 bytes in 86 msecs (HTTP/1.1 401) 3 headers in 135 bytes (2 switches on core 0)\r\n```\r\n\r\nThe version check should be processed once at the beginning of the sync or at some period (one dat, one week, etc.)"}}
{"actor":{"display_login":"BishopGIS"}}