-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Evaluate if we should return iterable instead of array in some cases #60
Comments
I don’t think adding methods to the interface is a good idea, as it requires duplicating logic. IMO the only reason not to do it is “it’s a tough BC break”. However, I don’t think that’s a valid argument as breaking BC again is difficult for a package this low in the dependency food chain. |
Hi, Just adding my 2 cents here to an old topic. I don't see the point of doing this, as long as the PDO Driver doesn't return an iterator. When querying a DB, the whole resultset is returned at once and I don't see why we should create an iterator out of it, it's already loaded in the memory. |
@drupol what's your take on https://www.dragonbe.com/2015/07/speeding-up-database-calls-with-pdo-and.html ? |
I was not aware of I think the default in Doctrine is |
I do not confirm and I reject the burden of proof 😛 |
Then ok, fair enough. I'll investigate a bit this thing. The idea of having an iterator makes a lot of sense to me ! |
findAllIterator()
or something instead of changingfindAll()
to return an array.The text was updated successfully, but these errors were encountered: