-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Can cache empty collections #950
Conversation
I should be able to cache an "empty" collection. I have a some objects, where 90% of these have on-to-many relations with zero associated elements. This causes doctrine to run a query each time, instead of cache it as empty relation.
Hello, thank you for creating this pull request. I have automatically opened an issue http://www.doctrine-project.org/jira/browse/DDC-2974 We use Jira to track the state of pull requests and the versions they got |
@goetas, Could you add some tests please ? |
I'm looking just now inside test suite, but it is very complicated (and there are no tests that covers cache hinting... or probably i'm not able to find them). There i can look? I think that i shoud check if |
I think that te best way to test is to check if I will try to do it inside |
@FabioBatSilva I have added some tests |
@goetas Thanks, Now the build is failing for mysql and pgsql.. |
i have seen it just now. tomorrow i will try where is the problem! |
There was a little typo mistake on previous implementation of |
[SLC] Cache empty collections
I should be able to cache an "empty" collection.
I have a some objects, where 90% of these have on-to-many relations with zero associated elements.
This causes doctrine to run a query each time, instead of cache it as empty relation.
(same thing should be applied to many-to-many collections)