Document Databases: MongoDB
|
|
- Rodney Shields
- 5 years ago
- Views:
Transcription
1 NDBI040: Big Data Management and NoSQL Databases hp:// Lecture 9 Document Databases: MongoDB Marn Svoboda svoboda@ksi.mff.cuni.cz Charles University in Prague, Faculty of Mathemacs and Physics Czech Technical University in Prague, Faculty of Electrical Engineering
2 Lecture Outline Document databases Introducon MongoDB Data model CRUD operaons Insert Update Remove Find: projecon, selecon, modifiers NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
3 Document Stores Data model Documents Self-describing Hierarchical tree structures (JSON, XML, ) Scalar values, maps, lists, sets, nested documents, Idenfied by a unique idenfier (key, ) Documents are organized into collecons Query paerns Create, update or remove a document Retrieve documents according to complex query condions Observaon Extended key-value stores where the value part is examinable NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
4 MongoDB Document Database
5 MongoDB JSON document database hps:// Features Open source, high availability, eventual consistency, automac sharding, master-slave replicaon, automac failover, secondary indices, Developed by MongoDB Implemented in C++, C, and JavaScript Operang systems: Windows, Linux, Mac OS X, Inial release in 2009 NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
6 Query Example Collecon of movies Query statement Titles of movies filmed in 2005 and later, sorted by these tles in descending order Query result NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
7 Data Model Database system structure Instance databases collecons documents Database Collecon Collecon of documents, usually of a similar structure Document MongoDB document = one JSON object I.e. even a complex JSON object with other recursively nested objects, arrays or values Each document has a unique idenfier (primary key) Technically realized using a top-level field NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
8 Data Model MongoDB document Internally stored in BSON format (Binary JSON) Maximal allowed size 16 MB GridFS can be used to split larger files into smaller chunks Restricons on field names Top-level is reserved for a primary key Field names cannot start with $ Reserved for query operators Field names cannot contain. Used when accessing nested fields NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
9 Primary Keys Features of idenfiers Unique within a collecon Immutable (cannot be changed once assigned) Can be of any type other than a JSON array Key management Natural idenfier Auto-incremenng number not recommended UUID (Universally Unique Idenfier) ObjectId special 12-byte BSON type (the default opon) Small, likely unique, fast to generate, ordered, based on a mestamp, machine id, process id, and a process-local counter NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
10 Design Quesons Data modeling (in terms of collecons and documents) No explicit schema is provided, nor expected or enforced However documents within a collecon are similar in pracce implicit schema is required nevertheless Challenge Balancing applicaon requirements, performance aspects, data structure, mutual relaonships, query paerns, Two main concepts References Embedded documents NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
11 Denormalized Data Models Embedded documents Related data in a single document with embedded JSON objects, so called subdocuments Pros: data manipulaon (fewer queries need to be issued) Cons: possible data redundancies Suitable for one-to-one or one-to-many relaonships NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
12 Normalized Data Models References Related data in separate documents These are interconnected via directed links (references) Technically expressed using ordinary values with idenfiers of target documents (i.e. no special construct is provided) Features: higher flexibility, follow up queries might be needed Suitable for many-to-many relaonships NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
13 Sample Data Collecon of movies Collecon of actors NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
14 Applicaon Interfaces shell Interacve interface to MongoDB Drivers Java, C, C++, C#, Perl, PHP, Python, Ruby, Scala,... NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
15 Query Language MongoDB query language is based on JavaScript Single command / enre script Read queries return a cursor Allows us to iterate over all the selected documents Each command is always evaluated over a single collecon Query paerns Basic CRUD operaons Accessing documents via idenfiers or condions on fields Aggregaons: MapReduce, pipelines, grouping NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
16 CRUD Operaons Overview Inserts a new document into a collecon Modifies an exisng document / documents or inserts a new one Deletes an exisng document / documents Finds documents based on filtering condions Projecon and / or sorng may be applied too NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
17 Insert Operaon
18 Insert Operaon Inserts a new document / documents into a given collecon db. collection. insert ( document [ document ], options ), Parameters Document: one or more documents to be inserted Provided document idenfiers ( fields) must be unique When missing, they are generated automacally (ObjectId) Opons Collecons are created automacally when not yet exist NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
19 Insert Operaon: Examples Insert a new actor document Insert two new movies NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
20 Update Operaon
21 Update Operaon Modifies / replaces an exisng document / documents db. collection. update ( query, update, options ) Parameters Query: descripon of documents to be updated The same behavior as in find operaons Update: modificaon acons to be applied Opons At most one document is updated by default Unless opon is specified NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
22 Update Operaon: Examples Replace the whole document of at most one specified actor Update all movies filmed in 2015 or later NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
23 Update Operaon Update / replace modes document { update operator }, Replace when the parameter contains no update operators The whole document is replaced ( is preserved) Update when the parameter contains only update operators Current document is updated using these operators,,,, Each operator can be used at most once NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
24 Update Operators Field operators sets the value of a given field / fields $set : { field : value / array / document } removes a given field / fields, $unset : { field : " " } renames a given field / fields, $rename : { field : new field name }, NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
25 Update Operators Field operators increments the value of a given field / fields $inc : { field : increment } mulplies the value of a given field / fields, $mul : { field : multiplier }, stores the current date me / mestamp to a given field / fields $currentdate : { field : { $type : "date" } } { $type : "timestamp" }, NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
26 Update Operators Array operators adds one item / all items to the end of an array $push : { array field : value / array / document } { $each : array } adds one item / all items to the end of an array, but duplicate values are ignored, $addtoset : { array field : value / array / document } { $each : array }, NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
27 Update Operators Array operators removes the first / last item of an array $pop : { array field : 1 } -1, removes all array items that match a specified query $pull : { array field : value / array / document } query, NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
28 Upsert Mode Upsert behavior of update operaon When opon is specified, and, at the same me, no document was updated new document is inserted What this document will contain? In case of the replace mode All the fields (i.e. value fields) from the parameter In case of the update mode All the value fields from the parameter, and the outcome of all the update operators from the parameter field is preserved, or newly generated if necessary NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
29 Upsert Mode: Example Unsuccessful update of a movie resulng to an inseron NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
30 Remove Operaon
31 Remove Operaon Removes a document / documents from a given collecon db. collection. remove ( query, options ) Parameters Query: descripon of documents to be removed The same behavior as in find operaons Opons All the matching documents are removed unless opon is provided NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
32 Find Operaon
33 Find Operaon Selects documents from a given collecon db. collection. find ( query, projection ) Parameters Query: descripon of documents to be selected Projecon: fields to be included / excluded in the result Matching documents are returned via an iterable cursor This allows us to chain further, or operaons NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
34 Find Operaon: Examples Select all movies from our collecon Select a parcular movie based on its document idenfier Select movies filmed in 2000 with a rang greater than 1 Select movies filmed between 2005 and 2015 NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
35 Selecon Query parameter describes the documents we are interested in { and / or logical operator } { field : value / array / document } { query operator },, Condions on fields (each field can be used at most once) Value equality The actual field value must be idencal to the specified value (including, e.g., the order of nested fields or array items) Query operators (each operator can be used at most once) The actual field value must sasfy all the provided operators NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
36 Value Equality Condions: Examples Select movies having a specific director Select movies having specific actors Queries in both the pairs are not equivalent! NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
37 Dot Notaon The dot notaon for field names field. field position Accessing fields of embedded documents E.g.: Accessing items of arrays E.g.: Posions start at 0 NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
38 Value Equality Condions Example (revisited) Select movies having a specific director NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
39 Query Operators Comparison operators $eq : value / array / document $ne $lt : value $lte $gte $gt $in $nin : [ value / array / document, ] Comparisons take parcular BSON data types into account Certain numeric conversions are automacally applied NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
40 Query Operators Comparison operators, Tests the actual field value for equality / inequality The same behavior as in case of value equality condions,,, Tests whether the actual field value is less than / less than or equal / greater than or equal / greater than the provided value Tests whether the actual field value is equal to at least one of the provided values Negaon of NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
41 Query Operators Element operators tests whether a given field exists / not exists $exists : true Evaluaon operators false tests whether a given field value matches a specified regular expression (PCRE) performs text search (text index must exists) NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
42 Query Operators Array operators tests whether a given array contains all the specified items (in any order) $all : [ value / array / document ] Example (revisited) Select movies having specific actors, NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
43 Query Operators Array operators tests the size of a given array against a fixed number (and not, e.g., a range, unfortunately) $size : size tests whether a given array contains at least one item that sasfies all the involved query operaons $elemmatch : query NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
44 Query Operators Logical operators, $and : [ query, query, query ] $or Logical connecves for conjuncon / disjuncon At least 2 involved query expressions must be provided Only allowed at the top level of a query $not : { query operator } Logical negaon of exactly one involved query operator I.e. cannot be used at the top level of a query NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
45 Querying Arrays Condion based on value equality is sasfied when... the given field as a whole is idencal to the provided value, or at least one item of the array is idencal to the provided value NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
46 Querying Arrays Condion based on query operators is sasfied when... the given field as a whole sasfies all the involved operators, or each of the involved operators is sasfied by at least one item of the given array note, however, that this item might not be the same for all the individual operators Use when just one array item should be found for all the operators NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
47 Projecon Projecon allows us to determine the fields returned in the result { field : 1 } true 0 false array field : { projection operator }, or for fields to be included or for fields to be excluded Posive and negave enumeraons cannot be combined! The only excepon is which is included by default Projecon operators allow to select parcular array items NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
48 Projecon Operators Array operators selects the first matching item of an array This item must sasfy all the operators included in When there is no such item, the field is not returned at all $elemmatch : query selects the first items of an array (when is posive) / the last items (when negave) Certain number of items can also be skipped $slice : count [ skip, count ] NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
49 Projecon: Examples Find a parcular movie, select its idenfier, tle and actors Find movies from 2000, select their tles and the last two actors NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
50 Modifiers Modifiers change the order and number of returned documents orders the documents in the result returns at most a certain number of documents limit ( count ) skips a certain number of documents from the beginning skip ( offset ) All the modifiers are oponal, can be chained in any order, but must all be specified before any documents are retrieved via a given cursor NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
51 Modifiers Sort modifier orders the documents in the result sort ( { field : 1 } ) -1, for ascending, for descending order The order of documents is undefined unless explicitly sorted Sorng of larger datasets should be supported by indices Sorng happens before the projecon phase I.e. not included fields can be used for sorng purposes as well NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
52
53 Lecture Conclusion MongoDB Document database for JSON documents Sharding with master-slave replicaon architecture Query funconality CRUD operaons Insert, find, update, remove Complex filtering condions MapReduce Index structures NDBI040: Big Data Management and NoSQL Databases Lecture 9: Document Databases: MongoDB
Document Stores: MongoDB
Course NDBI040: Big Data Management and NoSQL Databases Practice 04: Document Stores: MongoDB Martin Svoboda 15. 12. 2015 Faculty of Mathematics and Physics, Charles University in Prague Outline Document
More informationNDBI040: Big Data Management and NoSQL Databases
NDBI040: Big Data Management and NoSQL Databases h p://www.ksi.mff.cuni.cz/~svoboda/courses/171-ndbi040/ Prac cal Class 8 MongoDB Mar n Svoboda svoboda@ksi.mff.cuni.cz 5. 12. 2017 Charles University in
More informationCourse Content MongoDB
Course Content MongoDB 1. Course introduction and mongodb Essentials (basics) 2. Introduction to NoSQL databases What is NoSQL? Why NoSQL? Difference Between RDBMS and NoSQL Databases Benefits of NoSQL
More informationThe course modules of MongoDB developer and administrator online certification training:
The course modules of MongoDB developer and administrator online certification training: 1 An Overview of the Course Introduction to the course Table of Contents Course Objectives Course Overview Value
More informationMapReduce, Apache Hadoop
NDBI040: Big Data Management and NoSQL Databases hp://www.ksi.mff.cuni.cz/ svoboda/courses/2016-1-ndbi040/ Lecture 2 MapReduce, Apache Hadoop Marn Svoboda svoboda@ksi.mff.cuni.cz 11. 10. 2016 Charles University
More informationColumn-Family Stores: Cassandra
NDBI040: Big Data Management and NoSQL Databases h p://www.ksi.mff.cuni.cz/ svoboda/courses/2016-1-ndbi040/ Lecture 10 Column-Family Stores: Cassandra Mar n Svoboda svoboda@ksi.mff.cuni.cz 13. 12. 2016
More informationMapReduce, Apache Hadoop
Czech Technical University in Prague, Faculty of Informaon Technology MIE-PDB: Advanced Database Systems hp://www.ksi.mff.cuni.cz/~svoboda/courses/2016-2-mie-pdb/ Lecture 12 MapReduce, Apache Hadoop Marn
More informationMongoDB Step By Step. By B.A.Khivsara Assistant Professor Department of Computer Engineering SNJB s COE,Chandwad
MongoDB Step By Step By B.A.Khivsara Assistant Professor Department of Computer Engineering SNJB s COE,Chandwad Outline Introduction to MongoDB Installation in Ubuntu Starting MongoDB in Ubuntu Basic Operations
More informationDocument Object Storage with MongoDB
Document Object Storage with MongoDB Lecture BigData Analytics Julian M. Kunkel julian.kunkel@googlemail.com University of Hamburg / German Climate Computing Center (DKRZ) 2017-12-15 Disclaimer: Big Data
More informationBrad Dayley. Sams Teach Yourself. NoSQL with MongoDB. SAMS 800 East 96th Street, Indianapolis, Indiana, USA
Brad Dayley Sams Teach Yourself NoSQL with MongoDB SAMS 800 East 96th Street, Indianapolis, Indiana, 46240 USA Table of Contents Introduction 1 How This Book Is Organized 1 Code Examples 2 Special Elements
More informationOral Questions and Answers (DBMS LAB) Questions & Answers- DBMS
Questions & Answers- DBMS https://career.guru99.com/top-50-database-interview-questions/ 1) Define Database. A prearranged collection of figures known as data is called database. 2) What is DBMS? Database
More informationCompSci Understanding Data: Theory and Applica>ons
CompSci 590.6 Understanding Data: Theory and Applica>ons Lecture 8 Why- Not Queries (Query- based) Instructor: Sudeepa Roy Email: sudeepa@cs.duke.edu 1 Today s Paper(s) Why Not? Chapman- Jagadish SIGMOD
More informationB4M36DS2, BE4M36DS2: Database Systems 2
B4M36DS2, BE4M36DS2: Database Systems 2 h p://www.ksi.mff.cuni.cz/~svoboda/courses/171-b4m36ds2/ Lecture 2 Data Formats Mar n Svoboda mar n.svoboda@fel.cvut.cz 9. 10. 2017 Charles University in Prague,
More informationChapter 24 NOSQL Databases and Big Data Storage Systems
Chapter 24 NOSQL Databases and Big Data Storage Systems - Large amounts of data such as social media, Web links, user profiles, marketing and sales, posts and tweets, road maps, spatial data, email - NOSQL
More informationMongoDB. copyright 2011 Trainologic LTD
MongoDB MongoDB MongoDB is a document-based open-source DB. Developed and supported by 10gen. MongoDB is written in C++. The name originated from the word: humongous. Is used in production at: Disney,
More informationMONGODB INTERVIEW QUESTIONS
MONGODB INTERVIEW QUESTIONS http://www.tutorialspoint.com/mongodb/mongodb_interview_questions.htm Copyright tutorialspoint.com Dear readers, these MongoDB Interview Questions have been designed specially
More informationNoSQL DBs and MongoDB DATA SCIENCE BOOTCAMP
NoSQL DBs and MongoDB DATA SCIENCE BOOTCAMP Terminology DBMS: Database management system So;ware which controls the storage, retrieval, dele:on, security, and integrity of data within the database Examples:
More informationKey-Value Stores: RiakKV
NDBI040: Big Data Management and NoSQL Databases h p://www.ksi.mff.cuni.cz/ svoboda/courses/2016-1-ndbi040/ Lecture 4 Key-Value Stores: RiakKV Mar n Svoboda svoboda@ksi.mff.cuni.cz 25. 10. 2016 Charles
More informationWriting a Fraction Class
Writing a Fraction Class So far we have worked with floa0ng-point numbers but computers store binary values, so not all real numbers can be represented precisely In applica0ons where the precision of real
More informationMongoDB. History. mongodb = Humongous DB. Open-source Document-based High performance, high availability Automatic scaling C-P on CAP.
#mongodb MongoDB Modified from slides provided by S. Parikh, A. Im, G. Cai, H. Tunc, J. Stevens, Y. Barve, S. Hei History mongodb = Humongous DB Open-source Document-based High performance, high availability
More informationMongoDB. Kristina Chodorow September 8 th, 2009
MongoDB Kristina Chodorow September 8 th, 2009 Who am I? Software Engineer at 10gen Java, Perl, PHP, drivers Technique #1: literally scale Technique #1: literally scale (Courtesy of Ask Bjorn Hansen)
More informationMongoDB. CSC309 TA: Sukwon Oh
MongoDB CSC309 TA: Sukwon Oh Review SQL declarative language for querying data tells what to find and not how to find Review RDBMS Characteristics Easy to use Complicated to use it right Fixed schema Difficult
More informationBioinforma)cs Resources - NoSQL -
Bioinforma)cs Resources - NoSQL - Lecture & Exercises Prof. B. Rost, Dr. L. Richter, J. Reeb Ins)tut für Informa)k I12 Short SQL Recap schema typed data tables defined layout space consump)on is computable
More information15110 Principles of Computing, Carnegie Mellon University - CORTINA. Binary Search. Required: List L of n unique elements.
UNIT 5B Binary Search 1 Binary Search Required: List L of n unique elements. The elements must be sorted in increasing order. Result: The index of a specific element (called the key) or None if the key
More informationRela+onal Algebra. Rela+onal Query Languages. CISC437/637, Lecture #6 Ben Cartere?e
Rela+onal Algebra CISC437/637, Lecture #6 Ben Cartere?e Copyright Ben Cartere?e 1 Rela+onal Query Languages A query language allows manipula+on and retrieval of data from a database The rela+onal model
More informationA RESTFUL API WITH MONGODB. A Project. California State University, Sacramento
A RESTFUL API WITH MONGODB A Project Presented to the faculty of the Department of Computer Science California State University, Sacramento Submitted in partial satisfaction of the requirements for the
More informationKey-Value Stores: RiakKV
B4M36DS2, BE4M36DS2: Database Systems 2 h p://www.ksi.m.cuni.cz/~svoboda/courses/181-b4m36ds2/ Lecture 7 Key-Value Stores: RiakKV Mar n Svoboda mar n.svoboda@fel.cvut.cz 12. 11. 2018 Charles University,
More informationAlgorithms Lecture 11. UC Davis, ECS20, Winter Discrete Mathematics for Computer Science
UC Davis, ECS20, Winter 2017 Discrete Mathematics for Computer Science Prof. Raissa D Souza (slides adopted from Michael Frank and Haluk Bingöl) Lecture 11 Algorithms 3.1-3.2 Algorithms Member of the House
More informationSearch Engines. Informa1on Retrieval in Prac1ce. Annotations by Michael L. Nelson
Search Engines Informa1on Retrieval in Prac1ce Annotations by Michael L. Nelson All slides Addison Wesley, 2008 Indexes Indexes are data structures designed to make search faster Text search has unique
More informationMongoDB. Nicolas Travers Conservatoire National des Arts et Métiers. MongoDB
Nicolas Travers Conservatoire National des Arts et Métiers 1 Introduction Humongous (monstrous / enormous) NoSQL: Documents Oriented JSon Serialized format: BSon objects Implemented in C++ Keys indexing
More informationdinner in the sky with
dinner in the sky with @marcboeker boarding MongoDB MongoDB freebie Document-orientated Storage Document-orientated Storage JSON-Style Documents Document-orientated Storage JSON-Style Documents Scales
More information1 Big Data Hadoop. 1. Introduction About this Course About Big Data Course Logistics Introductions
Big Data Hadoop Architect Online Training (Big Data Hadoop + Apache Spark & Scala+ MongoDB Developer And Administrator + Apache Cassandra + Impala Training + Apache Kafka + Apache Storm) 1 Big Data Hadoop
More informationOpen source, high performance database. July 2012
Open source, high performance database July 2012 1 Quick introduction to mongodb Data modeling in mongodb, queries, geospatial, updates and map reduce. Using a location-based app as an example Example
More informationNoSQL data stores and SOS: Uniform Access to Non-Relational Database Systems Paolo Atzeni Francesca Bugiotti Luca Rossi
NoSQL data stores and SOS: Uniform Access to Non-Relational Database Systems Paolo Atzeni Francesca Bugiotti Luca Rossi Outline Context Rela&onal DBMS NoSQL Data Stores NoSQL Timeline NoSQL Data Stores
More informationFloa.ng Point : Introduc;on to Computer Systems 4 th Lecture, Sep. 10, Instructors: Randal E. Bryant and David R.
Floa.ng Point 15-213: Introduc;on to Computer Systems 4 th Lecture, Sep. 10, 2015 Instructors: Randal E. Bryant and David R. O Hallaron Today: Floa.ng Point Background: Frac;onal binary numbers IEEE floa;ng
More informationKey-Value Stores: RiakKV
B4M36DS2: Database Systems 2 h p://www.ksi.mff.cuni.cz/ svoboda/courses/2016-1-b4m36ds2/ Lecture 4 Key-Value Stores: RiakKV Mar n Svoboda svoboda@ksi.mff.cuni.cz 24. 10. 2016 Charles University in Prague,
More informationMongoDB. An introduction and performance analysis. by Rico Suter
MongoDB An introduction and performance analysis by Rico Suter Contents What is MongoDB Features Queries Performance Conclusion What is MongoDB Databases Collections Documents JSON structured MongoDB Database
More informationAWS Iden)ty And Access Management (IAM) Manohar Rapolu
AWS Iden)ty And Access Management (IAM) Manohar Rapolu Topics Introduc5on Principals Authen5ca5on Authoriza5on Other Key Feature -> Mul5 Factor Authen5ca5on -> Rota5ng Keys -> Resolving Mul5ple Permissions
More informationITG Software Engineering
Introduction to MongoDB Course ID: Page 1 Last Updated 12/15/2014 MongoDB for Developers Course Overview: In this 3 day class students will start by learning how to install and configure MongoDB on a Mac
More informationInstructor: Randy H. Katz hap://inst.eecs.berkeley.edu/~cs61c/fa13. Fall Lecture #7. Warehouse Scale Computer
CS 61C: Great Ideas in Computer Architecture Everything is a Number Instructor: Randy H. Katz hap://inst.eecs.berkeley.edu/~cs61c/fa13 9/19/13 Fall 2013 - - Lecture #7 1 New- School Machine Structures
More informationMongoDB. Database Initialization. Note
11 MongoDB Lab Objective: Relational databases, including those managed with SQL or pandas, require data to be organized into tables. However, many data sets have an inherently dynamic structure that cannot
More information(Poor) Example code. Objec+ves. Comparing Rela+onal Databases and Elas+csearch. Review 3/13/17. for(; iter.hasnext();) {... } Elas+csearch MongoDB
Objec+ves Elas+csearch MongoDB (Poor) Example code for(; iter.hasnext();) {...!StringUtils.isNotEmpty(str) March 13, 2017 Sprenkle - CSCI397 1 March 13, 2017 Sprenkle - CSCI397 2 Review What data storage/search
More informationMongoDB Tutorial for Beginners
MongoDB Tutorial for Beginners Mongodb is a document-oriented NoSQL database used for high volume data storage. In this tutorial you will learn how Mongodb can be accessed and some of its important features
More informationNDBI040: Big Data Management and NoSQL Databases. h p:// svoboda/courses/ ndbi040/
NDBI040: Big Data Management and NoSQL Databases h p://www.ksi.mff.cuni.cz/ svoboda/courses/2016-1-ndbi040/ Prac cal Class 2 Riak Key-Value Store Mar n Svoboda svoboda@ksi.mff.cuni.cz 25. 10. 2016 Charles
More informationMongoDB CRUD Operations
MongoDB CRUD Operations Release 3.2.3 MongoDB, Inc. February 17, 2016 2 MongoDB, Inc. 2008-2016 This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 3.0 United States License
More informationCS6200 Informa.on Retrieval. David Smith College of Computer and Informa.on Science Northeastern University
CS6200 Informa.on Retrieval David Smith College of Computer and Informa.on Science Northeastern University Indexing Process Indexes Indexes are data structures designed to make search faster Text search
More informationPreliminary ACTL-SLOW Design in the ACS and OPC-UA context. G. Tos? (19/04/2016)
Preliminary ACTL-SLOW Design in the ACS and OPC-UA context G. Tos? (19/04/2016) Summary General Introduc?on to ACS Preliminary ACTL-SLOW proposed design Hardware device integra?on in ACS and ACTL- SLOW
More informationBy Prof. Bhavana A.Khivsara
By Prof. Bhavana A.Khivsara Introduction to MongoDB Installation in Windows Starting MongoDB in Windows Basic Operations CRUD Operations Indexing Aggregation XAMPP Installation PHP-Mongo setting in XAMPP
More informationmore uml: sequence & use case diagrams
more uml: sequence & use case diagrams uses of uml as a sketch: very selec)ve informal and dynamic forward engineering: describe some concept you need to implement reverse engineering: explain how some
More informationUniversity of Texas at Arlington, TX, USA
Dept. of Computer Science and Engineering University of Texas at Arlington, TX, USA A file is a collec%on of data that is stored on secondary storage like a disk or a thumb drive. Accessing a file means
More informationLeveraging User Session Data to Support Web Applica8on Tes8ng
Leveraging User Session Data to Support Web Applica8on Tes8ng Authors: Sebas8an Elbaum, Gregg Rotheermal, Srikanth Karre, and Marc Fisher II Presented By: Rajiv Jain Outline Introduc8on Related Work Tes8ng
More informationSpa$al Analysis and Modeling (GIST 4302/5302) Guofeng Cao Department of Geosciences Texas Tech University
Spa$al Analysis and Modeling (GIST 4302/5302) Guofeng Cao Department of Geosciences Texas Tech University Class Outlines Spatial Point Pattern Regional Data (Areal Data) Continuous Spatial Data (Geostatistical
More informationSubmitted to: Dr. Sunnie Chung. Presented by: Sonal Deshmukh Jay Upadhyay
Submitted to: Dr. Sunnie Chung Presented by: Sonal Deshmukh Jay Upadhyay Submitted to: Dr. Sunny Chung Presented by: Sonal Deshmukh Jay Upadhyay What is Apache Survey shows huge popularity spike for Apache
More informationNDBI040: Big Data Management and NoSQL Databases. h p://
NDBI040: Big Data Management and NoSQL Databases h p://www.ksi.mff.cuni.cz/~svoboda/courses/171-ndbi040/ Prac cal Class 5 Riak Mar n Svoboda svoboda@ksi.mff.cuni.cz 13. 11. 2017 Charles University in Prague,
More informationNOSQL EGCO321 DATABASE SYSTEMS KANAT POOLSAWASD DEPARTMENT OF COMPUTER ENGINEERING MAHIDOL UNIVERSITY
NOSQL EGCO321 DATABASE SYSTEMS KANAT POOLSAWASD DEPARTMENT OF COMPUTER ENGINEERING MAHIDOL UNIVERSITY WHAT IS NOSQL? Stands for No-SQL or Not Only SQL. Class of non-relational data storage systems E.g.
More informationNoSQL: Redis and MongoDB A.A. 2016/17
Università degli Studi di Roma Tor Vergata Dipartimento di Ingegneria Civile e Ingegneria Informatica NoSQL: Redis and MongoDB A.A. 2016/17 Matteo Nardelli Laurea Magistrale in Ingegneria Informatica -
More informationMongoDB An Overview. 21-Oct Socrates
MongoDB An Overview 21-Oct-2016 Socrates Agenda What is NoSQL DB? Types of NoSQL DBs DBMS and MongoDB Comparison Why MongoDB? MongoDB Architecture Storage Engines Data Model Query Language Security Data
More informationTrust Eleva,on Architecture v03
Trust Eleva,on Architecture v03 DISCUSSION DRAFT 2015-01- 27 Andrew Hughes 1 Purpose of this presenta,on To alempt to explain the Trust Eleva,on mechanism as a form of ALribute Based Access Control To
More informationMongoDB CRUD Operations
MongoDB CRUD Operations Release 3.2.4 MongoDB, Inc. March 11, 2016 2 MongoDB, Inc. 2008-2016 This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 3.0 United States License
More informationMongoDB w/ Some Node.JS Sprinkles
MongoDB w/ Some Node.JS Sprinkles Niall O'Higgins Author MongoDB and Python O'Reilly @niallohiggins on Twitter niallo@beyondfog.com MongoDB Overview Non-relational (NoSQL) document-oriented database Rich
More informationTeach A level Compu/ng: Algorithms and Data Structures
Teach A level Compu/ng: Algorithms and Data Structures Eliot Williams @MrEliotWilliams Course Outline Representa+ons of data structures: Arrays, tuples, Stacks, Queues,Lists 2 Recursive Algorithms 3 Searching
More informationOutline for today. Introduction to NoSQL. MongoDB. Architecture. NoSQL Assumptions and the CAP Theorem Strengths and weaknesses of NoSQL
Outline for today Introduction to NoSQL Architecture Sharding Replica sets NoSQL Assumptions and the CAP Theorem Strengths and weaknesses of NoSQL MongoDB Functionality Examples 2 Taxonomy of NoSQL Key-value
More informationOutline. Spanner Mo/va/on. Tom Anderson
Spanner Mo/va/on Tom Anderson Outline Last week: Chubby: coordina/on service BigTable: scalable storage of structured data GFS: large- scale storage for bulk data Today/Friday: Lessons from GFS/BigTable
More informationChapter 8 SETS AND DICTIONARIES
Chapter 8 SETS AND DICTIONARIES Chapter Contents Sets Dictionaries Complex Data Structures 10/19/16 Page 2 Chapter Goals To build and use a set container To learn common set opera2ons for processing data
More informationFunc+on applica+ons (calls, invoca+ons)
Func%ons in Racket Racket Functions: most important building block in Racket (and 25) Functions/procedures/methods/subroutines abstract over computations Like Java methods, Python functions have arguments
More informationCSc 120. Introduction to Computer Programming II. 14: Stacks and Queues. Adapted from slides by Dr. Saumya Debray
CSc 120 Introduction to Computer Programming II Adapted from slides by Dr. Saumya Debray 14: Stacks and Queues linear data structures 2 Linear data structures A linear data structure is a collec6on of
More informationCS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #4: SQL---Part 2
CS 4604: Introduc0on to Database Management Systems B. Aditya Prakash Lecture #4: SQL---Part 2 Overview - detailed - SQL DML other parts: views modifications joins DDL constraints Prakash 2016 VT CS 4604
More informationRepresenta7on of integers: unsigned and signed Conversion, cas7ng Expanding, trunca7ng Addi7on, nega7on, mul7plica7on, shiaing
Today s Topics Representa7on of integers: unsigned and signed Conversion, cas7ng Expanding, trunca7ng Addi7on, nega7on, mul7plica7on, shiaing CSE351 Inaugural Edi7on Spring 2010 1 Encoding Integers C short
More informationCS 5614: (Big) Data Management Systems. B. Aditya Prakash Lecture #2: The Rela0onal Model, and SQL/Rela0onal Algebra
CS 5614: (Big) Data Management Systems B. Aditya Prakash Lecture #2: The Rela0onal Model, and SQL/Rela0onal Algebra Data Model A Data Model is a nota0on for describing data or informa0on. Structure of
More informationGroup13: Siddhant Deshmukh, Sudeep Rege, Sharmila Prakash, Dhanusha Varik
Group13: Siddhant Deshmukh, Sudeep Rege, Sharmila Prakash, Dhanusha Varik mongodb (humongous) Introduction What is MongoDB? Why MongoDB? MongoDB Terminology Why Not MongoDB? What is MongoDB? DOCUMENT STORE
More informationCS251 Programming Languages Spring 2016, Lyn Turbak Department of Computer Science Wellesley College
Functions in Racket CS251 Programming Languages Spring 2016, Lyn Turbak Department of Computer Science Wellesley College Racket Func+ons Functions: most important building block in Racket (and 251) Functions/procedures/methods/subroutines
More informationCondi(onals and Loops
Condi(onals and Loops 1 Review Primi(ve Data Types & Variables int, long float, double boolean char String Mathema(cal operators: + - * / % Comparison: < > = == 2 A Founda(on for Programming any program
More informationMongoDB Schema Design
MongoDB Schema Design Demystifying document structures in MongoDB Jon Tobin @jontobs MongoDB Overview NoSQL Document Oriented DB Dynamic Schema HA/Sharding Built In Simple async replication setup Automated
More informationIntroduc)on to Informa)on Visualiza)on
Introduc)on to Informa)on Visualiza)on Seeing the Science with Visualiza)on Raw Data 01001101011001 11001010010101 00101010100110 11101101011011 00110010111010 Visualiza(on Applica(on Visualiza)on on
More informationIBM DB2 JSON An overview of DB capabilities as a JSON document store
IBM DB2 JSON An overview of DB2 10.5 capabilities as a JSON document store Olivier Bernin IBM Session Code: 4 April 16 th, 14:45 Platform: DB2 LUW Agenda Introduction what's JSON, requirements, setting
More informationIntelligent Systems Knowledge Representa6on
Intelligent Systems Knowledge Representa6on SCJ3553 Ar6ficial Intelligence Faculty of Computer Science and Informa6on Systems Universi6 Teknologi Malaysia Outline Introduc6on Seman6c Network Frame Conceptual
More informationObjec0ves. Gain understanding of what IDA Pro is and what it can do. Expose students to the tool GUI
Intro to IDA Pro 31/15 Objec0ves Gain understanding of what IDA Pro is and what it can do Expose students to the tool GUI Discuss some of the important func
More informationThe NoSQL Landscape. Frank Weigel VP, Field Technical Opera;ons
The NoSQL Landscape Frank Weigel VP, Field Technical Opera;ons What we ll talk about Why RDBMS are not enough? What are the different NoSQL taxonomies? Which NoSQL is right for me? Macro Trends Driving
More informationInforma(on Retrieval
Introduc)on to Informa)on Retrieval CS3245 Informa(on Retrieval Lecture 7: Scoring, Term Weigh9ng and the Vector Space Model 7 Last Time: Index Construc9on Sort- based indexing Blocked Sort- Based Indexing
More informationRoadmap. The Interface CSE351 Winter Frac3onal Binary Numbers. Today s Topics. Floa3ng- Point Numbers. What is ?
The Hardware/So@ware Interface CSE351 Winter 013 Floa3ng- Point Numbers Roadmap C: car *c = malloc(sizeof(car)); c->miles = 100; c->gals = 17; float mpg = get_mpg(c); free(c); Assembly language: Machine
More informationIntro to MongoDB. Alex Sharp.
Intro to MongoDB Alex Sharp twitter: @ajsharp email: ajsharp@frothlogic.com So what is MongoDB? First and foremost... IT S THE NEW HOTNESS!!! omgomgomg SHINY OBJECTS omgomgomg MongoDB (from "humongous")
More informationDynamic Memory Alloca/on: Basic Concepts
Dynamic Memory Alloca/on: Basic Concepts 15-213 / 18-213: Introduc2on to Computer Systems 18 th Lecture, March. 26, 2013 Instructors: Anthony Rowe, Seth Goldstein, and Gregory Kesden 1 Today Basic concepts
More informationFriday, April 26, 13
Introduc)on to Map Reduce with Couchbase Tugdual Grall / @tgrall NoSQL Ma)ers 13 - Cologne - April 25th 2013 About Me Tugdual Tug Grall Couchbase exo Technical Evangelist CTO Oracle Developer/Product Manager
More informationInforma(on Retrieval
Introduc)on to Informa)on Retrieval CS3245 Informa(on Retrieval Lecture 7: Scoring, Term Weigh9ng and the Vector Space Model 7 Last Time: Index Compression Collec9on and vocabulary sta9s9cs: Heaps and
More information3D Digital Design. SketchUp
3D Digital Design SketchUp 1 Overview of 3D Digital Design Skills A few basic skills in a design program will go a long way: 1. Orien
More informationSu#erPatch So.ware Release Notes
Su#erPatch So.ware Release Notes Version 2.0.0 (build 200); September 1, 2018 New Feature Highlights Free upgrade for all exis1ng users. Su5erPatch 2 comes with Igor Pro version 8. All exis1ng users receive
More informationEffec%ve So*ware. Lecture 9: JVM - Memory Analysis, Data Structures, Object Alloca=on. David Šišlák
Effec%ve So*ware Lecture 9: JVM - Memory Analysis, Data Structures, Object Alloca=on David Šišlák david.sislak@fel.cvut.cz JVM Performance Factors and Memory Analysis» applica=on performance factors total
More informationL6: System design: behavior models
L6: System design: behavior models Limita6ons of func6onal decomposi6on Behavior models State diagrams Flow charts Data flow diagrams En6ty rela6onship diagrams Unified Modeling Language Capstone design
More informationFinal Exam Review 2. Kathleen Durant CS 3200 Northeastern University Lecture 23
Final Exam Review 2 Kathleen Durant CS 3200 Northeastern University Lecture 23 QUERY EVALUATION PLAN Representation of a SQL Command SELECT {DISTINCT} FROM {WHERE
More informationCS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #3: SQL and Rela2onal Algebra- - - Part 1
CS 4604: Introduc0on to Database Management Systems B. Aditya Prakash Lecture #3: SQL and Rela2onal Algebra- - - Part 1 Reminder: Rela0onal Algebra Rela2onal algebra is a nota2on for specifying queries
More informationh p://
B4M36DS2, BE4M36DS2: Database Systems 2 h p://www.ksi.m.cuni.cz/~svoboda/courses/181-b4m36ds2/ Prac cal Class 7 Redis Mar n Svoboda mar n.svoboda@fel.cvut.cz 19. 11. 2018 Charles University, Faculty of
More informationWeek - 03 Lecture - 18 Recursion. For the last lecture of this week, we will look at recursive functions. (Refer Slide Time: 00:05)
Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 03 Lecture - 18 Recursion For the
More informationDatabase Solution in Cloud Computing
Database Solution in Cloud Computing CERC liji@cnic.cn Outline Cloud Computing Database Solution Our Experiences in Database Cloud Computing SaaS Software as a Service PaaS Platform as a Service IaaS Infrastructure
More informationScaling MongoDB: Avoiding Common Pitfalls. Jon Tobin Senior Systems
Scaling MongoDB: Avoiding Common Pitfalls Jon Tobin Senior Systems Engineer Jon.Tobin@percona.com @jontobs www.linkedin.com/in/jonathanetobin Agenda Document Design Data Management Replica3on & Failover
More informationCSE 530A. Non-Relational Databases. Washington University Fall 2013
CSE 530A Non-Relational Databases Washington University Fall 2013 NoSQL "NoSQL" was originally the name of a specific RDBMS project that did not use a SQL interface Was co-opted years later to refer to
More informationCassandra- A Distributed Database
Cassandra- A Distributed Database Tulika Gupta Department of Information Technology Poornima Institute of Engineering and Technology Jaipur, Rajasthan, India Abstract- A relational database is a traditional
More informationPyTables. An on- disk binary data container, query engine and computa:onal kernel. Francesc Alted
PyTables An on- disk binary data container, query engine and computa:onal kernel Francesc Alted Tutorial for the PyData Conference, October 2012, New York City 10 th anniversary of PyTables Hi!, PyTables
More informationUniversity of Texas at Arlington, TX, USA
Dept. of Computer Science and Engineering University of Texas at Arlington, TX, USA Part of the science in computer science is the design and use of data structures and algorithms. As you go on in CS,
More informationChunking: An Empirical Evalua3on of So7ware Architecture (?)
Chunking: An Empirical Evalua3on of So7ware Architecture (?) Rachana Koneru David M. Weiss Iowa State University weiss@iastate.edu rachana.koneru@gmail.com With participation by Audris Mockus, Jeff St.
More informationCS 61C: Great Ideas in Computer Architecture Func%ons and Numbers
CS 61C: Great Ideas in Computer Architecture Func%ons and Numbers 9/11/12 Instructor: Krste Asanovic, Randy H. Katz hcp://inst.eecs.berkeley.edu/~cs61c/sp12 Fall 2012 - - Lecture #8 1 New- School Machine
More information