eXist query result caching now working
Posted by mholmes on 08 Nov 2016 in Activity log
After some wrestling with scoping issues, I've finally got a discrete module working which performs query result caching in a fairly elegant manner. The payoff is quite significant; subsequent calls to the same search for (e.g.) the next page of results drop from taking 300 milliseconds to 1 millisecond. The strategy for pruning the cached results by using two maps, one keyed by timestamp, works a treat. This will be used in all of our eXist projects going forward.
I have a couple of small bugs to fix now, one where if there are exactly eleven results, you see only ten of them; and one where the large image in a gallery scan page-image doesn't show up.
This entry was posted by Martin and filed under Activity log.