3.11.2. Query Compilation Cache
The query compilation cache is a Map used to cache parsed query strings.
As a result, most queries are only parsed once in OpenJPA, and cached thereafter.
You can control the compilation cache through the openjpa.QueryCompilationCache configuration property.
This property accepts a plugin string (see Plugin Configuration) describing the Map used to associate query strings and their parsed form.
This property accepts the following aliases:
| Alias | Value | Notes |
|---|---|---|
|
|
The default option. Uses a
CacheMap to store compilation data. |
|
|
This is the fastest option, but compilation data is never dropped from the cache, so if you use a large number of dynamic queries, this option may result in ever-increasing memory usage. Note that if your queries only differ in the values of the parameters, this should not be an issue. |
|
none |
Disables the compilation cache. |