Mercurial > hg > Members > shoshi > jungle > jungle-core
view benchmark/insert.js @ 270:a047d14190dd Implementation_of_communication
close
author | tatsuki |
---|---|
date | Tue, 13 Dec 2016 21:16:13 +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}); }