Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.1.x
-
Component/s: Configuration
-
Labels:None
-
Number of attachments :
Description
The resource pool contains a feature attribute cache that is not really in use (there is a TODO in the code).
The current code however calls directly for the attributes when building a feature source, so caching them has become critical.
The small patch attached enables effective caching, avoiding a scan of the data directory for the schema file every single time a feature source is build (e.g., for every request)
+1. Let's do it. I wonder though... this means that people will no longer be able to just drop a schema.xsd file into and place and have it take effect immediately. They will have to reload the catalog / clear the resource pool cache. Which personally i am fine with, i think it is a reasonable thing to ask of users but thought i would mention it since it will be a change in behaviour.