MongoDB Cookbook pdf

图书网 2018年10月4日00:43:22
评论
1.6K

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?

图书网:MongoDB Cookbook pdf

继续阅读

→→→→→→→→→→→→→→→→→→→→查找获取

匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: