Introduction to MongoDB

Slides:



Advertisements
Similar presentations
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Advertisements

Basic SQL Introduction Presented by: Madhuri Bhogadi.
Relational Database Alternatives NoSQL. Choosing A Data Model Relational database underpin legacy applications and meet business needs However, companies.
NoSQL Databases: MongoDB vs Cassandra
ORACLE Lecture 1: Oracle 11g Introduction & Installation.
Introduction to Backend James Kahng. Install Node.js.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
CS 405G: Introduction to Database Systems 24 NoSQL Reuse some slides of Jennifer Widom Chen Qian University of Kentucky.
An introduction to MongoDB Rácz Gábor ELTE IK, febr. 10.
What is MongoDB? Developed by 10gen It is a NoSQL database A document-oriented database It uses BSON format.
Jeff Lemmerman Matt Chimento Medtronic Confidential 1 9th Annual CodeFreeze Symposium Medtronic Energy and Component Center.
A Social blog using MongoDB ITEC-810 Final Presentation Lucero Soria Supervisor: Dr. Jian Yang.
Databases Dan Otero Alex Loddengaard
Session 5: Working with MySQL iNET Academy Open Source Web Development.
ASP.NET Programming with C# and SQL Server First Edition
Practical Database Design and Tuning. Outline  Practical Database Design and Tuning Physical Database Design in Relational Databases An Overview of Database.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Information Systems Today (©2006 Prentice Hall) MySQL 1CS3754 Class Note #8, Is an open-source relational database management system 2.Is fast and.
NoSQL continued CMSC 461 Michael Wilson. MongoDB  MongoDB is another NoSQL solution  Provides a bit more structure than a solution like Accumulo  Data.
WTT Workshop de Tendências Tecnológicas 2014
Goodbye rows and tables, hello documents and collections.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
NoSQL Databases NoSQL Concepts SoftUni Team Technical Trainers Software University
NoSQL Databases Oracle - Berkeley DB. Content A brief intro to NoSQL About Berkeley Db About our application.
NOSQL DATABASES Please remember to read the NOSQL Distilled book and the Seven Databases book.
Methodological Foundations of Biomedical Informatics (BMSC-GA 4449) Himanshu Grover.
© Copyright 2013 STI INNSBRUCK
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation Exam and Lecture Overview.
CSE 3330 Database Concepts MongoDB. Big Data Surge in “big data” Larger datasets frequently need to be stored in dbs Traditional relational db were not.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
Visual Programing SQL Overview Section 1.
Database Management System. DBMS A software package that allows users to create, retrieve and modify databases. A database is a collection of related.
Modeling MongoDB with Relational Model Proposed by Christopher Polanco.
Chapter 5 : Integrity And Security  Domain Constraints  Referential Integrity  Security  Triggers  Authorization  Authorization in SQL  Views 
NOSQL DATABASE Not Only SQL DATABASE
Some notes on NoSQL, in particular MongoDB Bettina Berendt (with thanks to Matthijs van Leeuwen for some of the slides) 8 December 2015.
V 1.0 DBMAN 10 Non-traditional Databases 1.
Introduction to MongoDB. Database compared.
Data and Information Systems Laboratory University of Illinois Urbana-Champaign Data Mining Meeting Mar, From SQL to NoSQL Xiao Yu Mar 2012.
NoSQL databases A brief introduction NoSQL databases1.
CMPE 226 Database Systems May 3 Class Meeting Department of Computer Engineering San Jose State University Spring 2016 Instructor: Ron Mak
CS422 Principles of Database Systems Introduction to NoSQL Chengyu Sun California State University, Los Angeles.
Data Tier Options NWEN304 Advanced Network Applications.
MongoDB for SQL Developers Ben Galluzzo SQL Saturday #395 – Baltimore - BI Edition 2015.
Group members: Phạm Hoàng Long Nguyễn Huy Hùng Lê Minh Hiếu Phan Thị Thanh Thảo Nguyễn Đức Trí 1 BIG DATA & NoSQL Topic 1:
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
COMP 430 Intro. to Database Systems MongoDB. What is MongoDB? “Humongous” DB NoSQL, no schemas DB Lots of similarities with SQL RDBMs, but with more flexibility.
Dive into NoSQL with Azure Niels Naglé Hylke Peek.
NoSql An alternative option in the DevEvenings ORM Smackdown Tarn Barford
CS422 Principles of Database Systems Introduction to NoSQL Chengyu Sun California State University, Los Angeles.
Introduction to Mongo DB(NO SQL data Base)
CS 405G: Introduction to Database Systems
NO SQL for SQL DBA Dilip Nayak & Dan Hess.
DBSI Teaser Presentation
and Big Data Storage Systems
NoSQL Databases NoSQL Concepts Databases Telerik Software Academy
Practical Database Design and Tuning
MongoDB Er. Shiva K. Shrestha ME Computer, NCIT
Dineesha Suraweera.
MongoDB for Developers
MongoDB for SQL Developers
1 Demand of your DB is changing Presented By: Ashwani Kumar
MongoDB for the SQL DBA.
Practical Database Design and Tuning
NoSQL Databases Antonino Virgillito.
CSE 482 Lecture 5: NoSQL.
Contents Preface I Introduction Lesson Objectives I-2
CS5220 Advanced Topics in Web Programming Introduction to MongoDB
Database Management Systems
Presentation transcript:

Introduction to MongoDB 10s Nguyen Vo – A02213331

Content Overview SQL vs MongoDB MongoDB Data Model MongoDB Queries Installation Questions 30s

Overview In one day: 24 million transactions processed by Walmart 100 TB of data uploaded to Facebook 175 million tweets on Twitter ………. 30s How to store, query and process these data efficiently?

NoSQL is a good solution to deal with these problems. Overview The problems with Relational Database: Overhead for complex select, update, delete operations Select: Joining too many tables to create a huge size table. Update: Each update affects many other tables. Delete: Must guarantee the consistency of data. Not well-supported the mix of unstructured data. Not well-scaling with very large size of data. https://infocus.emc.com/april_reeve/big-data-and-nosql-the-problem-with-relational-databases/ 1min NoSQL is a good solution to deal with these problems.

Overview What is NoSQL: NoSQL = Non SQL or Not only SQL Wikipedia’s definition: A NoSQL database provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases.

Overview – NoSQL Family Data stored in 4 types: Document Graph Key-value Wide-column https://www.mongodb.com/nosql-explained http://aryannava.com/2014/04/06/nosql-databases-family/

Overview – MongoDB MongoDB is: An open source and document-oriented database. Data is stored in JSON-like documents. Designed with both scalability and developer agility. Dynamic schemas. What is dynamic schemas?

SQL vs MongoDB SQL Terms/Concepts MongoDB Terms/Concepts database table collection row document column field index table joins (e.g. select queries) embedded documents and linking Primary keys _id field is always the primary key Aggregation (e.g. group by) aggregation pipeline What is the index in MongoDB Embedded documents and linking?? Aggregation pipeline?? http://docs.mongodb.org/manual/core/data-model-design/

MongoDB Data Model A collection includes documents. The schema is very flexible. Documents in each collection can have different structures.

MongoDB Data Model Structure of a JSON-document: The value of field: Native data types Arrays Other documents The schema is very flexible. Documents in each collection can have different structures.

MongoDB Data Model Embedded documents: The primary key With embedded documents, we do not need complicated join table. Why objectId1 – a hex string

MongoDB Data Model Reference documents or linking documents With embedded documents, we do not need complicated join table. Why objectId1 – a hex string

MongoDB Queries: CRUD (Create – Update – Delete) Create a database: use database_name Create a collection: db.createCollection(name, options)  options: specify the number of documents in a collection etc. Insert a document: db.<collection_name>.insert({“name”: “nguyen”, “age”: 24, “gender”: “male”}) Query [e.g. select all] db.<collection_name>.find().pretty() Query with conditions: db.<collection_name>.find( { “gender”: “female”, “age”: {$lte:20} }).pretty()

MongoDB Queries: CRUD (Create – Update – Delete) db.<collection_name>.update(<select_criteria>,<updated_data>) db.students.update({‘name':‘nguyen'}, { $set:{‘age': 20 } } ) Replace the existing document with new one: save method: db.students.save({_id:ObjectId(‘string_id’), “name”: “ben”, “age”: 23, “gender”: “male”}

MongoDB Queries: CRUD (Create – Update – Delete) Drop a database Show database: show dbs Use a database: use <db_name> Drop it: db.dropDatabase() Drop a collection: db.<collection_name>.drop() Delete a document: db.<collection_name>.remove({“gender”: “male” })

Installation Download and install suitable package for each platform [Windows, Linux, Mac OSX, Solaris] Create a folder e.g. C:\mongodb Go to bin of installation folder. Type following command: mongod --dbpath=C:/mongodb Run another command: mongo.exe The mongodb server is running.

Questions???