Membrey / Hows / Plugge | MongoDB Basics | E-Book | sack.de
E-Book

E-Book, Englisch, 133 Seiten, eBook

Membrey / Hows / Plugge MongoDB Basics

E-Book, Englisch, 133 Seiten, eBook

ISBN: 978-1-4842-0895-3
Verlag: APRESS
Format: PDF
Kopierschutz: Wasserzeichen (»Systemvoraussetzungen)



Need a quick and easy to understand introduction to MongoDB and NoSQL databases?
MongoDB Basics
, from
The Definitive Guide to MongoDB, 2E
, shows you how a document-oriented database system differs from a relational database, and how to install and get started using it. You'll also learn MongoDB design basics, including geospatial indexing, how to navigate, view, and query your database, and how to use GridFS with a bit of Python.
Membrey / Hows / Plugge MongoDB Basics jetzt bestellen!

Zielgruppe


Popular/general

Weitere Infos & Material


1;Contents at a Glance;3
2;Contents;125
3;About the Authors;130
4;About the Technical Reviewers;132
5;Acknowledgments;133
6;Introduction;4
7;Chapter 1: Introduction to MongoDB;5
7.1;Reviewing the MongoDB Philosophy;5
7.1.1;Using the Right Tool for the Right Job;5
7.1.2;Lacking Innate Support for Transactions;7
7.1.3;JSON and MongoDB;8
7.1.4;Adopting a Nonrelational Approach;10
7.1.5;Opting for Performance vs. Features;11
7.1.6;Running the Database Anywhere;12
7.2;Fitting Everything Together;13
7.2.1;Generating or Creating a Key;13
7.2.2;Using Keys and Values;14
7.2.3;Implementing Collections;14
7.2.4;Understanding Databases;15
7.3;Reviewing the Feature List;15
7.3.1;Using Document-Oriented Storage (BSON);15
7.3.2;Supporting Dynamic Queries;16
7.3.3;Indexing Your Documents;17
7.3.4;Leveraging Geospatial Indexes;18
7.3.5;Profiling Queries;18
7.3.6;Updating Information In-Place;18
7.3.7;Storing Binary Data;19
7.3.8;Replicating Data;19
7.3.9;Implementing Sharding;20
7.3.10;Using Map and Reduce Functions;20
7.3.11;The MongoDB Aggregation Framework;21
7.4;Getting Help;21
7.4.1;Visiting the Website;21
7.4.2;Chatting with the MongoDB Developers;21
7.4.3;Cutting and Pasting MongoDB Code;22
7.4.4;Finding Solutions on Google Groups;22
7.4.5;Leveraging the JIRA Tracking System;22
7.5;Summary;22
8;Chapter 2: Installing MongoDB;23
8.1;Choosing Your Version;23
8.1.1;Understanding the Version Numbers;24
8.2;Installing MongoDB on Your System;24
8.2.1;Installing MongoDB under Linux;25
8.2.1.1;Installing MongoDB through the Repositories;25
8.2.1.2;Installing MongoDB Manually;26
8.2.2;Installing MongoDB under Windows;27
8.3;Running MongoDB;27
8.3.1;Prerequisites;27
8.3.2;Surveying the Installation Layout;28
8.3.3;Using the MongoDB Shell;29
8.4;Installing Additional Drivers;30
8.4.1;Installing the PHP Driver;31
8.4.1.1;Getting MongoDB for PHP;31
8.4.1.2;Installing the PHP Driver on Unix-Based Platforms Automatically;32
8.4.1.3;Installing the PHP Driver on Unix-Based Platforms Manually;33
8.4.1.4;Installing the PHP Driver on Windows;34
8.4.2;Confirming That Your PHP Installation Works;34
8.4.2.1;Connecting to and Disconnecting from the PHP Driver;35
8.4.3;Installing the Python Driver;36
8.4.3.1;Installing PyMongo under Linux;37
8.4.3.1.1;Installing PyMongo Automatically;37
8.4.3.1.2;Installing PyMongo Manually;37
8.4.3.2;Installing PyMongo under Windows;38
8.4.4;Confirming That Your PyMongo Installation Works;39
8.5;Summary;40
9;Chapter 3: The Data Model;41
9.1;Designing the Database;41
9.1.1;Drilling Down on Collections;43
9.1.2;Using Documents;45
9.1.2.1;Embedding vs. Referencing Information in Documents;46
9.1.3;Creating the _id Field;48
9.2;Building Indexes;49
9.2.1;Impacting Performance with Indexes;49
9.3;Implementing Geospatial Indexing;50
9.3.1;Querying Geospatial Information;51
9.4;Using MongoDB in the Real World;56
9.5;Summary;57
10;Chapter 4: Working with Data;58
10.1;Navigating Your Databases;58
10.1.1;Viewing Available Databases and Collections;59
10.2;Inserting Data into Collections;59
10.3;Querying for Data;61
10.3.1;Using the Dot Notation;63
10.3.2;Using the Sort, Limit, and Skip Functions;65
10.3.3;Working with Capped Collections, Natural Order, and $natural;66
10.3.4;Retrieving a Single Document;68
10.3.5;Using the Aggregation Commands;68
10.3.5.1;Returning the Number of Documents with count(?);68
10.3.5.2;Retrieving Unique Values with distinct();69
10.3.5.3;Grouping Your Results;70
10.3.6;Working with Conditional Operators;71
10.3.6.1;Performing Greater-Than and Less-Than Comparisons;72
10.3.6.2;Retrieving All Documents but Those Specified;73
10.3.6.3;Specifying an Array of Matches;73
10.3.6.4;Finding a Value Not in an Array;74
10.3.6.5;Matching All Attributes in a Document;74
10.3.6.6;Searching for Multiple Expressions in a Document;74
10.3.6.7;Retrieving a Document with $slice;75
10.3.6.8;Searching for Odd/Even Integers;76
10.3.6.9;Filtering Results with $size;77
10.3.6.10;Returning a Specific Field Object;77
10.3.6.11;Matching Results Based on the BSON Type;78
10.3.6.12;Matching an Entire Array;79
10.3.6.13;$not (meta-operator);80
10.3.6.14;Specifying Additional Query Expressions;80
10.3.7;Leveraging Regular Expressions;81
10.4;Updating Data;81
10.4.1;Updating with update();81
10.4.2;Implementing an Upsert with the save(?) Command;82
10.4.3;Updating Information Automatically;83
10.4.3.1;Incrementing a Value with $inc;83
10.4.3.2;Setting a Field’s Value;84
10.4.3.3;Deleting a Specified Field;84
10.4.3.4;Appending a Value to a Specified Field;84
10.4.3.5;Specifying Multiple Values in an Array;85
10.4.3.6;Adding Data to an Array with $addToSet;86
10.4.3.7;Removing Elements from an Array;87
10.4.3.8;Removing Each Occurrence of a Specified Value;88
10.4.3.9;Removing Multiple Elements from an Array;88
10.4.4;Specifying the Position of a Matched Array;88
10.4.5;Atomic Operations;89
10.4.5.1;Using the Update if Current Method;90
10.4.6;Modifying and Returning a Document Atomically;91
10.5;Renaming a Collection;92
10.6;Removing Data;93
10.7;Referencing a Database;94
10.7.1;Referencing Data Manually;94
10.7.2;Referencing Data with DBRef;96
10.8;Implementing Index-Related Functions;98
10.8.1;Surveying Index-Related Commands;100
10.8.2;Forcing a Specified Index to Query Data;100
10.8.3;Constraining Query Matches;101
10.9;Summary;102
11;Chapter 5: GridFS;103
11.1;Filling in Some Background;104
11.2;Working with GridFS;105
11.3;Getting Started with the Command-Line Tools;105
11.3.1;Using the _ id Key;106
11.3.2;Working with Filenames;107
11.3.3;Determining a File’s Length;107
11.3.4;Working with Chunk Sizes;108
11.3.5;Tracking the Upload Date;108
11.3.6;Hashing Your Files;108
11.4;Looking Under MongoDB’s Hood;109
11.4.1;Using the search Command;111
11.4.2;Deleting;112
11.4.3;Retrieving Files from MongoDB;113
11.4.4;Summing Up mongofiles;113
11.5;Exploiting the Power of Python;113
11.5.1;Connecting to the Database;114
11.5.2;Accessing the Words;115
11.6;Putting Files into MongoDB;115
11.7;Retrieving Files from GridFS;116
11.8;Deleting Files;116
11.9;Summary;117
12;Index;118


Hailing from the U.K., strongPeter Membrey/strong has worked for Red Hat, holds a RHCE certification, and worked and taught at a number of educational institutions since the beginning of his career. He knows what Linux users like and need, and hopes that CentOS will get the kudos it deserves. He lives in Hong Kong and is teaching and consulting on all matters to do with Linux Enterprise networking, while studying for his master's degree.


Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.