{"action":"created","issue":{"url":"https://api.github.com/repos/baasbox/baasbox/issues/828","labels_url":"https://api.github.com/repos/baasbox/baasbox/issues/828/labels{/name}","comments_url":"https://api.github.com/repos/baasbox/baasbox/issues/828/comments","events_url":"https://api.github.com/repos/baasbox/baasbox/issues/828/events","html_url":"https://github.com/baasbox/baasbox/pull/828","id":101920917,"number":828,"title":"Uses chunked responses and async queries with Documents","user":{"login":"giastfader","id":2334584,"avatar_url":"https://avatars.githubusercontent.com/u/2334584?v=3","gravatar_id":"","url":"https://api.github.com/users/giastfader","html_url":"https://github.com/giastfader","followers_url":"https://api.github.com/users/giastfader/followers","following_url":"https://api.github.com/users/giastfader/following{/other_user}","gists_url":"https://api.github.com/users/giastfader/gists{/gist_id}","starred_url":"https://api.github.com/users/giastfader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giastfader/subscriptions","organizations_url":"https://api.github.com/users/giastfader/orgs","repos_url":"https://api.github.com/users/giastfader/repos","events_url":"https://api.github.com/users/giastfader/events{/privacy}","received_events_url":"https://api.github.com/users/giastfader/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/baasbox/baasbox/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/baasbox/baasbox/labels/Server","name":"Server","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/baasbox/baasbox/milestones/18","html_url":"https://github.com/baasbox/baasbox/milestones/1.0.0-M3","labels_url":"https://api.github.com/repos/baasbox/baasbox/milestones/18/labels","id":1213261,"number":18,"title":"1.0.0-M3","description":"","creator":{"login":"giastfader","id":2334584,"avatar_url":"https://avatars.githubusercontent.com/u/2334584?v=3","gravatar_id":"","url":"https://api.github.com/users/giastfader","html_url":"https://github.com/giastfader","followers_url":"https://api.github.com/users/giastfader/followers","following_url":"https://api.github.com/users/giastfader/following{/other_user}","gists_url":"https://api.github.com/users/giastfader/gists{/gist_id}","starred_url":"https://api.github.com/users/giastfader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giastfader/subscriptions","organizations_url":"https://api.github.com/users/giastfader/orgs","repos_url":"https://api.github.com/users/giastfader/repos","events_url":"https://api.github.com/users/giastfader/events{/privacy}","received_events_url":"https://api.github.com/users/giastfader/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":10,"state":"open","created_at":"2015-07-17T17:09:55Z","updated_at":"2015-08-19T15:32:52Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-08-19T15:32:52Z","updated_at":"2015-08-19T15:42:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/baasbox/baasbox/pulls/828","html_url":"https://github.com/baasbox/baasbox/pull/828","diff_url":"https://github.com/baasbox/baasbox/pull/828.diff","patch_url":"https://github.com/baasbox/baasbox/pull/828.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/baasbox/baasbox/issues/comments/132643236","html_url":"https://github.com/baasbox/baasbox/pull/828#issuecomment-132643236","issue_url":"https://api.github.com/repos/baasbox/baasbox/issues/828","id":132643236,"user":{"login":"giastfader","id":2334584,"avatar_url":"https://avatars.githubusercontent.com/u/2334584?v=3","gravatar_id":"","url":"https://api.github.com/users/giastfader","html_url":"https://github.com/giastfader","followers_url":"https://api.github.com/users/giastfader/followers","following_url":"https://api.github.com/users/giastfader/following{/other_user}","gists_url":"https://api.github.com/users/giastfader/gists{/gist_id}","starred_url":"https://api.github.com/users/giastfader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giastfader/subscriptions","organizations_url":"https://api.github.com/users/giastfader/orgs","repos_url":"https://api.github.com/users/giastfader/repos","events_url":"https://api.github.com/users/giastfader/events{/privacy}","received_events_url":"https://api.github.com/users/giastfader/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T15:42:18Z","updated_at":"2015-08-19T15:42:18Z","body":"This PR fixes a performance issue when a query against documents returns a huge resultset and no pagination is used.\r\nFrom now on the server replies with chunked responses and streams out the records to the client as soon as they are loaded from the database, without storing them in memory.\r\n\r\nThis feature can be switch off:\r\n```\r\n./start -Dbaasbox.list.response.chunked=false\r\n```\r\n(Note that if a client uses HTTP 1.0, the server automatically switches to the old behavior)\r\nMeanwhile the chunks size can be adjusted with:\r\n```\r\nbaasbox.list.response.chunk.size=100000 (default, in bytes)\r\n```\r\nThis feature should be extended to users and files.\r\n"}}