Mercurial > dive4elements > river
diff flys-artifacts/ChangeLog @ 644:02c0cce0e469
Introduce a cache for the distance-info service
flys-artifacts/trunk@2028 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 30 May 2011 11:34:06 +0000 |
parents | a9bde508824a |
children | 433f67a076aa |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Mon May 30 09:19:57 2011 +0000 +++ b/flys-artifacts/ChangeLog Mon May 30 11:34:06 2011 +0000 @@ -1,3 +1,20 @@ +2011-05-30 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * doc/conf/cache.xml: Introduced cache to store the distance info per river. + This boosts performance in following ab setup from 3.61 to 39.91 requests/secs. + + $ ab -c 20 -n 1000 -p distances.xml http://127.0.0.1:8181/service/distanceinfo + + $ cat distances.xml + <?xml version="1.0" encoding="UTF-8"?> + <art:river xmlns:art="http://www.intevation.de/2009/artifacts">Elbe</art:river> + + * src/main/java/de/intevation/flys/artifacts/model/AnnotationsFactory.java: Added + an iterator result to avoid construction expensive interim lists. + + * src/main/java/de/intevation/flys/artifacts/services/DistanceInfoService.java: Use + the cache if configured. + 2011-05-30 Sascha L. Teichmann <sascha.teichmann@intevation.de> flys/issue82