"MongoDB" discusses some errors in the book of the "MongoDB authoritative guide"

Source: Internet
Author: User
Tags bulk insert findone

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"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.