mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1423: Improving ReadOnly annotation by caching query results #1784
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Oct 16, 2011).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user jsilvestre:
We should be able to tell Doctrine that we want the result of requests on ReadOnly marked Entities to be cached.
For instance:
$person->getMoodInformation();
$person->getCityInformation();
CityInformation are not likely to change so it would make sense to cache it and retrieve only MoodInformation (by using an annotation on the concerned Entity).
What would be even better is to tag which properies we want to hydrate from database and which properties we want to hydrate from cache.
@malukenho commented on GitHub (Jan 5, 2017):
@Ocramius I guess it's not valid anymore. (We have now second level cache if performance is a issue)