mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-22 14:24:39 +00:00
perf[orm]: lower the log warning level
This commit is contained in:
@@ -92,7 +92,7 @@ public class MongodbAccessor implements IAccessor {
|
||||
|
||||
var result = collection.bulkWrite(batchList, new BulkWriteOptions().ordered(false));
|
||||
if (result.getModifiedCount() != entities.size()) {
|
||||
logger.error("在数据库[{}]的批量更新操作中需要更新的数量[{}]和最终更新的数量[{}]不相同"
|
||||
logger.warn("在数据库[{}]的批量更新操作中需要更新的数量[{}]和最终更新的数量[{}]不相同(大部分原因都是因为需要更新的文档和数据库的文档相同)"
|
||||
, entityClazz.getSimpleName(), entities.size(), result.getModifiedCount());
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
|
||||
+1
-1
@@ -229,7 +229,7 @@ public class EntityCaches<PK extends Comparable<PK>, E extends IEntity<PK>> impl
|
||||
continue;
|
||||
}
|
||||
|
||||
logger.error("在数据库[{}]的批量更新操作中需要更新的数量[{}]和最终更新的数量[{}]不相同,开始执行容错操作"
|
||||
logger.warn("在数据库[{}]的批量更新操作中需要更新的数量[{}]和最终更新的数量[{}]不相同,开始执行容错操作(大部分原因都是因为需要更新的文档和数据库的文档相同)"
|
||||
, entityDef.getClazz().getSimpleName(), currentUpdateList.size(), result.getModifiedCount());
|
||||
persistAllAndCompare(currentUpdateList);
|
||||
} catch (Throwable t) {
|
||||
|
||||
Reference in New Issue
Block a user