Document Databases, JSON, MongoDB
[Pages:51]MI-PDB, MIE-PDB: Advanced Database Systems
Lecture 13:
Document Databases, JSON, MongoDB
17. 5. 2016
Lecturer: Martin Svoboda svoboda@ksi.mff.cuni.cz
Authors: Irena Holubov?, Martin Svoboda Faculty of Mathematics and Physics, Charles University in Prague Course NDBI040: Big Data Management and NoSQL Databases
Document Databases
Basic Characteristics
Documents are the main concept
Stored and retrieved XML, JSON, ...
Documents are
Self-describing Hierarchical tree data structures Can consist of maps, collections, scalar values, nested
documents, ...
Documents in a collection are expected to be similar
Their schema can differ
Document databases store documents in the value part of the key-value store
Key-value stores where the value is examinable
Document Databases
Suitable Use Cases
Event Logging Many different applications want to log events
Type of data being captured keeps changing
Events can be sharded by the name of the application or type of event Content Management Systems, Blogging Platforms Managing user comments, user registrations, profiles, web-facing
documents, ... Web Analytics or Real-Time Analytics Parts of the document can be updated New metrics can be easily added without schema changes E-Commerce Applications Flexible schema for products and orders Evolving data models without expensive data migration
Document Databases
When Not to Use
Complex Transactions Spanning Different Operations Atomic cross-document operations
Some document databases do support (e.g., RavenDB)
Queries against Varying Aggregate Structure Design of aggregate is constantly changing we need
to save the aggregates at the lowest level of granularity
i.e., to normalize the data
Document Databases
Representatives
Lotus Notes Storage Facility
JSON
JavaScript Object Notation
Introduction
? JSON = JavaScript Object Notation
Text-based easy-to-read-and-write open standard for data interchange
Serializing and transmitting structured data Design goals: simplicity and universality
Derived from JavaScript, but language independent
Uses conventions of the C-family of languages (C, C++, C#, Java, JavaScript, Perl, Python, ...)
Filename: *.json Media type: application/json
MI-PDB, MIE-PDB: Advanced Database Systems | Lecture 13: MongoDB | 17. 5. 2016
7
Example
{ "firstName" : "John", "lastName" : "Smith", "age" : 25, "address" : { "street" : "21 2nd Street", "city" : "New York", "state" : "NY", "postalCode" : 10021 }, "phoneNumbers" : [ { "type" : "home", "number" : "212 555-1234" }, { "type" : "fax", "number" : "646 555-4567" } ]
}
MI-PDB, MIE-PDB: Advanced Database Systems | Lecture 13: MongoDB | 17. 5. 2016
8
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- mongodb certified dba associate exam based on mongodb 4 4
- performance benchmark postgresql mongodb enterprisedb
- security analysis of mongodb
- json mongodb duke university
- json bson format template word free pdf
- document databases json mongodb
- a quick tour of binary json bson manning
- json format to represent dns data this document describes a profile of
- bson in mongodb
- bson format full form
Related searches
- free research databases for students
- databases for peer reviewed articles
- educational databases for students
- understanding databases for beginners
- databases for dummies pdf
- free databases for students
- web of science databases journals
- free databases for college students
- using databases with python
- mongodb node js documentation
- free donor databases for nonprofits
- scholarly databases for nursing