This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
insert/s query/s update/s delete/s getmore/s command/s mapped vsize res % locked % idx miss conn time | |
0 0 0 0 0 1 2207 2262 19 0 0 2 07:55:40 | |
0 0 0 0 0 1 2207 2262 19 0 0 2 07:55:41 | |
0 0 0 0 0 1 2207 2262 19 0 0 2 07:55:42 | |
0 0 0 0 0 1 2207 2262 19 0 0 2 07:55:43 | |
0 0 0 0 0 1 2207 2262 19 0 0 2 07:55:44 | |
0 0 0 0 0 1 2207 2262 19 0 0 2 07:55:45 | |
0 0 0 0 0 1 2207 2262 19 0 0 2 07:55:46 | |
0 0 0 0 0 1 2207 2262 19 0 0 2 07:55:47 | |
0 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//1.5.4 | |
> db.test2.insert({ | |
... name : "Something", | |
... things : [ | |
... {foo : "148091a0719c", bar: 1}, | |
... {foo : "0026080741c6", bar: 0} | |
... ] | |
... }) | |
> db.test2.update({name:"Something","things.foo":"148091a0719c"}, {$set:{"things.bar":2}}) | |
can't append to array using string field name [bar] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> db.oder.save({x:1}) | |
> db.oder.save({x:3}) | |
> db.oder.save({x:2}) | |
> db.oder.find({x:{$in:[1,2,3]}}) | |
{ "_id" : ObjectId("4c029a9ec94d0000000077c5"), "x" : 1 } | |
{ "_id" : ObjectId("4c029aa0c94d0000000077c6"), "x" : 3 } | |
{ "_id" : ObjectId("4c029aa2c94d0000000077c7"), "x" : 2 } | |
> db.oder.ensureIndex({x:1}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> db.dates.save({date: new Date("july 3, 1955")}) | |
> db.dates.find() | |
{ "_id" : ObjectId("4bee29e7751e0000000070cb"), "date" : "Tue Jan -2147483647 584556005 13:25:52 GMT-0800 (Pacific Standard Time)" } |
NewerOlder