const Gun = require('gun');
const gun = Gun();
console.time("GO")
var arr = {}
var k=1; //Change this each time you run the code
for (let i = (1 + (k-1) * 100); i <= k * 100; i++) {
arr[i.toString()] = {
username : `username-${i}`,
nis : `nis-${i}`,
password : `password-${i}`,
nama : `nama-${i}`,
nik : `nik-${i}`,
nik2 : `nik2-${i}`,
status : `status-${i}`,
};
}
gun.get("siswa").get("IX").get("IT").put(arr,ack=>{
console.log (ack);
console.timeEnd("GO")
})
How to reproduce : run the code few times. Each time you run the code, increment the k by 1
The Code
How to reproduce : run the code few times. Each time you run the code, increment the
k
by 1