mongodb循环插入测试数据
时间:2021-07-01 10:21:17
帮助过:44人阅读
for (var i = 1; i <= 100000; i++) { db.testdata2.insert( { x : i , name: "MACLEAN" , name1:"MACLEAN", name2:"MACLEAN", name3:"MACLEAN"} )}
use testdata2
for(var i=1;i<=10000;i++){db.data.insert({ x:i,name:"MACLEAN",name1:"MACLEAN",name2:"MACLEAN",name3:"MACLEAN" })} db.data.find({x:{$gt:40}}).explain();
来自为知笔记(Wiz)
mongodb循环插入测试数据
标签:explain www xpl tle nbsp bsp 数据 http god