javascript for your data

Slides:



Advertisements
Similar presentations
NoSQL and MongoDB Partner Technical Solutions, MongoDB Inc. Sandeep Parikh #mongodb.
Advertisements

An introduction to MongoDB Rácz Gábor ELTE IK, febr. 10.
Building applications with MongoDB – An introduction Roger
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.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation MongoDB Read Lecturer.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation MongoDB Write Lecturer.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation MongoDB Data Modeling.
AN INTRODUCTION TO NOSQL DATABASES Karol Rástočný, Eduard Kuric.
MONGODB NOSQL SERIES Karol Rástočný 1. Prominent Users 2  AppScale, bit.ly, Business Insider, CERN LHC, craigslist, diaspora, Disney Interactive Media.
MongoDB An introduction. What is MongoDB? The name Mongo is derived from Humongous To say that MongoDB can handle a humongous amount of data Document.
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.
Methodological Foundations of Biomedical Informatics (BMSC-GA 4449) Himanshu Grover.
WEEK 1, DAY 2 STEVE CHENOWETH CSSE DEPT CSSE 533 –INTRO TO MONGODB.
MongoDB is a database management system designed for web applications and internet infrastructure. The data model and persistence strategies are built.
Modeling MongoDB with Relational Model Proposed by Christopher Polanco.
MongoDB First Light. Mongo DB Basics Mongo is a document based NoSQL. –A document is just a JSON object. –A collection is just a (large) set of documents.
Mongodb.org A. Im, G. Cai, H. Tunc, J. Stevens, Y. Barve, S. Hei Vanderbilt University.
Some notes on NoSQL, in particular MongoDB Bettina Berendt (with thanks to Matthijs van Leeuwen for some of the slides) 8 December 2015.
Open source, high performance, schema-free document-oriented database
Introduction to MongoDB. Database compared.
Exam Friday April 11. MongoDB Specifics Find() to Query db.collection.find(, ) db.collection.find{{select conditions}, {project columns}) Selection conditions:
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.
Data Management in the Cloud
Introduction to Mongo DB(NO SQL data Base)
Non-traditional Databases List Of Questions
CSE-291 (Distributed Systems) Winter 2017 Gregory Kesden
Mongo Database (Intermediate)
NO SQL for SQL DBA Dilip Nayak & Dan Hess.
DBSI Teaser Presentation
and Big Data Storage Systems
CPT-S 415 Big Data Yinghui Wu EME B45 1.
CC Procesamiento Masivo de Datos Otoño 2017 Lecture 10: NoSQL II
MongoDB Er. Shiva K. Shrestha ME Computer, NCIT
WinCC OA NextGen Archiver: OSS Database selection process Dipl. -Ing
CMPE 280 Web UI Design and Development October 17 Class Meeting
Basic Criteria in Queries
Dineesha Suraweera.
Christian Stark and Odbayar Badamjav
MongoDB CRUD Operations
Twitter & NoSQL Integration with MVC4 Web API
Aggregation Aggregations operations process data records and return computed results. Aggregation operations group values from multiple documents together,
NOSQL databases and Big Data Storage Systems
NoSQL CPSC 4670/5670.
CSE-291 (Cloud Computing) Fall 2016 Gregory Kesden
MongoDB for Developers
Introduction to Relational Databases
Russ Thomas Director, Information Services, TSYS
Structured Query Language
Non-traditional Databases
Advanced Topics in Concurrency and Reactive Programming: MongoDB, Mongoose Majeed Kassis.
Write Operations.
MongoDB Aggregations.
MongoDB Read/Write.
MongoDB Read/Write.
MongoDB Read/Write.
CC Procesamiento Masivo de Datos Otoño Lecture 9 NoSQL: MongoDB
CS5220 Advanced Topics in Web Programming Introduction to MongoDB
Building applications with MongoDB – An introduction
MongoDB Read.
INTRODUCTION TO MONgodb
MongoDB Aggregations.
CMPE 280 Web UI Design and Development March 14 Class Meeting
MongoDB Read Operations
Chengyu Sun California State University, Los Angeles
Server & Tools Business
SQL AUTO INCREMENT Field
Presentation transcript:

javascript for your data

MongoDB Bridge the gap between key/val stores and traditional RDBMS

MongoDB Bridge the gap between key/val stores and traditional RDBMS

MongoDB the gap table

MongoDB the gap table → collection

MongoDB collection

MongoDB collection BSON document

MongoDB collection BSON document a set of fields

MongoDB collection BSON document a set of fields key-value pair

MongoDB collection BSON document a set of fields key-value pair key: a name (string)

MongoDB collection BSON document a set of fields key-value pair key: a name (string) val: any basic type string, int, float, date, binary, array, document, ...

MongoDB collection of BSON documents queryable

MongoDB the gap table → collection SQL

MongoDB the gap table → collection SQL → query objects

MongoDB Query object

MongoDB Query object JSON-like query representation

MongoDB Query object JSON-like query representation db.users.find({ 'lastname': 'Heckmann' });

MongoDB Query object { 'lastname': 'Heckmann' }

MongoDB Query object { 'lastname': 'Heckmann' } could even be an array

MongoDB Query object { 'lastname': 'Heckmann' , 'body.odor': 'nasty' , 'age': { $gt: 32 } , ... }

MongoDB Query object { 'lastname': 'Heckmann' , 'body.odor': 'nasty' , 'age': { $gt: 32 } , ... }

MongoDB Query object { 'lastname': 'Heckmann' , 'body.odor': 'nasty' , 'age': { $gt: 32 } , ... }

MongoDB Query object { 'lastname': 'Heckmann' , 'body.odor': 'nasty' , 'age': { $gt: 32, $lt: 65 } , ... }

Query object MongoDB $gt $lt $ne $in $nin $all $not $size $exists … more

MongoDB Query object RegExp too!

MongoDB Query object RegExp too db.users.find({ 'lastname': /eckmann$/i });

MongoDB Query object Subsets db.users.find({ 'lastname': /eckmann$/i }, { 'age': true });

MongoDB Query object db.users .find({ 'lastname': /eckmann$/i }) .sort({ 'lastname': -1 }) .limit(10) .skip(10*(pageNumber - 1)) ;

MongoDB Query object db.users .find({ 'lastname': /eckmann$/i }) .sort({ 'lastname': -1 }) ← descending .limit(10) .skip(10*(pageNumber - 1)) ;

MongoDB Query object db.users .find({ 'lastname': /eckmann$/i }) .count() ;

MongoDB no JOINs

MongoDB no JOINs less normalization

MongoDB no JOINs less normalization embedded documents

MongoDB embedded documents

embedded documents MongoDB { name: 'aaron' , scores: [ { total: 93, class: ObjectID } , { total: 46, class: ObjectID } , { total: 20, class: ObjectID } ] }

embedded documents MongoDB { name: 'aaron' , scores: [ { total: 93, class: ObjectID } , { total: 46, class: ObjectID } , { total: 20, class: ObjectID } ] } think foreign keys

embedded documents MongoDB { name: 'aaron' , scores: [ { total: 93, class: ObjectID } , { total: 46, class: ObjectID } , { total: 20, class: ObjectID } ] } { _id: ObjectID , name: 'how to be a good neighbor' , teacher: 'mr rogers' }

MongoDB ObjectID unique identifier of a document each document has one auto inserted if missing

Insertion and Updation MongoDB Insertion and Updation

MongoDB

cheesy

Atomic Operations

MongoDB $set $unset $inc $push $pushAll $pop $pull $pullAll $addToSet Atomic Ops $set $unset $inc $push $pushAll $pop $pull $pullAll $addToSet $rename

MongoDB Indexing

MongoDB Indexing any property into embedded documents into arrays

MongoDB Indexing db.users.ensureIndex({ lastname: 1 }) db.users.ensureIndex({ 'body.odor': 1 }) db.users.ensureIndex({ 'body.odor': 1, age: 1 })

MongoDB HTTP Interface

MongoDB HTTP Interface http://localhost:28017/ http://localhost:28017/database/collection/?limit=5 http://localhost:28017/database/collection/?filter_key=value

MongoDB Document oriented Schema-less Rich queries Full index support Atomic operations MapReduce Auto-sharding / replication / GridFS

MongoDB Mongoose https://github.com/learnboost/mongoose/tree/1.0

Thank You http://www.mongodb.org https://github.com/mongodb https://github.com/learnboost/mongoose https://github.com/christkv/node-mongodb-native http://www.mongodb.org/display/DOCS/Production+Dep loyments https://github.com/aheckmann http://twitter.com/#!/aaronheckmann