SlideShare une entreprise Scribd logo
1  sur  20
Télécharger pour lire hors ligne
An introduction to
Jean-Luc David

Head of Technology

jldavid@gmail.com

Twitter: @jldavid
Today
09:00-10:00 AM - Arrivals and Light Breakfast
10:00-11:00 AM - Introduction to HTTP & Node.js
11:00-12:00 AM - Introduction to MongoDB
12:00-01:00 PM - Building a Simple API
01:00-02:00 PM - Light Lunch
02:00-03:00 PM - Introduction to Swift
03:00-04:00 PM - Building a Basic Store App
04:00-05:00 PM - Adding Controls, Maps & Networking
05:00-05:30 PM - Q&A and Departure
About Us
Docler Media is a well-funded, progressive tech startup in
Los Angeles. A part of the massive and massively
successful Docler Holding group of international
companies, we are centered around the idea of creating
unique, exciting and fun products and services.
Taco! Night
Agenda
• Learn the history of MongoDB
• Install Homebrew
• Install MongoDB
• MongoDB using a shell
• Using mLab
MongoDB vs SQL
• Philosophy - NoSQL vs Relational
• Data - JSON vs Binary
• Hosting - In-Memory vs on disk
• Format - Documents vs Records
• Strengths - Built for reads, not for writes
• Relationships - Joins vs MapReduce
• Performance - MongoDB vs SQL
• Schema - Strict vs Schemaless
• Queries - SQL vs BSON
History of MongoDB
• MongoDB (from humongous) is a cross-
platform document-oriented database
• 2007 - 10gen began developing MongoDB
as a component of PaaS.
• 2009 - the company shifted to an open
source development model, offering
commercial support & other services.
• 2013 - 10gen changes its name to
MongoDB Inc.
MongoDB Facts
• Component of the MEAN stack
• Database = Databases
• Table = Collection
• Record = Document
• BSON Document has a limit of 16MB
Performance Benchmarks
Thoughts About Security
Companies Using MongoDB
Installing Homebrew
xcode-select --install



ruby -e "$(curl -fsSL https:// 

raw.githubusercontent.com/Homebrew/

install/master/install)"



brew update
Installing MongoDB


brew install mongodb


Installing MongoDB Manually
curl -O https://fastdl.mongodb.org/

osx/mongodb-osx-x86_64-3.2.4.tgz



tar -zxvf mongodb-osx-x86_64-3.2.4.tgz



mkdir -p mongodb


cp -R -n mongodb-osx-x86_64-3.2.4/ 

mongodb


export PATH=<mongodb-install-directory>

/bin:$PATH
Starting MongoDB Locally
# if you get /data/db missing error

sudo mkdir -p /data/db/
sudo chown `id -u` /data/db
# in terminal window, start the daemon
mongod
# in another terminal window, start mongo
mongo
CREATE & READ Documents
db
use addressbook

show collections



db.customers.save({"name":"JL",

"lastname":"David"})



db.customers.find()

db.getCollectionNames()



show dbs

db.help()
UPDATE Document
db.customers.update({"name":"JL"},{$set:
{"name":"Jean-Luc"}})

db.customers.insert({"name":"Kolos",

"lastname":"Kaszaly"})
DELETE Document & Collection
db.customers.remove({“_id":"57090110d90540e8
0621a262"})
db.customers.drop()

db.dropDatabase()

Using mLab
http://www.mlab.com
Agenda
• Learn the history of MongoDB
• Install Homebrew
• Install MongoDB
• MongoDB command line
• Using mLab
• 10 Min Break

Contenu connexe

Tendances

Ускоряем загрузку картинок вебсокетами
Ускоряем загрузку картинок вебсокетамиУскоряем загрузку картинок вебсокетами
Ускоряем загрузку картинок вебсокетами
2ГИС Технологии
 
Mongo db first steps with csharp
Mongo db first steps with csharpMongo db first steps with csharp
Mongo db first steps with csharp
Serdar Buyuktemiz
 
Roshan Bhattarai: Scaling WordPress for high traffic sites
Roshan Bhattarai: Scaling WordPress for high traffic sitesRoshan Bhattarai: Scaling WordPress for high traffic sites
Roshan Bhattarai: Scaling WordPress for high traffic sites
wpnepal
 
Scaling wordpress for high traffic
Scaling wordpress for high trafficScaling wordpress for high traffic
Scaling wordpress for high traffic
Roshan Bhattarai
 
WordPress: Performance, Optimization & Scaling
WordPress: Performance, Optimization & ScalingWordPress: Performance, Optimization & Scaling
WordPress: Performance, Optimization & Scaling
Pete Mall
 
微博cache设计谈
微博cache设计谈微博cache设计谈
微博cache设计谈
Tim Y
 
Mini-review + cheat sheet: ZFS on FUSE
Mini-review + cheat sheet: ZFS on FUSEMini-review + cheat sheet: ZFS on FUSE
Mini-review + cheat sheet: ZFS on FUSE
Asociatia ProLinux
 

Tendances (20)

Sequelize js
Sequelize jsSequelize js
Sequelize js
 
Getting Started with MongoDB and Node.js
Getting Started with MongoDB and Node.jsGetting Started with MongoDB and Node.js
Getting Started with MongoDB and Node.js
 
Ускоряем загрузку картинок вебсокетами
Ускоряем загрузку картинок вебсокетамиУскоряем загрузку картинок вебсокетами
Ускоряем загрузку картинок вебсокетами
 
Scaling MongoDB in the cloud with Microsoft Azure
Scaling MongoDB in the cloud with Microsoft AzureScaling MongoDB in the cloud with Microsoft Azure
Scaling MongoDB in the cloud with Microsoft Azure
 
Mongo db first steps with csharp
Mongo db first steps with csharpMongo db first steps with csharp
Mongo db first steps with csharp
 
Big Data on DC/OS
Big Data on DC/OSBig Data on DC/OS
Big Data on DC/OS
 
I Just Want to Run My Code: Waypoint, Nomad, and Other Things
I Just Want to Run My Code: Waypoint, Nomad, and Other ThingsI Just Want to Run My Code: Waypoint, Nomad, and Other Things
I Just Want to Run My Code: Waypoint, Nomad, and Other Things
 
How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DBHow to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
 
Second Skin: Real-Time Retheming a Legacy Web Application with Diazo in the C...
Second Skin: Real-Time Retheming a Legacy Web Application with Diazo in the C...Second Skin: Real-Time Retheming a Legacy Web Application with Diazo in the C...
Second Skin: Real-Time Retheming a Legacy Web Application with Diazo in the C...
 
Roshan Bhattarai: Scaling WordPress for high traffic sites
Roshan Bhattarai: Scaling WordPress for high traffic sitesRoshan Bhattarai: Scaling WordPress for high traffic sites
Roshan Bhattarai: Scaling WordPress for high traffic sites
 
Scaling wordpress for high traffic
Scaling wordpress for high trafficScaling wordpress for high traffic
Scaling wordpress for high traffic
 
Achieving the ultimate performance with KVM
Achieving the ultimate performance with KVM Achieving the ultimate performance with KVM
Achieving the ultimate performance with KVM
 
Scaling Redis: Dmitry Polyakovsky
Scaling Redis: Dmitry PolyakovskyScaling Redis: Dmitry Polyakovsky
Scaling Redis: Dmitry Polyakovsky
 
Microsoft Azure Media Services
Microsoft Azure Media ServicesMicrosoft Azure Media Services
Microsoft Azure Media Services
 
Introduction to new high performance storage engines in mongodb 3.0
Introduction to new high performance storage engines in mongodb 3.0Introduction to new high performance storage engines in mongodb 3.0
Introduction to new high performance storage engines in mongodb 3.0
 
WordPress: Performance, Optimization & Scaling
WordPress: Performance, Optimization & ScalingWordPress: Performance, Optimization & Scaling
WordPress: Performance, Optimization & Scaling
 
微博cache设计谈
微博cache设计谈微博cache设计谈
微博cache设计谈
 
Mini-review + cheat sheet: ZFS on FUSE
Mini-review + cheat sheet: ZFS on FUSEMini-review + cheat sheet: ZFS on FUSE
Mini-review + cheat sheet: ZFS on FUSE
 
Share point 2013 on azure
Share point 2013 on azureShare point 2013 on azure
Share point 2013 on azure
 
Getting serious \w private kubernetes clusters &amp; cloud native storage
Getting serious \w private kubernetes clusters &amp; cloud native storageGetting serious \w private kubernetes clusters &amp; cloud native storage
Getting serious \w private kubernetes clusters &amp; cloud native storage
 

En vedette

MongoDB Hacks of Frustration
MongoDB Hacks of FrustrationMongoDB Hacks of Frustration
MongoDB Hacks of Frustration
MongoDB
 
Concurrency Patterns with MongoDB
Concurrency Patterns with MongoDBConcurrency Patterns with MongoDB
Concurrency Patterns with MongoDB
Yann Cluchey
 

En vedette (11)

Introduction to mongoDB
Introduction to mongoDBIntroduction to mongoDB
Introduction to mongoDB
 
Get your Spatial on with MongoDB in the Cloud
Get your Spatial on with MongoDB in the CloudGet your Spatial on with MongoDB in the Cloud
Get your Spatial on with MongoDB in the Cloud
 
MongoDB Hacks of Frustration
MongoDB Hacks of FrustrationMongoDB Hacks of Frustration
MongoDB Hacks of Frustration
 
Webinar: MongoDB Persistence with Java and Morphia
Webinar: MongoDB Persistence with Java and MorphiaWebinar: MongoDB Persistence with Java and Morphia
Webinar: MongoDB Persistence with Java and Morphia
 
Partner Recruitment Webinar: "Join the Most Productive Ecosystem in Big Data ...
Partner Recruitment Webinar: "Join the Most Productive Ecosystem in Big Data ...Partner Recruitment Webinar: "Join the Most Productive Ecosystem in Big Data ...
Partner Recruitment Webinar: "Join the Most Productive Ecosystem in Big Data ...
 
Agile Schema Design: An introduction to MongoDB
Agile Schema Design: An introduction to MongoDBAgile Schema Design: An introduction to MongoDB
Agile Schema Design: An introduction to MongoDB
 
Concurrency Patterns with MongoDB
Concurrency Patterns with MongoDBConcurrency Patterns with MongoDB
Concurrency Patterns with MongoDB
 
JSON-LD and MongoDB
JSON-LD and MongoDBJSON-LD and MongoDB
JSON-LD and MongoDB
 
An introduction to MongoDB
An introduction to MongoDBAn introduction to MongoDB
An introduction to MongoDB
 
Seminario Web MongoDB-Paradigma: Cree aplicaciones más escalables utilizando ...
Seminario Web MongoDB-Paradigma: Cree aplicaciones más escalables utilizando ...Seminario Web MongoDB-Paradigma: Cree aplicaciones más escalables utilizando ...
Seminario Web MongoDB-Paradigma: Cree aplicaciones más escalables utilizando ...
 
Webinar: 10-Step Guide to Creating a Single View of your Business
Webinar: 10-Step Guide to Creating a Single View of your BusinessWebinar: 10-Step Guide to Creating a Single View of your Business
Webinar: 10-Step Guide to Creating a Single View of your Business
 

Similaire à Introduction to MongoDB

Accra MongoDB User Group
Accra MongoDB User GroupAccra MongoDB User Group
Accra MongoDB User Group
MongoDB
 
Welcome to MongoDB Tokyo 2012
Welcome to MongoDB Tokyo 2012Welcome to MongoDB Tokyo 2012
Welcome to MongoDB Tokyo 2012
MongoDB
 
MongoDB Tick Data Presentation
MongoDB Tick Data PresentationMongoDB Tick Data Presentation
MongoDB Tick Data Presentation
MongoDB
 

Similaire à Introduction to MongoDB (20)

Mongo db operations_v2
Mongo db operations_v2Mongo db operations_v2
Mongo db operations_v2
 
NoSQL and MongoDB Introdction
NoSQL and MongoDB IntrodctionNoSQL and MongoDB Introdction
NoSQL and MongoDB Introdction
 
Big Data, NoSQL with MongoDB and Cassasdra
Big Data, NoSQL with MongoDB and CassasdraBig Data, NoSQL with MongoDB and Cassasdra
Big Data, NoSQL with MongoDB and Cassasdra
 
Accra MongoDB User Group
Accra MongoDB User GroupAccra MongoDB User Group
Accra MongoDB User Group
 
MongoDB presentation
MongoDB presentationMongoDB presentation
MongoDB presentation
 
Welcome to MongoDB Tokyo 2012
Welcome to MongoDB Tokyo 2012Welcome to MongoDB Tokyo 2012
Welcome to MongoDB Tokyo 2012
 
MongoDB Tick Data Presentation
MongoDB Tick Data PresentationMongoDB Tick Data Presentation
MongoDB Tick Data Presentation
 
10 mongo db
10 mongo db10 mongo db
10 mongo db
 
NoSQL on ACID - Meet Unstructured Postgres
NoSQL on ACID - Meet Unstructured PostgresNoSQL on ACID - Meet Unstructured Postgres
NoSQL on ACID - Meet Unstructured Postgres
 
Using MongoDB For BigData in 20 Minutes
Using MongoDB For BigData in 20 MinutesUsing MongoDB For BigData in 20 Minutes
Using MongoDB For BigData in 20 Minutes
 
Augmenting Mongo DB with Treasure Data
Augmenting Mongo DB with Treasure DataAugmenting Mongo DB with Treasure Data
Augmenting Mongo DB with Treasure Data
 
Augmenting Mongo DB with treasure data
Augmenting Mongo DB with treasure dataAugmenting Mongo DB with treasure data
Augmenting Mongo DB with treasure data
 
Mongo DB at Community Engine
Mongo DB at Community EngineMongo DB at Community Engine
Mongo DB at Community Engine
 
MongoDB at community engine
MongoDB at community engineMongoDB at community engine
MongoDB at community engine
 
Webinar: When to Use MongoDB
Webinar: When to Use MongoDBWebinar: When to Use MongoDB
Webinar: When to Use MongoDB
 
What is MongoDB? Introduction and features
What is MongoDB? Introduction and featuresWhat is MongoDB? Introduction and features
What is MongoDB? Introduction and features
 
Building an E-commerce website in MEAN stack
Building an E-commerce website in MEAN stackBuilding an E-commerce website in MEAN stack
Building an E-commerce website in MEAN stack
 
Jumpstart: Your Introduction To MongoDB
Jumpstart: Your Introduction To MongoDBJumpstart: Your Introduction To MongoDB
Jumpstart: Your Introduction To MongoDB
 
SQL vs NoSQL, an experiment with MongoDB
SQL vs NoSQL, an experiment with MongoDBSQL vs NoSQL, an experiment with MongoDB
SQL vs NoSQL, an experiment with MongoDB
 
Mongodb open data day 2014
Mongodb open data day 2014Mongodb open data day 2014
Mongodb open data day 2014
 

Plus de Jean-Luc David

Venture For Canada - Growing Your Startup
Venture For Canada - Growing Your StartupVenture For Canada - Growing Your Startup
Venture For Canada - Growing Your Startup
Jean-Luc David
 
Ryerson DMZ iOS Development Workshop
Ryerson DMZ iOS Development WorkshopRyerson DMZ iOS Development Workshop
Ryerson DMZ iOS Development Workshop
Jean-Luc David
 
iOS Development Workshop
iOS Development WorkshopiOS Development Workshop
iOS Development Workshop
Jean-Luc David
 
Introduction to iOS development
Introduction to iOS developmentIntroduction to iOS development
Introduction to iOS development
Jean-Luc David
 

Plus de Jean-Luc David (20)

Implementing Biometric Authentication & Features in iOS Apps
Implementing Biometric Authentication & Features in iOS AppsImplementing Biometric Authentication & Features in iOS Apps
Implementing Biometric Authentication & Features in iOS Apps
 
Add Machine Learning to your iOS 11 App Using Core ML
Add Machine Learning to your iOS 11 App Using Core MLAdd Machine Learning to your iOS 11 App Using Core ML
Add Machine Learning to your iOS 11 App Using Core ML
 
Mobile Portfolio
Mobile PortfolioMobile Portfolio
Mobile Portfolio
 
Mike Krieger - A Brief, Rapid History of Scaling Instagram (with a tiny team)
Mike Krieger - A Brief, Rapid History of Scaling Instagram (with a tiny team)Mike Krieger - A Brief, Rapid History of Scaling Instagram (with a tiny team)
Mike Krieger - A Brief, Rapid History of Scaling Instagram (with a tiny team)
 
Venture For Canada - Growing Your Startup
Venture For Canada - Growing Your StartupVenture For Canada - Growing Your Startup
Venture For Canada - Growing Your Startup
 
Venture For Canada - Growth Marketing
Venture For Canada - Growth MarketingVenture For Canada - Growth Marketing
Venture For Canada - Growth Marketing
 
Venture For Canada - Growth Hacking
Venture For Canada - Growth HackingVenture For Canada - Growth Hacking
Venture For Canada - Growth Hacking
 
Startup Product Management - Analytics
Startup Product Management - AnalyticsStartup Product Management - Analytics
Startup Product Management - Analytics
 
Startup Product Management - Execution
Startup Product Management - ExecutionStartup Product Management - Execution
Startup Product Management - Execution
 
Startup Product Management - Planning
Startup Product Management - PlanningStartup Product Management - Planning
Startup Product Management - Planning
 
RightCycle
RightCycleRightCycle
RightCycle
 
Building WatchKit Applications
Building WatchKit ApplicationsBuilding WatchKit Applications
Building WatchKit Applications
 
Confoo Developing for Wearables
Confoo   Developing for WearablesConfoo   Developing for Wearables
Confoo Developing for Wearables
 
Innovation & Business Acquisitions of Smart Security
Innovation & Business Acquisitions of Smart SecurityInnovation & Business Acquisitions of Smart Security
Innovation & Business Acquisitions of Smart Security
 
Developing For Wearables - Lessons Learned & Best Practices
Developing For Wearables - Lessons Learned & Best PracticesDeveloping For Wearables - Lessons Learned & Best Practices
Developing For Wearables - Lessons Learned & Best Practices
 
Developing for Wearables
Developing for WearablesDeveloping for Wearables
Developing for Wearables
 
Ryerson DMZ iOS Development Workshop
Ryerson DMZ iOS Development WorkshopRyerson DMZ iOS Development Workshop
Ryerson DMZ iOS Development Workshop
 
Pigeon Presentation at We Are Wearables Toronto
Pigeon Presentation at We Are Wearables TorontoPigeon Presentation at We Are Wearables Toronto
Pigeon Presentation at We Are Wearables Toronto
 
iOS Development Workshop
iOS Development WorkshopiOS Development Workshop
iOS Development Workshop
 
Introduction to iOS development
Introduction to iOS developmentIntroduction to iOS development
Introduction to iOS development
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

Introduction to MongoDB

  • 1. An introduction to Jean-Luc David
 Head of Technology
 jldavid@gmail.com
 Twitter: @jldavid
  • 2. Today 09:00-10:00 AM - Arrivals and Light Breakfast 10:00-11:00 AM - Introduction to HTTP & Node.js 11:00-12:00 AM - Introduction to MongoDB 12:00-01:00 PM - Building a Simple API 01:00-02:00 PM - Light Lunch 02:00-03:00 PM - Introduction to Swift 03:00-04:00 PM - Building a Basic Store App 04:00-05:00 PM - Adding Controls, Maps & Networking 05:00-05:30 PM - Q&A and Departure
  • 3. About Us Docler Media is a well-funded, progressive tech startup in Los Angeles. A part of the massive and massively successful Docler Holding group of international companies, we are centered around the idea of creating unique, exciting and fun products and services.
  • 5. Agenda • Learn the history of MongoDB • Install Homebrew • Install MongoDB • MongoDB using a shell • Using mLab
  • 6. MongoDB vs SQL • Philosophy - NoSQL vs Relational • Data - JSON vs Binary • Hosting - In-Memory vs on disk • Format - Documents vs Records • Strengths - Built for reads, not for writes • Relationships - Joins vs MapReduce • Performance - MongoDB vs SQL • Schema - Strict vs Schemaless • Queries - SQL vs BSON
  • 7. History of MongoDB • MongoDB (from humongous) is a cross- platform document-oriented database • 2007 - 10gen began developing MongoDB as a component of PaaS. • 2009 - the company shifted to an open source development model, offering commercial support & other services. • 2013 - 10gen changes its name to MongoDB Inc.
  • 8. MongoDB Facts • Component of the MEAN stack • Database = Databases • Table = Collection • Record = Document • BSON Document has a limit of 16MB
  • 12. Installing Homebrew xcode-select --install
 
 ruby -e "$(curl -fsSL https:// 
 raw.githubusercontent.com/Homebrew/
 install/master/install)"
 
 brew update
  • 14. Installing MongoDB Manually curl -O https://fastdl.mongodb.org/
 osx/mongodb-osx-x86_64-3.2.4.tgz
 
 tar -zxvf mongodb-osx-x86_64-3.2.4.tgz
 
 mkdir -p mongodb 
 cp -R -n mongodb-osx-x86_64-3.2.4/ 
 mongodb 
 export PATH=<mongodb-install-directory>
 /bin:$PATH
  • 15. Starting MongoDB Locally # if you get /data/db missing error
 sudo mkdir -p /data/db/ sudo chown `id -u` /data/db # in terminal window, start the daemon mongod # in another terminal window, start mongo mongo
  • 16. CREATE & READ Documents db use addressbook
 show collections
 
 db.customers.save({"name":"JL",
 "lastname":"David"})
 
 db.customers.find()
 db.getCollectionNames()
 
 show dbs
 db.help()
  • 18. DELETE Document & Collection db.customers.remove({“_id":"57090110d90540e8 0621a262"}) db.customers.drop()
 db.dropDatabase()

  • 20. Agenda • Learn the history of MongoDB • Install Homebrew • Install MongoDB • MongoDB command line • Using mLab • 10 Min Break