Skip to content
Snippets Groups Projects
Commit 9a37c7d6 authored by tjc's avatar tjc
Browse files

add caching

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@11766 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 480ae065
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
<cacheModel id="organism-cache" type ="LRU" readOnly="true">
<flushInterval hours="24"/>
<property name="cache-size" value="100" />
<property name="cache-size" value="85" />
</cacheModel>
<resultMap id="map-organism" class="org.gmod.schema.organism.Organism">
......@@ -21,8 +21,7 @@
<result property="organismProps" column="organismId" select="getOrganismPropByOrganismIdLazy"/>
</resultMap>
<select id="getOrganism"
resultMap="map-organism">
<select id="getOrganism" resultMap="map-organism" cacheModel="organism-cache">
SELECT organism_id AS organismId, abbreviation, genus, species, common_name AS commonName, comment
FROM organism
<dynamic>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment