mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-10782 Add a comment about what clearing the query plan cache means
This commit is contained in:
parent
0b17fc3225
commit
ad4978c36a
@ -220,7 +220,13 @@ public NativeSQLQueryPlan getNativeSQLQueryPlan(final NativeSQLQuerySpecificatio
|
||||
}
|
||||
|
||||
/**
|
||||
* clean up QueryPlanCache when SessionFactory is closed
|
||||
* Clean up the caches when the SessionFactory is closed.
|
||||
* <p>
|
||||
* Note that depending on the cache strategy implementation chosen, clearing the cache might not reclaim all the
|
||||
* memory.
|
||||
* <p>
|
||||
* Typically, when using LIRS, clearing the cache only invalidates the entries but the outdated entries are kept in
|
||||
* memory until they are replaced by others. It is not considered a memory leak as the cache is bounded.
|
||||
*/
|
||||
public void cleanup() {
|
||||
LOG.trace( "Cleaning QueryPlan Cache" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user