1 More MongoDB: Ch 3- 8, plus a little Hadoop CSSE 533 Week 2, Spring, 2015.

Slides:



Advertisements
Similar presentations
Mongo An alternative database system. Installing Mongo We must install both the Mongo database and at least one GUI for managing Mongo See
Advertisements

What is a Database By: Cristian Dubon.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
11 3 / 12 CHAPTER Databases MIS105 Lec14 Irfan Ahmed Ilyas.
View Sen Zhang. Views are very common in business systems users view of data is simplified a form of security - user sees only the data he/she needs to.
3 / 12 CHAPTER Databases MIS105 Irfan Ahmed Ilyas.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
CS346: Advanced Databases Graham Cormode Term 2.
A Social blog using MongoDB ITEC-810 Final Presentation Lucero Soria Supervisor: Dr. Jian Yang.
LESSON 17 PREPARED BY MANJU. database A database is a collection of related information Access is the Microsoft Office database program that enables you.
Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled.
ORACLE ONLINE TRAINING Contact our Support Team : SOFTNSOL India: Skype id : softnsoltrainings id:
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 3-1 LINKS TO OBJECTIVES Save a Filter as a Query Save a Filter as a Query Parameter Query Inner, Left,
Systems analysis and design, 6th edition Dennis, wixom, and roth
CPSC 203 Introduction to Computers T59 & T64 By Jie (Jeff) Gao.
Introduction. 
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
The Relational Model. Review Why use a DBMS? OS provides RAM and disk.
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.
Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition.
Database Technical Session By: Prof. Adarsh Patel.
CPSC 203 Introduction to Computers T43, T46 & T68 By Jie (Jeff) Gao.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
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
IE 423 – Design of Decision Support Systems Data modeling and database development.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
NOSQL DATABASES Please remember to read the NOSQL Distilled book and the Seven Databases book.
Querying Large Databases Rukmini Kaushik. Purpose Research for efficient algorithms and software architectures of query engines.
Introduction to Robotics i n CIM Systems Chapter 4 James A. Rehg Introduction to Robotics in CIM Systems 5 th edition.
More about Databases. Data Entry through Forms Table View (Data sheet view) is useful for data entry of new records But sometimes customization would.
WEEK 1, DAY 2 STEVE CHENOWETH CSSE DEPT CSSE 533 –INTRO TO MONGODB.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Introduction to Database Tonga Institute of Higher Education NOS 215.
Python Arrays. An array is a variable that stores a collection of things, like a list. For example a list of peoples names. We can access the different.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
Introduction to MongoDB
Building a Distributed Full-Text Index for the Web by Sergey Melnik, Sriram Raghavan, Beverly Yang and Hector Garcia-Molina from Stanford University Presented.
Database Management System. DBMS A software package that allows users to create, retrieve and modify databases. A database is a collection of related.
Advanced MongoDB & FireDAC
Transactions, Roles & Privileges Oracle and ANSI Standard SQL Lecture 11.
CPS 216: Advanced Database Systems Shivnath Babu.
CPSC 203 Introduction to Computers T97 By Jie (Jeff) Gao.
© 2011Geeknet Inc Rapid and Scalable Development with MongoDB, PyMongo, and Ming Rick
Chapter 3: Relational Databases
Introduction to MongoDB. Database compared.
1 CS 430 Database Theory Winter 2005 Lecture 7: Designing a Database Logical Level.
11-1 © Prentice Hall, 2004 Chapter 11: Physical Database Design Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
A Guide to MySQL 6. 2 Objectives Create a new table from an existing table Change data using the UPDATE command Add new data using the INSERT command.
SQL Basics Review Reviewing what we’ve learned so far…….
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.
13 Copyright © 2004, Oracle. All rights reserved. Migrating SQL Statements.
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.
Query Methods Simple SQL Statements Start ….
Database Access with SQL
Indexing Goals: Store large files Support multiple search keys
MongoDB Er. Shiva K. Shrestha ME Computer, NCIT
Query-by-Example (QBE)
MongoDB Distributed Write and Read
Introduction To Database Systems
Chapter 12 Information Systems.
Chapter 4 Relational Databases
Latihan Create a separate table with the same structure as the Booking table to hold archive records. Using the INSERT statement, copy the records from.
Aggregation Aggregations operations process data records and return computed results. Aggregation operations group values from multiple documents together,
Chapter 8 Working with Databases and MySQL
Database Vs. Data Warehouse
More about Databases.
Presentation transcript:

1 More MongoDB: Ch 3- 8, plus a little Hadoop CSSE 533 Week 2, Spring, 2015

2 Topics this week MongoDB – continued: Ch 3 - Creating, updating and deleting documents Ch 4 – Querying Ch 5 – Indexing Ch 6 – Special index and collection types Ch 7 – Aggregation and MapReduce Ch 8 – Application design Intro to Hadoop (from Data Science book) See the reading on Moodle.

3 Ch 3 - Creating, updating and deleting documents Inserting and saving documents How fast? Removing documents Updating documents The read / change / rewrite cycle

4 Ch 3 – Pages to look at P 31 – bottom : You can time how fast things operate. Just define a function with time capture before and after what you are doing. Pp 31 – 40: You can read and replace whole documents, or not. P 34: Can also modify, like incrementing counters. P 37: “$inc” is similar to “$set,” but is designed for incrementing (and decrementing) numbers… There are special conditions and cautions on every one of these features! P 41: “Array manipulation becomes a little trickier when we have multiple values in an array and want to modify some of them…” Ditto Which brings up my idea of your doing some rather loosely defined homework to gain confidence in using all these commands, etc. P 47: Updating multiple documents P 50: Setting a write concern

5 Ch 4 – Querying Everything about “find” Many criteria Type-specific queries Using “$where” Cursors Database commands

6 Ch 4 – Pages to look at P 57: Conditional semantics P 58: Null behavior P 61: $slice operator P 65: $where queries P 66: Security issues P 67: Cursors P 73: The warning about “Getting consistent results”! P 75: Database commands

7 Ch 5 – Indexing All the variations Like compound indexes Query optimization Issues Index types Changing indexes?

8 Ch 5 – Pages to look at First chapter in “Designing your application.” Pp 81-4: Basically, indexes are like in RDBMS’s. Friend to reads, enemies to writes. P 91: Cautions about efficiency of compound indexes. P 98: Using explain() and hint() P 102: The query optimizer P 102: When not to index

9 Ch 6 – Special index and collection types Capped collections Time-to-live indexes Full-text indexes Geospatial indexing Storing files with GridFS

10 Ch 6 – Pages to look at P 109: Capped collections – like for logs P 113: Tailable cursors – run on new data! P 115: Full-text indexes – look dangerous

11 Ch 7 – Aggregation and MapReduce The aggregation framework Pipeline operations MapReduce Aggregation commands

12 Ch 7 – Pages to look at P 127: The aggregation framework P 129: Pipeline operations P 134: A projection example P 141: Example 1 P 143: Example 2 P 150: Using a finalizer

13 Ch 8 – Application design Normalization vs denormalization Optimization for data manipulation Planning out databases and collections Managing consistency Migrating schemas When not to use MongoDB !

14 Ch 8 – Pages to look at P 153: How much to normalize? P 157: Cardinality P 158: Friends, followers, and other inconveniences P 159: Wil Wheaton! P 160: Optimizations P 165: When not to use MongoDB