Nosql Databases Types
Nosql Databases Types
pm jat @ daiict
Recap
• Aggregation Oriented Databases
– Object Aggregates are saved rather than normalized tables
– In other words it is “de-normalized” through related “object embedding”
– “Partition strategies” can be defined better
– By storing together data are queried together makes data manipulation
operations very efficient on distributed data
• Design of “Aggregation Oriented Databases” dictated by Query Load that means
some set of queries execute faster on a design while another set of queries shall
perform poorly.
– Note that this is not the case with relational systems!
Source: https://docs.mongodb.com/manual/core/databases-and-collections/
05-10-2023 Types of No SQL Databases 12
Document Oriented Databases
• Here are Mongo DB correspondences with RDB
RDB Doc DB
Database/Schema Database
Table “Collection” of
Documents
Row/Tuple “Document”
Row ID _id
• Do use concepts of “Table”, “Row”, and “Column”, though slightly different, and
additionally “Column Family” [4]
• Column: “attribute” may not be atomic
• Row: represents a “Data Record”
– typically aggregate and certainly not a normalized row
• Table: A collection of “rows”
• Column Family: A group of columns. A table only has a fixed set of column families
but not a fixed set of columns. A column family can have any number of columns
and names are not known upfront!
• “sparse”:
– Total number of columns in a table could be very large, however individual rows
have values only for few of columns
– This is also reason that these systems are called “Wide Column” databases
• “distributed”: partitioned
• “persistent”
• “multidimensional sorted map”.
– “Map” tells that this is key value store
– Rows are kept “Sorted” on key