Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
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.
Activity
Joseph Silvestre
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
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). |
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. |
Benjamin Eberlei
made changes -
| Workflow | jira [ 13088 ] | jira-feedback [ 13975 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 13975 ] | jira-feedback2 [ 15839 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 15839 ] | jira-feedback3 [ 18095 ] |