摘要: 1、大数据量最好在本地执行更新。 2、在客户端执行更新时需要注意serve活动时间(10分钟),10分钟内解决不了的使用batchSize 或者db.getCollection("").find({}).noCursorTimeout()。 3、print 输出语句会大大影响性能,测试好后注释掉。 阅读全文
posted @ 2019-01-29 19:16 渔阳nice 阅读(497) 评论(0) 推荐(0) 编辑
摘要: mongodb pymongo.errors.CursorNotFound: Cursor not found, cursor id: 82792803897 默认 mongo server维护连接的时间窗口是十分钟 默认 单次从 server获取数据是101条或者 大于1M小于16M的数据 所以默 阅读全文
posted @ 2019-01-29 12:14 渔阳nice 阅读(2429) 评论(0) 推荐(1) 编辑
摘要: 1.判断undefined: var tmp = undefined; if (typeof(tmp) == "undefined"){ alert("undefined"); }说明:typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object" 阅读全文
posted @ 2019-01-29 11:14 渔阳nice 阅读(14648) 评论(0) 推荐(0) 编辑
摘要: 1、将中国标准时间格式化为(2017-06-06 15:05:04) function formatDateTime(theDate) { var _hour = theDate.getHours(); var _minute = theDate.getMinutes(); var _second 阅读全文
posted @ 2019-01-29 11:11 渔阳nice 阅读(314) 评论(0) 推荐(0) 编辑