view benchmark/insert.js @ 241:5a301161e36a Implementation_of_communication

change commandline sql -> nosql
author tatsuki
date Mon, 15 Feb 2016 14:04:51 +0900
parents 5aad7dbb390e
children
line wrap: on
line source

function insertData(personCount) {
db.person1.drop();
for (var i = 1; i<= personCount  ; i++) {

    var user = {
   
    PersonId: "p:" + String(i),
    roleRefIds:"r:" + String(i)}
  db.person1.insert(user);
}

db.person1.createIndex({PersonId:1});
}