comparison artifacts/doc/conf/cache.xml @ 7471:fff862f4ef76

Experimental caching of datacage recommendations. The respective hook is called a lot and running the datacage over and over again when loading data can be expensive. So the generated recommendations are cached for some time. Hopefully this improves the overall speed of loading data from the datacage.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 30 Oct 2013 15:26:21 +0100
parents ef08c4f57ede
children 2e4d02207239
comparison
equal deleted inserted replaced
7470:e590599031d8 7471:fff862f4ef76
74 eternal="false" 74 eternal="false"
75 timeToLiveSeconds="7200" 75 timeToLiveSeconds="7200"
76 memoryStoreEvictionPolicy="LFU" 76 memoryStoreEvictionPolicy="LFU"
77 /> 77 />
78 78
79 <!-- This one is used to cache the recommendation nodes generated from datacage -->
80 <cache name="recommendations"
81 maxElementsInMemory="150"
82 eternal="false"
83 timeToLiveSeconds="1800"
84 memoryStoreEvictionPolicy="LRU"
85 overflowToDisk="false"
86 diskPersistent="false"
87 />
88
79 <!-- This one is used for the cross section next neighbor lookup --> 89 <!-- This one is used for the cross section next neighbor lookup -->
80 <cache name="cross-section-kms" 90 <cache name="cross-section-kms"
81 maxElementsInMemory="50" 91 maxElementsInMemory="50"
82 eternal="false" 92 eternal="false"
83 timeToLiveSeconds="7200" 93 timeToLiveSeconds="7200"
147 <!-- This one is used to associate the offical lines to the respective 157 <!-- This one is used to associate the offical lines to the respective
148 main values. --> 158 main values. -->
149 <cache name="official-lines" 159 <cache name="official-lines"
150 maxElementsInMemory="2" 160 maxElementsInMemory="2"
151 timeToLiveSeconds="14400" 161 timeToLiveSeconds="14400"
152 /> 162 />
163
153 164
154 <!-- This one is used for the cross section lookup 165 <!-- This one is used for the cross section lookup
155 Because of lazy fetching and relatively big amount of data, disabled 166 Because of lazy fetching and relatively big amount of data, disabled
156 cache for now. 167 cache for now.
157 <cache name="cross_sections" 168 <cache name="cross_sections"

http://dive4elements.wald.intevation.org