赞
踩
由于项目中考虑使用mongodb,遂作了一些调研
机器配置:
使用Java API 单线程循环操作:
数据结构是json结构:
- {
- "firstLevel": "hello world",
- "secondLevel": [
- {
- "test1":
- },
- {
- "test1":
- }
- ]
- }
单条数据大小为1.27K
插入2千万条数据,用时:1473s,平均 13577/s
检索数据:使用二级条件 即 test1=“” 检索出5条数据用时17毫秒
修改同样条件用时150毫秒
批量更新 达到 2288/s
使用范围条件查询 arg1<test1<arg2 检索出5条数据, 用时394毫秒
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。