我有一个名为asyncfcmnotification的表,这个表在时间戳列上进行了分区。当我想执行这个查询时。
do {
try (HibernateSession session = SessionManager.openSession()) {
//noinspection unchecked
List<AsyncFcmNotification> asyncFcmNotifications = session.createQuery("from AsyncFcmNotification where sent = false")
.setFirstResult(offset)
.setMaxResults(count)
.list();
updateUnsendNotif(asyncFcmNotifications, session);
offset += 100;
}
logger.info(offset + " notif has updated");
} while (offset < asyncFcmNotificationsCount);
asyncfcmnotificationscount值为105220;
我得到这些例外
暂无答案!
目前还没有任何答案,快来回答吧!