mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
11 lines
210 B
JavaScript
11 lines
210 B
JavaScript
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});
|
|
}
|