MongoDB Cookbook pdf下载

MongoDB Cookbookcontent validityMongoDB is a powerful and dynamic tool that lies at the foundations of the next generation of web development. As one of the world’s leading NoSQL databases it offers developers a reliable and proven solution to the challe...

MongoDB Cookbook content validity

MongoDB is a powerful and dynamic tool that lies at the foundations of the next generation of web development. As one of the world’s leading NoSQL databases it offers developers a reliable and proven solution to the challenge of data-intensive computing, providing an exceptional and modern way of handling data. MongoDB Cookbook is an essential resource for anyone tasked with working with MongoDB, delivering quick solutions to common problems and detailed guidance to help you learn how to optimize and get more from MongoDB. With more than 80 recipes to help you learn how to optimize MongoDB as well as simple and effective steps to common challenges and the fundamentals of MongoDB, MongoDB Cookbook is an unmissable technical book.

You’ll find recipes covering an extensive range of tasks and problems to help you covering everything from database administration fundamentals to the more complex problems of database management. Find information on installing and setting up MongoDB, learn command-line operations and indexes, explore how to use PyMongo and find out how MongoDB interacts with a Java client. You’ll also find recipes demonstrating best practices for administration and deployment, along with tips and strategies you can learn and implement to optimize the performance of your database. Beyond this, you will also uncover recipes on integrating MongoDB with Hadoop, teaching you how MongoDB can help you tackle the modern challenge of Big Data.

MongoDB Cookbook Catalog

1. Installing and Starting the MongoDB Server

2. Command-line Operations and Indexes

3. Programming Language Drivers

4. Administration

5. Advanced Operations

6. Monitoring and Backups

7. Cloud Deployment on MongoDB

8. Integration with Hadoop

9. Open Source and Proprietary Tools

MongoDB Cookbook Wonderful Digest

Let’s take a look at the steps in detail:

1. First, we will start by creating a simple JavaScript file; let’s call it hello.js . Type in the following lines in the hello.js file:

function sayHello(name) {

print('Hello ' + name + ', how are you?')

}

2. Save this file at /mongo/scripts . (it can be saved at any other location too).

3. In the command prompt, execute the following command:

> mongo --shell /mongo/scripts/hello.js

4. On executing this, we should see the following message on our console:

MongoDB shell version: 2.4.6

connecting to: test

>

5. Test the database that the shell is connected to by typing the following command:

> db

This should print out test on the console.

6. Now, type in the following command on the shell:

> sayHello('Fred')

Hello Fred, how are you?

本文来自Total.不想长大投稿,不代表电子书资源网立场,如若转载,请联系原作者获取。

打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
() 0
上一篇 02-13
下一篇 02-13

相关推荐

评论列表

联系我们

在线咨询: QQ交谈

邮件:admin@qq.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信