We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c29b606 commit ccd9b02Copy full SHA for ccd9b02
dao-impl/ebean-dao/src/main/java/com/linkedin/metadata/dao/EbeanLocalDAO.java
@@ -38,6 +38,7 @@
38
import io.ebean.EbeanServer;
39
import io.ebean.ExpressionList;
40
import io.ebean.PagedList;
41
+import io.ebean.PersistenceContextScope;
42
import io.ebean.Query;
43
import io.ebean.SqlUpdate;
44
import io.ebean.Transaction;
@@ -512,6 +513,9 @@ private <ASPECT extends RecordTemplate> EbeanMetadataAspect queryLatest(@Nonnul
512
513
);
514
}
515
516
+ // disable L1 caching, then execute
517
+ results = query.setPersistenceContextScope(PersistenceContextScope.QUERY).findList();
518
+
519
if (results.isEmpty()) {
520
return null;
521
0 commit comments