Skip to content

Commit

Permalink
Cache MetadataHelper.getQueryModel() (#50) (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
FineAndDandy authored Feb 7, 2025
1 parent 9b84bb8 commit 186317d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/datawave/query/util/MetadataHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,11 @@ public QueryModel getQueryModel(String modelTableName, String modelName, Collect
* @return
* @throws TableNotFoundException
*/
@Cacheable(value = "getQueryModel", key = "{#root.target.auths,#modelTableName,#modelName,#unevaluatedFields,#ingestTypeFilter}",
cacheManager = "metadataHelperCacheManager")
public QueryModel getQueryModel(String modelTableName, String modelName, Collection<String> unevaluatedFields, Set<String> ingestTypeFilter)
throws TableNotFoundException {
// Note that we used to cache this, however this method is dependent on some variables in the all fields metadata helper
// @Cacheable(value = "getQueryModel", key = "{#root.target.auths,#p0,#p1,#p2,#p3}", cacheManager = "metadataHelperCacheManager")

log.debug("cache fault for getQueryModel({}, {}, {}, {}, {})", this.auths, modelTableName, modelName, unevaluatedFields, ingestTypeFilter);
Preconditions.checkNotNull(modelTableName);
Preconditions.checkNotNull(modelName);

Expand Down

0 comments on commit 186317d

Please sign in to comment.