Today further study MongoDB, learning materials is the "MongoDB authoritative guide", detailed see the following cover:
The following errors were found during the reading process:
First: P29 page BULK INSERT, in the book that can be used to implement BULK insert Batchinsert function, I run the time to find that the system hints do not have this method. The software I use is 2.6.4. I thought the version was too low and then downloaded the latest version of 2.6.6 to test and report the same error;
Property ' Batchinsert ' of object student.students are not a function
Later query with command: DB.STUDENTS.HELP () query the collection operation of all methods, did not find Batchinsert this method;
Second place: P31 page, in the deletion speed, the last line of the countdown. Db.tester.remove (), Db.findone ();
Db.findone (); This method can not be used here, if according to this write direct error, should be written db.tester.findOne ();
Third: P62 page, returns a matching array element: I follow the book above the operation, the result error, no matter also debug:
My example:
PostScript: Really tell want to learn MongoDB small partner, do not use this book as a learning material. There are a lot of errors inside, please note
"MongoDB" discusses some errors in the book of the "MongoDB authoritative guide"