Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1423

Improving ReadOnly annotation by caching query results

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor 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

        There are no comments yet on this issue.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Joseph Silvestre
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: