{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9269","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9269/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9269/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9269/events","html_url":"https://github.com/yiisoft/yii2/issues/9269","id":98330999,"number":9269,"title":"Query::batch - memory limit","user":{"login":"yujin1st","id":2317913,"avatar_url":"https://avatars.githubusercontent.com/u/2317913?v=3","gravatar_id":"","url":"https://api.github.com/users/yujin1st","html_url":"https://github.com/yujin1st","followers_url":"https://api.github.com/users/yujin1st/followers","following_url":"https://api.github.com/users/yujin1st/following{/other_user}","gists_url":"https://api.github.com/users/yujin1st/gists{/gist_id}","starred_url":"https://api.github.com/users/yujin1st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yujin1st/subscriptions","organizations_url":"https://api.github.com/users/yujin1st/orgs","repos_url":"https://api.github.com/users/yujin1st/repos","events_url":"https://api.github.com/users/yujin1st/events{/privacy}","received_events_url":"https://api.github.com/users/yujin1st/received_events","type":"User","site_admin":false},"labels":[{"id":33208865,"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:docs","name":"type:docs","color":"207de5","default":false}],"state":"closed","locked":false,"assignee":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"assignees":[{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/20","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.11","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/20/labels","id":1736699,"number":20,"title":"2.0.11","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":120,"closed_issues":84,"state":"open","created_at":"2016-04-28T15:04:50Z","updated_at":"2016-11-24T12:53:01Z","due_on":"2016-12-18T00:00:00Z","closed_at":null},"comments":22,"created_at":"2015-07-31T07:15:13Z","updated_at":"2016-11-24T12:53:01Z","closed_at":"2016-11-24T12:53:01Z","body":"Hello, I need to iterate 200k record table, but when i use  `foreach (Item::find()->each() as $item)` it fails with memory error.  Loop doesn't execute at all.\nI found only [one topic](http://www.yiiframework.com/forum/index.php/topic/32502-120-million-rows-iterator-needed/) about this with no solution.\n\nIt works only on development environment (mac, mamp 3.0.6, 128 mb memory limit), but on deployment servers  it throws an error. \nCould you suggest where should i search the difference?\n"}}
{"actor":{"display_login":"klimov-paul"}}