MongoDB: Get up to speed with one of the the world's most popular NoSQLdatabase
By Nayak Amol
()
About this ebook
MongoDB is a high-performance and feature-rich Document Orientated Database. This popular, highly scalableNoSQL database is used to power some of the world's most used applications and websites.
MongoDB Starter is designed to get you working with MongoDB as quickly as possible. Starting with the installation and setup, we quickly show you how to start importing your data into the database. Furthermore, you will learn about CRUD operations in MongoDB, its Map Reduce support, schema design, and performance tuning operations.
After successfully installing and setting up MongoDB, you will be introduced to important configuration parameters and the terminologies used in the Mongo world and their equivalent in the relational world. You will learn how to import data into the database and connect to the MongoDB from the Mongo shell and execute some queries. We will then move on to advanced topics such as performing insert, update and upsert(update + insert) operations, executing advanced queries, schema design concepts, and creating indexes for performance. MongoDB Starter finishes with a look at the new aggregation framework, Map Reduce operations, and how to bulk import and export data.
Read more from Nayak Amol
Instant MongoDB Rating: 0 out of 5 stars0 ratingsMongoDB Cookbook - Second Edition Rating: 0 out of 5 stars0 ratings
Related to MongoDB
Related ebooks
Practical MongoDB Aggregations: The official guide to developing optimal aggregation pipelines with MongoDB 7.0 Rating: 0 out of 5 stars0 ratingsMastering MongoDB 3.x: An expert's guide to building fault-tolerant MongoDB applications Rating: 0 out of 5 stars0 ratingsFull Stack FastAPI, React, and MongoDB: Fast-paced web app development with the FARM stack Rating: 0 out of 5 stars0 ratingsLearning Search-driven Application Development with SharePoint 2013: The search engine in SharePoint 2013 is a refreshed version and this book will show you how to make the most of it with a range of methodologies for developing search-driven applications. JavaScript experience required. Rating: 0 out of 5 stars0 ratingsGetting Started with RethinkDB Rating: 0 out of 5 stars0 ratingsJavaScript Projects for Kids Rating: 0 out of 5 stars0 ratingsBuilding a Web Application with PHP and MariaDB: A Reference Guide Rating: 0 out of 5 stars0 ratingsInstant IntroJs Rating: 0 out of 5 stars0 ratingsAdvanced Express Web Application Development Rating: 0 out of 5 stars0 ratingsElasticsearch Indexing Rating: 0 out of 5 stars0 ratingsGetting Started with hapi.js Rating: 5 out of 5 stars5/5Designing Microservices with Django: An Overview of Tools and Practices Rating: 0 out of 5 stars0 ratingsRESTful Web API Design with Node.js - Second Edition Rating: 0 out of 5 stars0 ratingsKnockoutJS Blueprints Rating: 0 out of 5 stars0 ratingsLearn Python in 7 Days: Begin your journey with Python Rating: 0 out of 5 stars0 ratingsDjango Project Blueprints Rating: 0 out of 5 stars0 ratingsWeb App Testing Using Knockout.JS Rating: 0 out of 5 stars0 ratingsMongoDB Administrator's Guide: Over 100 practical recipes to efficiently maintain and administer your MongoDB solution Rating: 0 out of 5 stars0 ratingsNetwork Science with Python: Explore the networks around us using network science, social network analysis, and machine learning Rating: 0 out of 5 stars0 ratingsTroubleshooting PostgreSQL Rating: 5 out of 5 stars5/5Instant .NET 4.5 Extension Methods How-to: Utilize and harness the power of extension methods in your .NET applications Rating: 0 out of 5 stars0 ratingsJavaScript and JSON Essentials: Build light weight, scalable, and faster web applications with the power of JSON, 2nd Edition Rating: 0 out of 5 stars0 ratingsAdministrating Solr: Master the use of Drupal and associated scripts to administrate, monitor, and optimize Solr Rating: 0 out of 5 stars0 ratings
Enterprise Applications For You
QuickBooks 2023 All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsExcel 101: A Beginner's & Intermediate's Guide for Mastering the Quintessence of Microsoft Excel (2010-2019 & 365) in no time! Rating: 0 out of 5 stars0 ratingsQuickBooks Online For Dummies Rating: 0 out of 5 stars0 ratingsExcel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5QuickBooks 2024 All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsBitcoin For Dummies Rating: 4 out of 5 stars4/5Managing Humans: Biting and Humorous Tales of a Software Engineering Manager Rating: 4 out of 5 stars4/5Excel Formulas That Automate Tasks You No Longer Have Time For Rating: 5 out of 5 stars5/5SharePoint For Dummies Rating: 0 out of 5 stars0 ratingsCreating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5JIRA 7 Essentials - Fourth Edition Rating: 5 out of 5 stars5/5Access 2019 For Dummies Rating: 0 out of 5 stars0 ratingsLearning Python Rating: 5 out of 5 stars5/5Excel 2019 For Dummies Rating: 3 out of 5 stars3/5Excel Tips and Tricks Rating: 0 out of 5 stars0 ratingsExcel Tables: A Complete Guide for Creating, Using and Automating Lists and Tables Rating: 5 out of 5 stars5/5Notion for Beginners: Notion for Work, Play, and Productivity Rating: 4 out of 5 stars4/5Enterprise AI For Dummies Rating: 3 out of 5 stars3/5Excel 2016 For Dummies Rating: 4 out of 5 stars4/5Code like a Pro in C# Rating: 0 out of 5 stars0 ratingsMastering Excel: Starter Set Rating: 2 out of 5 stars2/5MrExcel LIVe: The 54 Greatest Excel Tips of All Time Rating: 5 out of 5 stars5/5Excel 2019 Bible Rating: 5 out of 5 stars5/5
Reviews for MongoDB
0 ratings0 reviews
Book preview
MongoDB - Nayak Amol
Table of Contents
Instant MongoDB
Credits
About the Author
About the Reviewer
www.packtpub.com
Support files, eBooks, discount offers and more
packtlib.packtpub.com
Why Subscribe?
Free Access for Packt account holders
1. Instant MongoDB
So, what is MongoDB?
What is a document?
What does a document look like?
Need for MongoDB
Scalability
Ease of development
Installation
Step 1 – basic requirements
Step 2 – installing MongoDB
Step 3 – server fails to start
And that's it
Quick start – setting up database and querying
Step 1 – executing your first query on MongoDB
Step2 – summing up and moving on
Top 4 features you need to know about
Finding documents
Let's find one and all
Nailing down to few documents
Selecting a limited set of fields
Paginating and sorting documents
Yet more comparison operators
Checking for the existence of a field
Getting logical
Accessing the nested fields
The leftover operators
Putting it all together
Scenario
Analysis
Inserts, updates, and upserts
Update operators to our rescue
Design something that does not exist
Index creation
Designing the collections
Good old relational way
The Mongo way
It's all about grouping things
The aggregation framework
The project operator ($project)
The match operation ($match)
The limit operator ($limit)
The skip operator ($skip)
The unwind operator ($unwind)
The sort operator ($sort)
The group operator ($group)
Scenario
Analysis
Aggregation using Map reduce
Scenario
Summary
People and places you should get to know
Official sites
Articles and tutorials
Community
Instant MongoDB
Instant MongoDB
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: July 2013
Production Reference: 1220713
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78216-970-3
www.packtpub.com
Credits
Author
Amol Nayak
Reviewer
Varad Meru
Acquisition Editor
Joanna Fitzpatrick
Commissioning Editor
Sruthi Kutty
Technical Editors
Dylan Fernandes
Pragati Singh
Project Coordinator
Suraj Bist
Proofreader
Aaron Nash
Graphics
Abhinash Sahu
Production Coordinator
Prachali Bhiwandkar
Cover Work
Prachali Bhiwandkar
Cover Image
Nitesh Thakur
About the Author
Amol Nayak has been working in the Java/JEE space for the past seven years and is currently employed at a leading investment bank where he is working on cutting edge technologies, predominantly open source. He is playing around with MongoDB by developing prototypes for various use cases at his workplace. He is an open source enthusiast and supports it by contributing to the open source frameworks and promoting them. He has significant ongoing contribution to the Spring Integration project, where he has worked on various adapters for JPA, XQuery, MongoDB, push notification to mobile devices, and Amazon Web Services (AWS). He has also made contributions to the Spring Data Mongo project.
I would like to thank everyone at Packt who has been involved with this book. It all started when Ashish from Packt approached me to author a starter book in Mongo. I would like to thank him for giving me this opportunity. It has an excellent experience full of learning along the way. Being my first title, I struggled initially with the process of writing and submitting the content. If it hadn't been for Suraj, Sruthi, and Yogesh from Packt, I wouldn't have been able to deliver the content on time. Suraj and Sruthi showed great patience and helped me a great deal in formatting and organizing the content that I submitted.
A special thanks to Varad Meru, the technical reviewer of the book who agreed to review the contents at very short notice. If it hadn't been for him, who reviewed the content till late at night, we wouldn't have been in a position to go ahead with the publishing of the title on time. I would like to thank the technical editor, Pragati for her exceptionally quick turnaround time which helped get the book ahead into production in no time.
Finally I would like to thank the other staff from Packt who were involved in the book's publishing process but haven't interacted with me, my office colleagues who supported me a great deal, friends, and my mom, who I wasn't able to devote much time to owing to the schedules for the delivery of the content of the book.
About the Reviewer
Varad Meru has experience in the fields of machine learning, information retrieval systems, and search engines and has worked on various projects/products ranging from core machine learning projects such as e-commerce recommender systems, e-mail analytics, and data science platforms to Cloud Infrastructure Products. He is interested in building Intelligent Systems using machine learning, data mining, data visualization, and distributed and parallel Algorithms.
He is currently working as a Software Development Engineer at Orzota, Inc. Previously he worked at Persistent Systems Ltd., Pune as a part of the Big Data team there. He graduated from Shivaji University in 2011.
www.packtpub.com
Support files, eBooks, discount offers and more
You might want to visit www.packtpub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packtpub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.packtpub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
packtlib.packtpub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
Why Subscribe?
Fully searchable across every book published by Packt
Copy and paste, print and bookmark content
On demand and accessible via web browser
Free Access for Packt account holders
If you have an account with Packt at www.packtpub.com, you can use