You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -56,7 +56,9 @@ public abstract class SqlExecutingSelector<FACTORY extends SqlFactory, SELECTOR
56
56
57
57
// Throttles the large-result warning to at most once per day per unique call stack, so a legitimately large (but
58
58
// expected) load doesn't flood the log. Keyed by a signature of the call stack; see getArrayList().
59
-
privatestaticfinalCache<String, Boolean> LARGE_RESULT_WARNING_THROTTLE = CacheManager.getCache(1000, CacheManager.DAY, "SqlSelector large result warnings");
59
+
privatestaticfinalThrottle<LargeResultWarning> LARGE_RESULT_WARNING_THROTTLE = newThrottle<>("SqlSelector large result warnings", 1000, CacheManager.DAY,
60
+
w -> LOGGER.warn("{} rows loaded into a collection via {}. Consider switching to streaming variants to reduce memory usage. SQL: {}",
// Log the parameterized SQL only (getSQL(), not the SQLFragment) so bound parameter values stay out of the log
192
-
LOGGER.warn("{} rows loaded into a collection via {}. Consider switching to forEach(), forEachBatch(), or uncachedStream() to reduce memory usage. SQL: {}",
0 commit comments