MongoDB for the SQL DBA.

Slides:



Advertisements
Similar presentations
1.866.iQmetrix MongoDB on Azure Agenda Me / iQmetrix Architecture NoSQL databases MongoDB 10gen Running MongoDB in Azure History, Issues.
Advertisements

Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
Relational Database Alternatives NoSQL. Choosing A Data Model Relational database underpin legacy applications and meet business needs However, companies.
BUSINESS DRIVEN TECHNOLOGY
SQL Server 2008 Basmah AlQadheeb-213 MIS What is a Database ? A database is a collection of Data that is organized so that it can easily be accessed,
What is MongoDB? Developed by 10gen It is a NoSQL database A document-oriented database It uses BSON format.
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.
How a little code can help with support.. Chris Barba – Developer at Cimarex Energy Blog:
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.
PowerPivot Hope Foley Perpetual Technologies. Who Am I?  Microsoft Team Lead  SQL Server DBA  (MCITP: Database Administration in 2005 and 2008)  In.
Database Design – Lecture 16
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
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.
Database A database is a collection of data organized to meet users’ needs. In this section: Database Structure Database Tools Industrial Databases Concepts.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation MongoDB Architecture.
This application does require access to the BW (Baan Windows) client and authorization to the OLE Daemon Introducing … XQL - Excel Query Language How about.
Database Concepts Track 3: Managing Information using Database.
Introduction to MongoDB
Master Data Management & Microsoft Master Data Services Presented By: Jeff Prom Data Architect MCTS - Business Intelligence (2008), Admin (2008), Developer.
03 | Express and Databases
Backing Up and Restoring Databases by Using the SQL Server 2000.
Introduction to MongoDB. Database compared.
NoSQL databases A brief introduction NoSQL databases1.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
SQL for Super Users Presented by: Adam Jacobson Red Three Consulting, Inc.
Understanding Core Database Concepts Lesson 1. Objectives.
Introduction to Mongo DB(NO SQL data Base)
DBMS Programs MS SQL Server & MySQL
Fundamental of Databases
SharePoint 101 – An Overview of SharePoint 2010, 2013 and Office 365
NO SQL for SQL DBA Dilip Nayak & Dan Hess.
Data Platform and Analytics Foundational Training
Make Power BI Your Own with the Power BI APIs
Web Application.
Lead SQL BankofAmerica Blog: SQLHarry.com
MongoDB Er. Shiva K. Shrestha ME Computer, NCIT
WinCC OA NextGen Archiver: OSS Database selection process Dipl. -Ing
of our Partners and Customers
Ops Manager API, Puppet and OpenStack – Fully automated orchestration from scratch! MongoDB World 2016.
Created by Kamila zhakupova
Dineesha Suraweera.
MongoDB Connection in Husky
Twitter & NoSQL Integration with MVC4 Web API
PHP / MySQL Introduction
NOSQL databases and Big Data Storage Systems
Alteryx User Group August 2016.
MongoDB for Developers
MongoDB for SQL Developers
Marcos Freccia Stop everything! Top T-SQL tricks to a developer
1 Demand of your DB is changing Presented By: Ashwani Kumar
Use PowerShell & dbatools to Manage your SQL Server Environment
MIT GSL 2018 week 3 | thursday Meteor and App Ideation.
Make Power BI Your Own with the Power BI APIs
Cloud computing mechanisms
8 6 MySQL Special Topics A Guide to MySQL.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Database hidden disasters…
relational thoughts on NoSql
CS5220 Advanced Topics in Web Programming Introduction to MongoDB
Building applications with MongoDB – An introduction
Use PowerShell & dbatools to Manage your SQL Server Environment
Understanding Core Database Concepts
NoSQL databases An introduction and comparison between Mongodb and Mysql document store.
Server & Tools Business
Presentation transcript:

MongoDB for the SQL DBA

Ever heard of MongoDB? Who works with Mongo? Who has Heard of Mongo? Who is MongoCurious? Anyone else is in the wrong room

Where does the name MongoDB come from? HU – MONGO - US represent the idea of supporting large amounts of data

Andrew Saalmann Operations DBA w\ local software company Worked with SQL Server versions 7 – 2014 (2016 soon) Worked in small (<10), large (>5000) , financial, manufacturing, software dev and e-commerce companies Work with MongoDB v 3.4 B.S. in Nuclear Medicine Technology Email: MetalDBA@gmail.com Twitter: @Saalmann

Agenda What is MongoDB Why use MongoDB Why not use MongoDB Installation of MongoDB Creating database, collections and documents Queries in MongoDB Backups & Restores Robomongo

What does MongoDB Looks like?

How does a pair of SQL DBAs start supporting MongoDB? We are not experts

What is MongoDB? MongoDB is an open source database that uses a document-oriented data model Classified as a NoSQL database program, MongoDB uses JSON-like documents

JSON – JavaScript Object Notation A human-readable, plain text format for expressing structured data with support in many programming languages

MongoDB stores data records as BSON documents. BSON is a binary representation of JSON documents, it contains more data types than JSON.

SQL Server MongoDB Database Table Collection Row Document Column Field Index Partition Sharding Clustering ReplicaSet Joining Linking & Embedding

Why use MongoDB? You must store unstructured data You have a very high write load (without transactions) You need to handle more reads & writes than a single server can handle You need a solution that can easily scale-out(sharding) You work with tables with very inconsistent schemas You need high availability solution built-in (ReplicaSets) You need high performance (most of the data is stored in ram) You need built in geospatial functions

Why you wouldn’t want to use MongoDB? No support for transactions Limited support for joins No support for triggers Document size limit (16 mb) Your data is relational You don’t want duplicate data.

Use Cases for MongoDB

Is MongoDB going to replace SQL Server? NO Know your data Know your application

Supporting 2 different databases is hard enough right?

Let’s get technical about MongoDB

Ahmad Drshen Personal blog : www.adrshen.com Over 15 years of Information Technology experience with the last 12 years focused on mastering the Microsoft SQL Server platform including Power BI ,Data Science algorithms and MongoDB. Industries served, financial, banking, mortgage, retail, healthcare & insurance   Trained with industry known SQL gurus Paul Randel, Kimberly L. Tripp, Jonathan Kehayias, Glenn Berry and Brent Ozar Twitter adrshen Linkedin : adrshen

How do we get started with MongoDB? Download community edition at https://www.mongodb.com/download-center Prerequisites or Requirement https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/ Robo3T- a user friendly studio to work with mongo databases and collections https://robomongo.org/ Mongo Compass --analyze and understand the contents of your collections https://docs.mongodb.com/compass/current/  

Installing MongoDB

Understanding MongoDb components Component Set Binaries Server mongod.exe Router mongos.exe Client mongo.exe Monitoring Tools mongostat.exe, mongotop.exe ImportExportTools mongodump.exe, mongorestore.exe, mongoexport.exe, mongoimport.exe MiscellaneousTools bsondump.exe, mongofiles.exe, mongooplog.exe, mongoperf.exe monoreplay.exe , mongoldap.exe The core components in the MongoDB package are: mongod, the core database process; mongos  (mongo sharding service) the controller and query router for sharded clusters; and mongo the interactive MongoDB Shell. mongod is the primary process for the MongoDB system. It handles data requests, manages data access, and performs background management operations. mongo is an interactive JavaScript shell interface to MongoDB, which provides a powerful interface for systems administrators as well as a way for developers to test queries and operations directly with the database. mongo also provides a fully functional JavaScript environment for use with a MongoDB. This document addresses the basic invocation of the mongo shell and an overview of its usage. mongotop provides a method to track the amount of time a MongoDB instance spends reading and writing data. mongotop provides statistics on a per-collection level. By default, mongotop returns values every second. The mongostat utility provides a quick overview of the status of a currently running mongod and mongos instance. mongostat is functionally similar to the UNIX/Linux file system utility vmstat, but provides data regarding mongod and mongos instances.

Creating a Windows Service

Backup & Restore Demo

MongoDB Backup & Restore Back Up with Atlas Back Up with MongoDB Cloud Manager or Ops Manager Back Up by Copying Underlying Data Files Back Up with mongodump and restore with mongorestore utilities. https://adrshen.com/2017/08/01/all-about-mongo- backups-restore/

MongoDB Monitoring Demo

Robomongo Demo

More info or quick help https://docs. mongodb More info or quick help https://docs.mongodb.com/manual/core/document/ stackoverflow.com adrshen.com

Questions?