vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 10
声望: 0

第一次使用mongodb,如题

本地代码 IF88.CFFEX
K线周期 1m
开始日期 2010/1/1
结束日期 2019/10/21

2019-10-21T08:24:17.034+0800 I WRITE [conn3] update vnpy.db_bar_data command: { q: { datetime: new Date(1436780820000), interval: "1m", symbol: "IF88" }, u: { $set: { symbol: "IF88", exchange: "CFFEX", datetime: new Date(1436780820000), interval: "1m", volume: 9744.0, open_interest: 0.0, open_price: 4124.8, high_price: 4124.8, low_price: 4097.0, close_price: 4102.6 } }, multi: false, upsert: true } planSummary: COLLSCAN keysExamined:0 docsExamined:343202 nMatched:0 nModified:0 upsert:1 keysInserted:1 numYields:2681 queryHash:2807F315 planCacheKey:2807F315 locks:{ ParallelBatchWriterMode: { acquireCount: { r: 2682 } }, ReplicationStateTransition: { acquireCount: { w: 2682 } }, Global: { acquireCount: { w: 2682 } }, Database: { acquireCount: { w: 2682 } }, Collection: { acquireCount: { w: 2682 } }, Mutex: { acquireCount: { r: 2 } } } flowControl:{ acquireCount: 2682 } storage:{} 151ms
2019-10-21T08:24:17.035+0800 I COMMAND [conn3] command vnpy.$cmd command: update { update: "db_bar_data", ordered: true, lsid: { id: UUID("3162de70-8f77-48d3-85ac-17b43a2d1c81") }, $db: "vnpy", $readPreference: { mode: "primary" } } numYields:2681 reslen:111 locks:{ ParallelBatchWriterMode: { acquireCount: { r: 2683 } }, ReplicationStateTransition: { acquireCount: { w: 2683 } }, Global: { acquireCount: { r: 1, w: 2682 } }, Database: { acquireCount: { w: 2682 } }, Collection: { acquireCount: { w: 2682 } }, Mutex: { acquireCount: { r: 2 } } } flowControl:{ acquireCount: 2682 } storage:{} protocol:op_msg 152ms

Administrator
avatar
加入于:
帖子: 3566
声望: 189

MongoDB的使用相对SQLite这种轻量客户端来说需要更多的配置和经验,如果不会用建议还是换回去

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3