Add a query caching capability to image mosaic

Description

An image mosaic with multiple coverages (e.g. sentinel2) might end up performing the same query multiple times, especially in combination with a shared typename and multiple location properties.

This ticket adds an experimental capability to cache query results, for a configurable amount of time, and with a given maximum size, adding the following two properties in the datastore.properties file:

QueryCacheMaxAge=10000 QueryCacheMaxFeatures=1000

The max-age is expressed in milliseconds. As an experimental capability, it’s not officially documented on purpose, this ticket will serve as temporary docs while we decide if this is actually the best approach to handle the issue (or until we find the sponsorship for a better one).

Environment

None

Activity

Andrea Aime
changed the Status
September 14, 2022 at 12:54 PM
Open
Resolved
Andrea Aime
updated the Fix versions
September 14, 2022 at 12:54 PM
None
28-RC
Andrea Aime
updated the Resolution
September 14, 2022 at 12:54 PM
None
Fixed
Andrea Aime
created the Work item
September 13, 2022 at 10:58 AM
Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created September 13, 2022 at 10:58 AM
Updated September 14, 2022 at 12:54 PM
Resolved September 14, 2022 at 12:54 PM