From 9a37c7d677a109d15a03f67e7f449845e2546a5d Mon Sep 17 00:00:00 2001 From: tjc <tjc@ee4ac58c-ac51-4696-9907-e4b3aa274f04> Date: Mon, 14 Sep 2009 13:12:22 +0000 Subject: [PATCH] add caching git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@11766 ee4ac58c-ac51-4696-9907-e4b3aa274f04 --- artemis_sqlmap/Organism.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/artemis_sqlmap/Organism.xml b/artemis_sqlmap/Organism.xml index aab93ebd7..2d86cd59d 100644 --- a/artemis_sqlmap/Organism.xml +++ b/artemis_sqlmap/Organism.xml @@ -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> -- GitLab