Table of Contents

  • Chapter 1: Getting Started with MongoDB

    • The NoSQL Movement
    • MongoDB – A document-based NoSQL database
    • Downloading, installing and running MongoDB
    • Creating databases, collections and documents
    • Installing the PHP driver for MongoDB
  • Chapter 2: Building your First MongoDB Powered Web App

    • A MongoDB powered blog
    • Inserting documents in MongoDB
    • Querying documents in a collection
    • Creating databases, collections and documents
    • Doing advanced queries in MongoDB
    • Updating documents in MongoDB
    • Deleting documents in MongoDB
    • Managing relationships between documents
  • Chapter 3: Building a Session Manager

    • Understanding HTTP sessions
    • Understanding PHP native session handling
    • Implementing session handling with MongoDB
    • Putting the SessionManager in action
    • Building the user authentication module
    • Creating the login, logout, and user profile page
    • Using good session practices
  • Chapter 4: Aggregation Queries

    • Generating sample data
    • Understanding MapReduce
    • Performing MapReduce in MongoDB
    • Performing MongoDB MapReduce within PHP
    • Performing aggregation using group()
    • Counting documents with count()
  • Chapter 5: Web Analytics using MongoDB

    • Why MongoDB is a good choice as a web analytics backend
    • Logging with MongoDB
    • Extracting analytics data with MapReduce
    • Real-time analytics using MongoDB
  • Chapter 6: Using MongoDB with Relational Databases

    • The motivation behind using MongoDB and an RDBMS together
    • Defining the relational model
    • Caching aggregation results in MongoDB
    • Benefits of caching queries in MongoDB
    • Using MongoDB for data archiving
    • Storing metadata in MongoDB
    • Problems with using MongoDB and RDBMS together
  • Chapter 7: Handling Large Files with GridFS

    • What is GridFS?
    • Storing files in GridFS
    • Serving files from GridFS
    • Reading files in chunks
    • When should you not use GridFS
  • Chapter 8: Building Location-aware Web Applications with MongoDB and PHP

    • A geolocation primer
    • Detecting the location of a web page visitor
    • Geospatial indexing
    • Performing location queries
    • Geospatial haystack indexing
  • Chapter 9: Improving Security and Performance

    • Enhancing query performance using indexes
    • Optimizing queries
    • Geospatial indexing
    • Securing MongoDB
    • Ensuring data durability
  • Chapter 10: Easy MongoDB Administration with RockMongo and phpMoAdmin

    • Administering MongoDB with RockMongo
    • Using phpMoAdmin to administer MongoDB
    • RockMongo versus phpMoAdmin