In the WHOSIS project, we tried to implement a secondary cache for
frequently used data sets (data overlapping with recently-used queries were
resolved from cache), and once WHOSIS was deployed into production and the
application was accessed by several users concurrently, the secondary
cache's memory requirements were too much for Tomcat, and we had to disable
the secondary cache, to keep the application stable and reliable - it was
better to sacrifice a bit of performance in order to keep the application
from crashing.
Note that when zooming out, you need to re-query anyway, because the "wider"
data set will not be in the cache yet. When zooming in within several
seconds, with Mondrian cache enabled, we were getting visible performance
improvements, suggesting that cache is being used (e.g. in WHOSIS query for
"number of physicians" in Canada, Mexico and USA, quickly followed by the
query for "number of physicians" in Canada ... the 2nd query was *much*
faster).
- Jiri
----------------------------------------------------------------
Jiri Dvorak, T4Bi (www.t4bi.com), cell +1.604.220.0529
#1010-1177 West Hastings Street, Vancouver, BC V6E2K3, Canada
-----Original Message-----
From: Jan Henrik Øverland [mailto:janhenrik...@gmail.com]
Sent: Friday, November 14, 2008 3:22 AM
To: jiri....@t4bi.com
Subject: OH-fp speed increase?
Hi Jiri. In order to speed up the existing OH prototype I would
appreciate knowing what you think about applying a cache controller.
It looks like data are collected every time - which I assume is the
most time consuming part of the whole process - even when I am just
zooming in or out. Therefore, could it be a good idea to cache queries
and results? The next time an already cached request is fired, i.e.
when zooming, the result can be returned at once.
Henrik
Jan Henrik,
I think you could look for ways to avoid regeneration of the SLD when you are just using client side panning or zooming in the same layer (i.e. when there is no need to requery the OLAP). Basically, in those cases, you just want a different extent on the image from Geoserver.
Knut
--
Cheers,
Knut Staring