Mercurial > hg > Members > shoshi > jungle > jungle-core
view benchmark/insert.js @ 252:d198a04e9e75 Implementation_of_communication
add messagepack in gradle
author | one |
---|---|
date | Thu, 17 Nov 2016 17:58:52 +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}); }