Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-573

[WON'T FIX] To improve performance, set up caching of query results against any entities that are immutable (ie ref data, ie have ImmutableFacet on them).

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • objectstore-jdo-1.1.0, core-1.2.0
    • 1.17.0
    • Core, Persistence JDO
    • None

    Description

      In DN, this is done using:

      query.addExtension("datanucleus.query.results.cached", "true");
      query.addExtension("datanucleus.query.resultCache.validateObjects", "false");

      So, need to figure out how to set up these properties on queries by repositories of immutable facets. But this could probably be done transparently.

      NB: for these cache results to hang around and not get garbage collected, would also need to set the global config parm:

      datanucleus.cache.queryResult.type=strong

      ... its default value is weak.

      Further info at: http://www.datanucleus.org/products/datanucleus/jdo/query_cache.html#datastoreCompilation

      Attachments

        Activity

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: