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 99e1380 commit 8060e38Copy full SHA for 8060e38
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;
@@ -509,7 +510,8 @@ private <ASPECT extends RecordTemplate> EbeanMetadataAspect queryLatest(@Nonnul
509
510
);
511
}
512
- results = query.findList();
513
+ // disable L1 caching, then execute
514
+ results = query.setPersistenceContextScope(PersistenceContextScope.QUERY).findList();
515
516
if (results.isEmpty()) {
517
return null;
0 commit comments