blob: c999483713d112f56166a5ad24934098db6741b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
var t = db.bench.geo_near1;
t.drop()
var numPts = 1000*1000;
for (var i=0; i < numPts; i++){
x = (Math.random() * 100) - 50;
y = (Math.random() * 100) - 50;
t.insert({loc: [x,y], i: i});
}
|