Professional Documents
Culture Documents
Mongodb
Mongodb
• Key-value
• Graph database
• Document-oriented
• Column family
10
Key Features
● High Performance
MongoDB provides high performance data persistence. In
particular,
11
Rich Query Language
Data Aggregation
Text Search and Geospatial Queries(allow for the use of
geometry data types such as points, lines and polygons
and that these queries consider the spatial relationship
between these geometries.).
12
High Availability
13
Document store
RDBMS MongoDB
Database Database
Column Field
Index Index
14
Join Embedded Document
Index Index
15
Join Embedded Document
17
_id
_id is a 12 bytes hexadecimal number which assures the
uniqueness of every document. You can provide _id while
inserting the document. If you don’t provide then
MongoDB provides a unique id for every document. These
12 bytes first 4 bytes for the current timestamp, next 3
bytes for machine id, next 2 bytes for process id of
MongoDB server and remaining 3 bytes are simple
incremental VALUE.
18
19
20
21
22