Skip to content

Instantly share code, notes, and snippets.

@pauloalem
Created December 10, 2014 18:09
Show Gist options
  • Save pauloalem/b92d6b9f76f511310873 to your computer and use it in GitHub Desktop.
Save pauloalem/b92d6b9f76f511310873 to your computer and use it in GitHub Desktop.
// db.broken.drop();
var obj = {routes: []},
point = [-24.123, 24.213];
for(var i=0; i < 1696; i++) {
obj.routes.push({points: [point]});
}
db.broken.insert(obj);
db.broken.find({"routes.points.1": {$exists: 1}});
@pauloalem
Copy link
Author

2014-12-10T16:29:14.524-0200 [conn2] Running query: query: { routes.points.1: { $exists: 1.0 } } sort: {} projection: {} skip: 0 limit: 0
2014-12-10T16:29:14.525-0200 [journal] journal WRITETODATAFILES 1
2014-12-10T16:29:14.525-0200 [journal] journal WRITETODATAFILES 2
2014-12-10T16:29:14.525-0200 [journal] journal WRITETODATAFILES 0.227ms
2014-12-10T16:29:14.544-0200 [conn2] Only one plan is available; it will be run but will not be cached. query: { routes.points.1: { $exists: 1.0 } } sort: {} projection: {} skip: 0 limit: 0, planSummary: COLLSCAN
[1] 32887 illegal hardware instruction mongod -vvv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment