由于一些原因,导出一个mongodb的数据后导到一个新的数据库,在重新建索引时出错:
"errmsg" : "exception: WiredTigerIndex::insert: key too large to index, failing 1663 { : \"sdfsdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffsdfsdfffffffffffffffffffffffffffffffffffffffffff...\", : \"EMAIL\" }"
垃圾信息害人@
处理方法,找到垃圾数据修改EMAIL为正常的格式:
illegal@illegal.com_delete
找到这数据使用命令:
db.T_User.find("this.email && this.email.length>60")
阅读(1382) | 评论(1) | 转发(0) |