4 Replies Latest reply on Nov 25, 2005 1:33 AM by James Depoorter

    performance and caching in the hibernate mappings

    James Depoorter Novice

      Hello,

      I found out that setting caching on collection level improves performance a lot. Now it is set on class-level only. To check this:
      - adjust all definition mappings, so every collection includes a cache entry as well
      - write a test with a lot of process definition interaction (nodes, tasks, transitions, etc.)
      - write another test doing exactly the same
      - in every test, write out the hibernate second-level cache statistics at the end of the test (don't forget to activate them)
      You will see a lot of cache hits for the second test, and if you enabled hibernate to show the sql, it shows less calls in the second test.