Mongo DB and PHP
معرفی کتاب «Mongo DB and PHP» نوشتهٔ Francia, Steve، منتشرشده توسط نشر O'Reilly Media در سال 2012. این کتاب در 6 صفحه، فرمت epub، زبان انگلیسی ارائه شده است. «Mongo DB and PHP» در دستهٔ بدون دستهبندی قرار دارد.
What would happen if you optimized a data store for the operations application developers actually use? You{u2019}d arrive at MongoDB, the reliable document-oriented database. With this concise guide, you{u2019}ll learn how to build elegant database applications with MongoDB and PHP. Written by the Chief Solutions Architect at 10gen{u2014}the company that develops and supports this open source database{u2014}this book takes you through MongoDB basics such as queries, read-write operations, and administration, and then dives into MapReduce, sharding, and other advanced topics. Get out of the relational database rut, and take advantage of a high-performing system optimized for operations and scale. Learn step-by-step the tools you need to build PHP applications with MongoDB Perform Create, Read, Update, and Delete (CRUD) operations, and learn how to perform queries to retrieve data Administer your database, and access and manipulate data with the MongoDB Shell Use functions to work with sets, arrays, and multiple documents to perform synchronous, asynchronous, and atomic operations Discover PHP{u2019}s community tools and libraries, and why they{u2019}re valuable Work with regular expressions, aggregation, MapReduce, replication, and sharding Chapter 1. Why Mongo? The Problem of Objects and Relational Data Structures; The Problem with ORMs; ORMs Are Hairy and Complex; ORMs Aren't Performant; ORMs Neutered SQL; Complicated Architecture; PHP Is Mostly CRUD; MongoDB, Optimized for Operation; MongoDB Is a Document Database; Document == Array; Databases; Collections; Documents; MongoDB Is Optimized for CRUD Operations; Optimal Interface for Developers; Optimal Performance; Optimal Simplicity; The Value of Consistency Chapter 2. PHP, MongoDB, and You. Installing the Driver on Linux or MacOS X; Checking for the Driver; Installing the Driver; Upgrading the Driver; Installing the Driver on Windows; Connecting to a Database; Connecting to a MongoDB Database Server; Selecting a Database; The Basics (CRUD Operations); Creating/Selecting a Collection; Creating a Document; Important Details about Updating; About Consistency; About fsync; Primary Keys and ObjectIds; About Primary Keys; Reading a Document; About ObjectIds; Retrieving Select Values; Updating a Document; Changing a Value. Adding a ValueAppending a Value to an Array; Upsert and Multiple; Saving a Document; Deleting a Document; The MongoDB Shell; mongo; Using the Shell; Shell Is JavaScript; Administrative Commands; Working with Sets; Querying Sets; Finding (Querying) Data in MongoDB; Pagination with the Cursor; Ranges; Working with Arrays; Finding a Value in an Array; in; nin; all; Matching Entire Arrays; slice; size; elemMatch; Using Dot Notation; Conditionals; Working with Multiple Documents; Updating Multiple Records; Deleting Multiple Records; Working with Indexes; Setting Indexes; Index Order; About Indexes. Compound IndexesIndexing Arrays; Indexes and Memory; Database References; References Are Not Foreign Keys; When to Use References or Reference versus Embed; How to Create References; Creating Manual References; Creating DBRefs; How to Access DBRefs; Dates and Times Chapter 3. Advanced MongoDB. Regular Expressions; Creating a MongoDB Regular Expression; Regular Expressions and Indexes; Aggregation Commands; The Distinct Command; The Group Command; Group Parameters; Group Examples; MapReduce; Overview; findAndModify; GridFS; What Is GridFS?; Using GridFS; Mongofiles; Replication. High AvailabilityWhy Three Nodes?; Really Easy Configuration; Checking the Replica Set Status; Sharding; Gotchas; The Problem; The Array!= Array Problem; Request Injection Attacks Chapter 4. PHP Libraries and Tools. Object Document Mappers (ODM); Doctrine MongoDB ODM; Active Mongo; Mandango; Tools; MongoQueue; Genghis; RockMongo; Frameworks; Symfony2; Lithium; Zend; Fuel; FatFree Framework Chapter 5. Conclusion. Content: Chapter 1. Why Mongo? The Problem of Objects and Relational Data Structures The Problem with ORMs ORMs Are Hairy and Complex ORMs Aren't Performant ORMs Neutered SQL Complicated Architecture PHP Is Mostly CRUD MongoDB, Optimized for Operation MongoDB Is a Document Database Document == Array Databases Collections Documents MongoDB Is Optimized for CRUD Operations Optimal Interface for Developers Optimal Performance Optimal Simplicity The Value of Consistency. Chapter 2. PHP, MongoDB, and You. Installing the Driver on Linux or MacOS X Checking for the Driver Installing the Driver Upgrading the Driver Installing the Driver on Windows Connecting to a Database Connecting to a MongoDB Database Server Selecting a Database The Basics (CRUD Operations) Creating/Selecting a Collection Creating a Document Important Details about Updating About Consistency About fsync Primary Keys and ObjectIds About Primary Keys Reading a Document About ObjectIds Retrieving Select Values Updating a Document Changing a Value. Adding a ValueAppending a Value to an Array Upsert and Multiple Saving a Document Deleting a Document The MongoDB Shell mongo Using the Shell Shell Is JavaScript Administrative Commands Working with Sets Querying Sets Finding (Querying) Data in MongoDB Pagination with the Cursor Ranges Working with Arrays Finding a Value in an Array in nin all Matching Entire Arrays slice size elemMatch Using Dot Notation Conditionals Working with Multiple Documents Updating Multiple Records Deleting Multiple Records Working with Indexes Setting Indexes Index Order About Indexes. Compound IndexesIndexing Arrays Indexes and Memory Database References References Are Not Foreign Keys When to Use References or Reference versus Embed How to Create References Creating Manual References Creating DBRefs How to Access DBRefs Dates and Times -- Chapter 3. Advanced MongoDB. Regular Expressions Creating a MongoDB Regular Expression Regular Expressions and Indexes Aggregation Commands The Distinct Command The Group Command Group Parameters Group Examples MapReduce Overview findAndModify GridFS What Is GridFS? Using GridFS Mongofiles Replication. High AvailabilityWhy Three Nodes? Really Easy Configuration Checking the Replica Set Status Sharding Gotchas The Problem The Array!= Array Problem Request Injection Attacks -- Chapter 4. PHP Libraries and Tools. Object Document Mappers (ODM) Doctrine MongoDB ODM Active Mongo Mandango Tools MongoQueue Genghis RockMongo Frameworks Symfony2 Lithium Zend Fuel FatFree Framework -- Chapter 5. Conclusion. "What would happen if you optimized a data store for the operations application developers actually use? You'd arrive at MongoDB, the reliable document-oriented database. With this concise guide, you'll learn how to build elegant database applications with MongoDB and PHP. Written by the Chief Solutions Architect at 10gen--the company that develops and supports this open source database--this book takes you through MongoDB basics such as queries, read-write operations, and administration, and then dives into MapReduce, sharding, and other advanced topics. Get out of the relational database rut, and take advantage of a high-performing system optimized for operations and scale"--Publisher. Read more... Abstract: Author Steve Francia provides readers with a guide to using MongoDB with PHP. He briefly introduces the reader to MongoDB and why it's a good match for PHP. Once the foundation is laid, learn how to connect to the database, perform CRUD operations, and perform queries. More advanced topics are covered next, such as mapreduce, gridfs and sharding. Read more... "What would happen if you optimized a data store for the operations application developers actually use? You'd arrive at MongoDB, the reliable document-oriented database. With this concise guide, you'll learn how to build elegant database applications with MongoDB and PHP. Written by the Chief Solutions Architect at 10gen--the company that develops and supports this open source database--this book takes you through MongoDB basics such as queries, read-write operations, and administration, and then dives into MapReduce, sharding, and other advanced topics. Get out of the relational database rut, and take advantage of a high-performing system optimized for operations and scale"--Résumé de l'éditeur.
دانلود کتاب Mongo DB and PHP