Sams Teach Yourself NoSQL with MongoDB in 24 Hours

Book description

NoSQL database usage is growing at a stunning 50% per year, as organizations discover NoSQL's potential to address even the most challenging Big Data and real-time database problems. Every NoSQL database is different, but one is the most popular by far: MongoDB.

Now, in just 24 lessons of one hour or less, you can learn how to leverage MongoDB's immense power. Each short, easy lesson builds on all that's come before, teaching NoSQL concepts and MongoDB techniques from the ground up.

Sams Teach Yourself NoSQL with MongoDB in 24 Hours covers all this, and much more:

  • Learning how NoSQL is different, when to use it, and when to use traditional RDBMSes instead

  • Designing and implementing MongoDB databases of diverse types and sizes

  • Storing and interacting with data via Java, PHP, Python, and Node.js/Mongoose

  • Choosing the right NoSQL distribution model for your application

  • Installing and configuring MongoDB

  • Designing MongoDB data models, including collections, indexes, and GridFS

  • Balancing consistency, performance, and durability

  • Leveraging the immense power of Map-Reduce

  • Administering, monitoring, securing, backing up, and repairing MongoDB databases

  • Mastering advanced techniques such as sharding and replication

  • Optimizing performance

  • Table of contents

    1. About This eBook
    2. Title Page
    3. Copyright Page
    4. Contents at a Glance
    5. Table of Contents
    6. About the Author
    7. Dedication
    8. Acknowledgments
    9. We Want to Hear from You!
    10. Reader Services
    11. Introduction
      1. How This Book Is Organized
      2. Code Examples
      3. Special Elements
      4. Q&A, Quiz, and Exercises
    12. Part I: Getting Started with NoSQL and MongoDB
      1. Hour 1. Introducing NoSQL and MongoDB
        1. What Is NoSQL?
        2. Choosing RDBMS, NoSQL, or Both
        3. Understanding MongoDB
        4. MongoDB Data Types
        5. Planning Your Data Model
        6. Summary
        7. Q&A
        8. Workshop
      2. Hour 2. Installing and Configuring MongoDB
        1. Building the MongoDB Environment
        2. Accessing the MongoDB HTTP Interface
        3. Accessing MongoDB from the Shell Client
        4. Scripting the MongoDB Shell
        5. Summary
        6. Q&A
        7. Workshop
      3. Hour 3. Using JavaScript in the MongoDB Shell
        1. Defining Variables
        2. Understanding JavaScript Data Types
        3. Outputting Data in a MongoDB Shell Script
        4. Using Operators
        5. Implementing Looping
        6. Creating Functions
        7. Understanding Variable Scope
        8. Using JavaScript Objects
        9. Manipulating Strings
        10. Working with Arrays
        11. Adding Error Handling
        12. Summary
        13. Q&A
        14. Workshop
    13. Part II: Implementing NoSQL in MongoDB
      1. Hour 4. Configuring User Accounts and Access Control
        1. Understanding the Admin Database
        2. Administrating User Accounts
        3. Configuring Access Control
        4. Summary
        5. Q&A
        6. Workshop
      2. Hour 5. Managing Databases and Collections from the MongoDB Shell
        1. Understanding the Database and Collection Objects
        2. Managing Databases
        3. Managing Collections
        4. Implementing the Example Dataset
        5. Summary
        6. Q&A
        7. Workshop
      3. Hour 6. Finding Documents in the MongoDB Collection from the MongoDB Shell
        1. Understanding the Cursor Object
        2. Understanding Query Operators
        3. Getting Documents from a Collection
        4. Finding Specific Sets of Documents
        5. Summary
        6. Q&A
        7. Workshop
      4. Hour 7. Additional Data-Finding Operations Using the MongoDB Shell
        1. Counting Documents
        2. Sorting Results Sets
        3. Limiting Result Sets
        4. Finding Distinct Field Values
        5. Summary
        6. Q&A
        7. Workshop
      5. Hour 8. Manipulating MongoDB Documents in a Collection
        1. Understanding the Write Concern
        2. Configuring Database Connection Error Handling
        3. Getting the Status of Database Write Requests
        4. Understanding Database Update Operators
        5. Adding Documents to a Collection in the MongoDB Shell
        6. Updating Documents in a Collection from the MongoDB Shell
        7. Saving Documents in a Collection Using the MongoDB Shell
        8. Upserting Documents in Collections Using the MongoDB Shell
        9. Deleting Documents from a Collection Using the MongoDB Shell
        10. Summary
        11. Q&A
        12. Workshop
      6. Hour 9. Utilizing the Power of Grouping, Aggregation, and Map Reduce
        1. Grouping Results of Find Operations in the MongoDB Shell
        2. Using Aggregation to Manipulate the Data During Requests from the MongoDB Shell
        3. Applying Map Reduce to Generate New Data Results Using the MongoDB Shell
        4. Summary
        5. Q&A
        6. Workshop
    14. Part III: Using MongoDB in Applications
      1. Hour 10. Implementing MongoDB in Java Applications
        1. Understanding MongoDB Driver Objects in Java
        2. Finding Documents Using Java
        3. Counting Documents in Java
        4. Sorting Results Sets in Java
        5. Summary
        6. Q&A
        7. Workshop
      2. Hour 11. Accessing Data from MongoDB in Java Applications
        1. Limiting Result Sets Using Java
        2. Finding a Distinct Field Value in Java
        3. Grouping Results of Find Operations in Java Applications
        4. Using Aggregation to Manipulate the Data During Requests from Java Applications
        5. Summary
        6. Q&A
        7. Workshop
      3. Hour 12. Working with MongoDB Data in Java Applications
        1. Adding Documents from Java
        2. Removing Documents from Java
        3. Saving Documents from Java
        4. Updating Documents from Java
        5. Upserting Documents from Java
        6. Summary
        7. Q&A
        8. Workshop
      4. Hour 13. Implementing MongoDB in PHP Applications
        1. Understanding MongoDB Driver Objects in PHP
        2. Finding Documents Using PHP
        3. Counting Documents in PHP
        4. Sorting Result Sets in PHP
        5. Summary
        6. Q&A
        7. Workshop
      5. Hour 14. Accessing Data from MongoDB in PHP Applications
        1. Limiting Result Sets Using PHP
        2. Finding Distinct Field Values in PHP
        3. Grouping Results of Find Operations in PHP Applications
        4. Using Aggregation to Manipulate the Data During Requests from PHP Applications
        5. Summary
        6. Q&A
        7. Workshop
      6. Hour 15. Working with MongoDB Data in PHP Applications
        1. Adding Documents from PHP
        2. Removing Documents from PHP
        3. Saving Documents from PHP
        4. Updating Documents from PHP
        5. Upserting Documents from PHP
        6. Summary
        7. Q&A
        8. Workshop
      7. Hour 16. Implementing MongoDB in Python Applications
        1. Understanding MongoDB Driver Objects in Python
        2. Finding Documents Using Python
        3. Counting Documents in Python
        4. Sorting Result Sets in Python
        5. Summary
        6. Q&A
        7. Workshop
      8. Hour 17. Accessing Data from MongoDB in Python Applications
        1. Limiting Result Sets Using Python
        2. Finding Distinct Field Value in Python
        3. Grouping Results of Find Operations in Python Applications
        4. Using Aggregation to Manipulate the Data During Requests from Python Applications
        5. Summary
        6. Q&A
        7. Workshop
      9. Hour 18. Working with MongoDB Data in Python Applications
        1. Adding Documents from Python
        2. Removing Documents from Python
        3. Saving Documents from Python
        4. Updating Documents from Python
        5. Upserting Documents from Python
        6. Summary
        7. Q&A
        8. Workshop
      10. Hour 19. Implementing MongoDB in Node.js Applications
        1. Understanding MongoDB Driver Objects in Node.js
        2. Finding Documents Using Node.js
        3. Counting Documents in Node.js
        4. Sorting Results Sets in Node.js
        5. Summary
        6. Q&A
        7. Workshop
      11. Hour 20. Accessing Data from MongoDB in Node.js Applications
        1. Limiting Result Sets Using Node.js
        2. Finding Distinct Field Value in Node.js
        3. Grouping Results of Find Operations in Node.js Applications
        4. Using Aggregation to Manipulate the Data During Requests from Node.js Applications
        5. Summary
        6. Q&A
        7. Workshop
      12. Hour 21. Working with MongoDB Data in Node.js Applications
        1. Adding Documents from Node.js
        2. Removing Documents from Node.js
        3. Saving Documents from Node.js
        4. Updating Documents from Node.js
        5. Upserting Documents from Node.js
        6. Summary
        7. Q&A
        8. Workshop
    15. Part IV: Additional MongoDB Concepts
      1. Hour 22. Database Administration Using the MongoDB Shell
        1. Working with Databases and Collections
        2. Working with Indexes
        3. Understanding Performance and Diagnostic Tasks
        4. Repairing a MongoDB Database
        5. Backing Up MongoDB
        6. Summary
        7. Q&A
        8. Workshop
      2. Hour 23. Implementing Replication and Sharding in MongoDB
        1. Applying Replication in MongoDB
        2. Implementing Sharding in MongoDB
        3. Summary
        4. Q&A
        5. Workshop
      3. Hour 24. Implementing a MongoDB GridFS Store
        1. Understanding the GridFS Store
        2. Implementing a GridFS in the MongoDB Shell
        3. Implementing a MongoDB GridFS Using the Java MongoDB Driver
        4. Implementing a MongoDB GridFS Using the PHP MongoDB Driver
        5. Implementing a MongoDB GridFS Using the Python MongoDB Driver
        6. Implementing a MongoDB GridFS Using the Node.js MongoDB Driver
        7. Summary
        8. Q&A
        9. Workshop
    16. Index

    Product information

    • Title: Sams Teach Yourself NoSQL with MongoDB in 24 Hours
    • Author(s):
    • Release date: September 2014
    • Publisher(s): Sams
    • ISBN: 9780133844412