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
eager loading #29
Comments
Does someone have an idea of this? |
You know, it's very strange, because I used this module in several projects and everything was fine. |
CostaRico, thanks for reply. Everything is great while working with one instance of model. But it goes wrong, when I'm trying to get a couple of images from a lot of instances. For example, Book have a Category. And I'm trying to show 20 thumbnails from 20 books in one category. So in foreach cycle there will be 20 SQL requests for every Book by every $book->getImage() |
|
but no placeHolder |
Hello! Thank you for your work.
Is there any way to use eager loading? If I call getUrl() several times on one page, there are more than 50 SQL statements being executed! It's really bad.
Can I use smth like ->with('images'), using your module?
The text was updated successfully, but these errors were encountered: