Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1006

Disabling QueryCaching at runtime does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.1, 2.0.0-M2
    • 1.2.0, 2.0.0-M2
    • datacache
    • None
    • N/A.
      should be replicable on all environments.
      The one I tried is on windows with oracle 10g as database.

    Description

      An application has a configuration that allows query caching, but is making runtime calls to inform a fetch plan to disable query caching.

      The bug is that this dynamic no-caching request is being ignored by the query cache executor, which then caches the query regardless.

      Tried to disable query cache using
      OpenJPAEntityManager.getFetchPlan().setQueryResultCache(false);

      and also

      query.getFetchPlan().setQueryResultCacheEnabled(false);

      Attachments

        1. OPENJPA-1006.patch
          2 kB
          Ravi Prakash Palacherla
        2. openJPATestcase.zip
          8 kB
          Ravi Prakash Palacherla
        3. TestQueryResultSize.java
          3 kB
          Ravi Prakash Palacherla

        Activity

          People

            dezzio David Ezzio
            rpalache Ravi Prakash Palacherla
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: