8 Database Paradigms

Hossein Zahed
Hossein ZahedLead Software Engineer en Maersk
8 Database Paradigms
https://www.youtube.com/@hosseinzahed 1
Hossein Zahed
1. Key-Value
https://www.youtube.com/@hosseinzahed 2
name Hossein
Key Value
user:100
{
name: “Hossein”,
age: “40”,
city: “Copenhagen”
}
user:100:name Hossein
2. Wide-Column
https://www.youtube.com/@hosseinzahed 3
user:100
Hossein
Row Key Columns
name
40
age
Copenhagen
city
Row
user:101
David
name
26
age
Row
3. Relational
https://www.youtube.com/@hosseinzahed 4
Id Name Age
100 Hossein 40
… … …
107 David 26
ID User_Id Language
1 100 C#
2 100 Python
3 107 Java
Users Table
Programming Languages Table
Primary Key
Foreign Key
4. Document Oriented
https://www.youtube.com/@hosseinzahed 5
Document 1
{
id: 100
name: “Hossein”
age: 40,
languages: [
“C#”,
“Python”
]
}
Document 2
{
id: 107
name: “David”
age: 26,
languages: [
“Java”
]
}
5. Graph
https://www.youtube.com/@hosseinzahed 6
Node (Data)
Edge (Relationship)
6. Multi-Model
https://www.youtube.com/@hosseinzahed 7
FAUNA
Relational
Document
Oriented
Graph
7. Full-Text Search
https://www.youtube.com/@hosseinzahed 8
8. Time Series
https://www.youtube.com/@hosseinzahed 9
https://www.youtube.com/@hosseinzahed 10
Thank you!
1 de 10

Recomendados

what is bitcoin, its history and detail por
what is bitcoin, its history and detailwhat is bitcoin, its history and detail
what is bitcoin, its history and detailSelf-employed
4.7K vistas14 diapositivas
A Complete Guide On Diem Blockchain por
A Complete Guide On Diem BlockchainA Complete Guide On Diem Blockchain
A Complete Guide On Diem Blockchain101 Blockchains
4.8K vistas25 diapositivas
Famous Mathematicians por
Famous MathematiciansFamous Mathematicians
Famous MathematiciansNitin Chhaperwal
1.2K vistas20 diapositivas
Overview of Blockchain Consensus Mechanisms por
Overview of Blockchain Consensus MechanismsOverview of Blockchain Consensus Mechanisms
Overview of Blockchain Consensus MechanismsJohannes Ahlmann
1.5K vistas17 diapositivas
Write smart contract with solidity on Ethereum por
Write smart contract with solidity on EthereumWrite smart contract with solidity on Ethereum
Write smart contract with solidity on EthereumMurughan Palaniachari
1.3K vistas34 diapositivas
Machine Learning with ML.NET por
Machine Learning with ML.NETMachine Learning with ML.NET
Machine Learning with ML.NETHossein Zahed
14 vistas9 diapositivas

Más contenido relacionado

Más de Hossein Zahed

مبانی چابکی و اسکرام por
مبانی چابکی و اسکراممبانی چابکی و اسکرام
مبانی چابکی و اسکرامHossein Zahed
13 vistas8 diapositivas
آموزش سی شارپ - بخش 1 por
آموزش سی شارپ - بخش 1آموزش سی شارپ - بخش 1
آموزش سی شارپ - بخش 1Hossein Zahed
11 vistas11 diapositivas
فرآیند توسعه نرم افزار por
فرآیند توسعه نرم افزارفرآیند توسعه نرم افزار
فرآیند توسعه نرم افزارHossein Zahed
17 vistas9 diapositivas
مبانی اینترنت por
مبانی اینترنتمبانی اینترنت
مبانی اینترنتHossein Zahed
8 vistas5 diapositivas
تخته سیاه آنلاین por
تخته سیاه آنلاینتخته سیاه آنلاین
تخته سیاه آنلاینHossein Zahed
10 vistas3 diapositivas
مفاهیم اساسی برنامه نویسی کامپیوتر por
مفاهیم اساسی برنامه نویسی کامپیوترمفاهیم اساسی برنامه نویسی کامپیوتر
مفاهیم اساسی برنامه نویسی کامپیوترHossein Zahed
29 vistas12 diapositivas

Más de Hossein Zahed(16)

مبانی چابکی و اسکرام por Hossein Zahed
مبانی چابکی و اسکراممبانی چابکی و اسکرام
مبانی چابکی و اسکرام
Hossein Zahed13 vistas
آموزش سی شارپ - بخش 1 por Hossein Zahed
آموزش سی شارپ - بخش 1آموزش سی شارپ - بخش 1
آموزش سی شارپ - بخش 1
Hossein Zahed11 vistas
فرآیند توسعه نرم افزار por Hossein Zahed
فرآیند توسعه نرم افزارفرآیند توسعه نرم افزار
فرآیند توسعه نرم افزار
Hossein Zahed17 vistas
تخته سیاه آنلاین por Hossein Zahed
تخته سیاه آنلاینتخته سیاه آنلاین
تخته سیاه آنلاین
Hossein Zahed10 vistas
مفاهیم اساسی برنامه نویسی کامپیوتر por Hossein Zahed
مفاهیم اساسی برنامه نویسی کامپیوترمفاهیم اساسی برنامه نویسی کامپیوتر
مفاهیم اساسی برنامه نویسی کامپیوتر
Hossein Zahed29 vistas
ASP.NET MVC 5 - EF 6 - VS2015 por Hossein Zahed
ASP.NET MVC 5 - EF 6 - VS2015ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015
Hossein Zahed3.4K vistas
CSharp Language Overview Part 1 por Hossein Zahed
CSharp Language Overview Part 1CSharp Language Overview Part 1
CSharp Language Overview Part 1
Hossein Zahed1.8K vistas
Network Essentials v2.0 por Hossein Zahed
Network Essentials v2.0Network Essentials v2.0
Network Essentials v2.0
Hossein Zahed2.4K vistas
Microsoft SQL Server 2008 por Hossein Zahed
Microsoft SQL Server 2008Microsoft SQL Server 2008
Microsoft SQL Server 2008
Hossein Zahed1.6K vistas

Último

Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated... por
Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...
Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...TomHalpin9
6 vistas29 diapositivas
HarshithAkkapelli_Presentation.pdf por
HarshithAkkapelli_Presentation.pdfHarshithAkkapelli_Presentation.pdf
HarshithAkkapelli_Presentation.pdfharshithakkapelli
12 vistas16 diapositivas
Navigating container technology for enhanced security by Niklas Saari por
Navigating container technology for enhanced security by Niklas SaariNavigating container technology for enhanced security by Niklas Saari
Navigating container technology for enhanced security by Niklas SaariMetosin Oy
14 vistas34 diapositivas
Gen Apps on Google Cloud PaLM2 and Codey APIs in Action por
Gen Apps on Google Cloud PaLM2 and Codey APIs in ActionGen Apps on Google Cloud PaLM2 and Codey APIs in Action
Gen Apps on Google Cloud PaLM2 and Codey APIs in ActionMárton Kodok
15 vistas55 diapositivas
Sprint 226 por
Sprint 226Sprint 226
Sprint 226ManageIQ
10 vistas18 diapositivas
Dapr Unleashed: Accelerating Microservice Development por
Dapr Unleashed: Accelerating Microservice DevelopmentDapr Unleashed: Accelerating Microservice Development
Dapr Unleashed: Accelerating Microservice DevelopmentMiroslav Janeski
12 vistas29 diapositivas

Último(20)

Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated... por TomHalpin9
Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...
Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...
TomHalpin96 vistas
Navigating container technology for enhanced security by Niklas Saari por Metosin Oy
Navigating container technology for enhanced security by Niklas SaariNavigating container technology for enhanced security by Niklas Saari
Navigating container technology for enhanced security by Niklas Saari
Metosin Oy14 vistas
Gen Apps on Google Cloud PaLM2 and Codey APIs in Action por Márton Kodok
Gen Apps on Google Cloud PaLM2 and Codey APIs in ActionGen Apps on Google Cloud PaLM2 and Codey APIs in Action
Gen Apps on Google Cloud PaLM2 and Codey APIs in Action
Márton Kodok15 vistas
Sprint 226 por ManageIQ
Sprint 226Sprint 226
Sprint 226
ManageIQ10 vistas
Dapr Unleashed: Accelerating Microservice Development por Miroslav Janeski
Dapr Unleashed: Accelerating Microservice DevelopmentDapr Unleashed: Accelerating Microservice Development
Dapr Unleashed: Accelerating Microservice Development
Miroslav Janeski12 vistas
Bootstrapping vs Venture Capital.pptx por Zeljko Svedic
Bootstrapping vs Venture Capital.pptxBootstrapping vs Venture Capital.pptx
Bootstrapping vs Venture Capital.pptx
Zeljko Svedic14 vistas
Airline Booking Software por SharmiMehta
Airline Booking SoftwareAirline Booking Software
Airline Booking Software
SharmiMehta7 vistas
AI and Ml presentation .pptx por FayazAli87
AI and Ml presentation .pptxAI and Ml presentation .pptx
AI and Ml presentation .pptx
FayazAli8713 vistas
Ports-and-Adapters Architecture for Embedded HMI por Burkhard Stubert
Ports-and-Adapters Architecture for Embedded HMIPorts-and-Adapters Architecture for Embedded HMI
Ports-and-Adapters Architecture for Embedded HMI
Burkhard Stubert26 vistas
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports por Ra'Fat Al-Msie'deen
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug ReportsBushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports
The Era of Large Language Models.pptx por AbdulVahedShaik
The Era of Large Language Models.pptxThe Era of Large Language Models.pptx
The Era of Large Language Models.pptx
AbdulVahedShaik7 vistas
20231129 - Platform @ localhost 2023 - Application-driven infrastructure with... por sparkfabrik
20231129 - Platform @ localhost 2023 - Application-driven infrastructure with...20231129 - Platform @ localhost 2023 - Application-driven infrastructure with...
20231129 - Platform @ localhost 2023 - Application-driven infrastructure with...
sparkfabrik8 vistas
Top-5-production-devconMunich-2023.pptx por Tier1 app
Top-5-production-devconMunich-2023.pptxTop-5-production-devconMunich-2023.pptx
Top-5-production-devconMunich-2023.pptx
Tier1 app8 vistas
FOSSLight Community Day 2023-11-30 por Shane Coughlan
FOSSLight Community Day 2023-11-30FOSSLight Community Day 2023-11-30
FOSSLight Community Day 2023-11-30
Shane Coughlan6 vistas
Myths and Facts About Hospice Care: Busting Common Misconceptions por Care Coordinations
Myths and Facts About Hospice Care: Busting Common MisconceptionsMyths and Facts About Hospice Care: Busting Common Misconceptions
Myths and Facts About Hospice Care: Busting Common Misconceptions
Fleet Management Software in India por Fleetable
Fleet Management Software in India Fleet Management Software in India
Fleet Management Software in India
Fleetable12 vistas
Team Transformation Tactics for Holistic Testing and Quality (Japan Symposium... por Lisi Hocke
Team Transformation Tactics for Holistic Testing and Quality (Japan Symposium...Team Transformation Tactics for Holistic Testing and Quality (Japan Symposium...
Team Transformation Tactics for Holistic Testing and Quality (Japan Symposium...
Lisi Hocke35 vistas
2023-November-Schneider Electric-Meetup-BCN Admin Group.pptx por animuscrm
2023-November-Schneider Electric-Meetup-BCN Admin Group.pptx2023-November-Schneider Electric-Meetup-BCN Admin Group.pptx
2023-November-Schneider Electric-Meetup-BCN Admin Group.pptx
animuscrm15 vistas

8 Database Paradigms

Notas del editor

  1. The first paradigm is Key-Value database. Most programming languages support a data structure called dictionary. Dictionaries are used to store a collection of key-value pairs. If you want to keep a similar data structure in a database, key-value database is a good candidate. They are easy to use. Data is stored in memory so they are perfect options for caching and queuing purposes. Both keys and values can be any data type, ranging from simple objects to complex compound ones. They are mainly scalable and partitionable and considered as a member of NoSQL family. Two popular options are Redis and Memcached in this group. They are not the best options to for permanent storage and are basically backed up with a persistent storage. Docker and cloud versions are also available.
  2. The second paradigm is Wide-column database. In key-value database, we noticed that values can be complex objects, so if we expand the properties of an object into multiple columns, we can understand the idea behind the wide-column paradigm. Each row includes a key and multiple columns, number of columns can be different in each row. Values are schema free. Because data is stored in columns, queries for a particular value in a column are very fast, as the entire column can be loaded and searched quickly. They are not the best options to for permanent storage and are basically backed up with a persistent storage. Docker and cloud versions are also available.
  3. Third paradigm is relational database. A relational database organizes data in predefined relationships where data is stored in one or more tables. Each table consists of rows and columns. Joining tables are defined based on Primary and Foreign keys. Here we have two tables, the top one holds users information and the other one holds programming languages that each of users knows. They are schema based and basically used for disconnected but related data. They are ACID compliant which ensures that a database transaction is completed in a timely manner. They support replication and sharding but generally they are not very good at scaling. They are classified under SQL family. SQL Server, Oracle, MySQL and PostgreSQL are the most famous relational databases and their Docker and cloud versions are also available.
  4. Forth paradigm is document oriented database. In this paradigm we have documents where each document is a container for key-value pairs. They are unstructured and don’t require a schema. A collection can be indexed and can be organized into a logical hierarchy, allowing us to model and retrieve relational data to a pretty significant degree. Data is stored in either JSON text format or BSON binary format.
  5. The fifth paradigm is Graph database. In a relation database we have tables and relationships. What if we treat the relationship itself as data? This is the main idea behind graph databases. Basically, there are some nodes and multiple edges or relationships between them. As you may notice it’s very easy to define many to many relationships. The most common use case of graph database can be seen in social media platforms and recommendation systems. We can query data with statements that are much more human readable by using languages like Apache Gremlin. We can also expect much better performance in large datasets. Popular options in this space include Neo4J and Dgraph. Docker and cloud versions are also available.
  6. No. 7Multi Model databases.  If we upload our graph QL schema into fauna, it automatically creates collections where we can store data in an index to query the data behind the scenes, it’s figuring out how to take advantage of multiple database paradigms like a graph, relational and document, and determining how to best use these paradigms based on the graph QL code you provided.
  7. The sixth paradigm is full-text search database. Imagine we want to create a search engine like Google to store huge amount of data. In this scenario we need a full-text engine which analyzes all the texts and generates complex indexes of searchable terms behind the scene. When a user searches for a keyword or a phrase, the engine scans the indexes and returns the most relevant results. They are very similar to document oriented to document oriented databases and support complex text analysis and indexing on the top of that. They are highly scalable and classified under NoSQL family. They are mostly designed based on Apache Lucene project and some of the famous ones are Elastic and Solr. Docker and cloud versions of them are also available.
  8. No. 8 – Time Series databases.
  9. No. 8 – Time Series databases.