Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portability Statement still fetches all data in iterator mode #3114

Closed
morozov opened this issue Apr 20, 2018 · 1 comment
Closed

Portability Statement still fetches all data in iterator mode #3114

morozov opened this issue Apr 20, 2018 · 1 comment

Comments

@morozov
Copy link
Member

morozov commented Apr 20, 2018

As of #2718, in iterator mode, statements are supposed to fetch entries one by one for more efficient memory usage.

Apparently, the portability statement wrapper still fetches all entries in memory:

public function getIterator()
{
$data = $this->fetchAll();
return new \ArrayIterator($data);
}

It renders the entire optimization useless if the portability wrapper is used.

@github-actions
Copy link

github-actions bot commented Aug 2, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant