SlideShare a Scribd company logo
Redis Project
Relational databases & Key-Value systems
Athens University of Economics and Business
Dpt. Of Management Science and Technology
Prof. Damianos Chatziantoniou
| lkoutsokera@gmail.com
| stratos.gounidellis@gmail.com
Lamprini Koutsokera (8130074)
Stratos Gounidellis (8130029)
BDSMasters
SQL Server vs. Redis
2
Description Microsoft’s relational DBMS In-memory data structure store,
used as database
Database model Relational DBMS Key-value store
Implementation language C++ C
Data scheme yes schema-free
Triggers yes no
Replication methods yes, depending the SQL-Server Edition Master-slave replication
Partitioning methods tables can be distributed across Sharding
several files, sharding through
federation
Project
from a relational database to a key-value systemReferences: [1]
From theory to practice
3
Tools
4
Required installations
5
References: [2]
Redis installation
check if
Redis is
working
Required python packages installation
From software configuration to coding
6
Python coding [1] – table parsing
7
Relational Data Insertion
References: [3]
Python coding [1] – table parsing
Python coding [2] – query parsing
8
References: [3]
Python coding [3] – query parsing
9
Query Execution
References: [3]
Python coding [4] – query parsing
10
Query Execution
References: [3]
Python coding [5] – query parsing
11
Query Execution
References: [3]
12
Python coding [6] – query parsing
Query Execution
References: [3]
13
Python coding [7] – code metrics
Query Execution
Unit Testing
Relational Data Insertion
14
Assumptions - Restrictions
 The text file follows the structure described below:
o first line (SELECT): a list of table_name.attribute_name, delimited by the character ",".
o second line (FROM): a list of table names, delimited by the character ",".
o third line (WHERE): a simple condition, consisting only of AND, OR, NOT, =, <>, >, <, <=, >= and
parentheses.
o fourth line (ORDER BY): a simple clause, containing either an attribute name and the way of
ordering (ASC or DESC) or RAND().
o fifth line (LIMIT): a number, specifying the number of rows to be displayed.
 The ORDER BY clause contains only one attribute.
 The sql query is correct according to the sql syntax.
 The names of the tables and the attributes are correct.
 In case a clause is skipped then the corresponding line remains blank.
Query examples / results [1]
15
1 2
3
Query examples / results [2]
16
4
5
Query examples / results [3]
17
6 7
Style check, code analysis & unit testing
18
[1] pep8 [2] flake8 [3] pylint
References
[1] Db-engines.com. (n.d.). Memcached vs. Microsoft SQL Server vs. Redis Comparison. [online] Available at:
https://db-engines.com/en/system/Memcached%3bMicrosoft+SQL+Server%3bRedis [Accessed 13 Apr. 2017].
[2] Redis.io. Redis Quick Start. https://redis.io/topics/quickstart [Accessed 12 Apr. 2017].
[3] Peter Cooper. Redis 101 - A whirlwind tour of the next big thing in NoSQL data storage.
https://www.scribd.com/document/33531219/Redis-Presentation [Accessed 12 Apr. 2017].
| lkoutsokera@gmail.com
| stratos.gounidellis@gmail.com
Lamprini Koutsokera (8130074)
Stratos Gounidellis (8130029)
BDSMasters

More Related Content

PDF
mongoDB Project: Relational databases & Document-Oriented databases
PPS
Data Structure
PPTX
Introduction To R Language
PPT
R programming by ganesh kavhar
KEY
Presentation R basic teaching module
PDF
SQL: Query optimization in practice
PDF
R training3
PPTX
Step By Step Guide to Learn R
mongoDB Project: Relational databases & Document-Oriented databases
Data Structure
Introduction To R Language
R programming by ganesh kavhar
Presentation R basic teaching module
SQL: Query optimization in practice
R training3
Step By Step Guide to Learn R

What's hot (20)

PPTX
1. Fundamental Concept - Data Structures using C++ by Varsha Patil
PDF
3 R Tutorial Data Structure
PPTX
R language introduction
PPTX
R language
PPTX
3. Stack - Data Structures using C++ by Varsha Patil
PPTX
3. R- list and data frame
PPTX
9. Searching & Sorting - Data Structures using C++ by Varsha Patil
PDF
Redis project : Relational Databases to Key-Value systems
PDF
R programming & Machine Learning
PPT
Overview of query evaluation
PDF
8 query processing and optimization
PDF
RDataMining slides-r-programming
PPTX
5. Queue - Data Structures using C++ by Varsha Patil
PPTX
Datastructures using c++
PPTX
Query evaluation and optimization
PDF
Modern Database Systems - Lecture 02
PDF
R Introduction
PPTX
Hadoop in sigmod 2011
PPT
4.4 external hashing
PPTX
12. Heaps - Data Structures using C++ by Varsha Patil
1. Fundamental Concept - Data Structures using C++ by Varsha Patil
3 R Tutorial Data Structure
R language introduction
R language
3. Stack - Data Structures using C++ by Varsha Patil
3. R- list and data frame
9. Searching & Sorting - Data Structures using C++ by Varsha Patil
Redis project : Relational Databases to Key-Value systems
R programming & Machine Learning
Overview of query evaluation
8 query processing and optimization
RDataMining slides-r-programming
5. Queue - Data Structures using C++ by Varsha Patil
Datastructures using c++
Query evaluation and optimization
Modern Database Systems - Lecture 02
R Introduction
Hadoop in sigmod 2011
4.4 external hashing
12. Heaps - Data Structures using C++ by Varsha Patil
Ad

Similar to Redis Project: Relational databases & Key-Value systems (20)

PDF
MIS5101 WK10 Outcome Measures
PPT
The Smartpath Information Systems | BASIC RDBMS CONCEPTS
PPTX
Quick Revision on DATA BASE MANAGEMENT SYSTEMS concepts.pptx
PPT
Introduction to database fundamentalshdj
PPTX
HPD SQL Training - Beginner - 20220916.pptx
PPT
ch02-240507064009-ac337bf1 .ppt
PPT
QPOfutyfurfugfuyttruft7rfu65rfuyt PPT - Copy.ppt
PPTX
Rdms-Relational Database Management System
PPT
MYSQL.ppt
PDF
Lecture16 ie321 dr_atifshahzad_css
PPTX
Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)
PPT
Query optimization and processing for advanced database systems
PPT
Dbms relational model
PPT
Module02
PPTX
Introduction to SQl Commands.pptxhhjhvvb
PDF
Introduction to the Structured Query Language SQL
PPTX
Cassandra20141113
PDF
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
PPTX
Cassandra20141009
PPT
PHP - Getting good with MySQL part I
MIS5101 WK10 Outcome Measures
The Smartpath Information Systems | BASIC RDBMS CONCEPTS
Quick Revision on DATA BASE MANAGEMENT SYSTEMS concepts.pptx
Introduction to database fundamentalshdj
HPD SQL Training - Beginner - 20220916.pptx
ch02-240507064009-ac337bf1 .ppt
QPOfutyfurfugfuyttruft7rfu65rfuyt PPT - Copy.ppt
Rdms-Relational Database Management System
MYSQL.ppt
Lecture16 ie321 dr_atifshahzad_css
Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)
Query optimization and processing for advanced database systems
Dbms relational model
Module02
Introduction to SQl Commands.pptxhhjhvvb
Introduction to the Structured Query Language SQL
Cassandra20141113
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
Cassandra20141009
PHP - Getting good with MySQL part I
Ad

Recently uploaded (20)

PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
Mega Projects Data Mega Projects Data
PPT
Quality review (1)_presentation of this 21
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
Foundation of Data Science unit number two notes
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
Computer network topology notes for revision
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
IB Computer Science - Internal Assessment.pptx
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
Database Infoormation System (DBIS).pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PDF
Clinical guidelines as a resource for EBP(1).pdf
Business Ppt On Nestle.pptx huunnnhhgfvu
oil_refinery_comprehensive_20250804084928 (1).pptx
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Galatica Smart Energy Infrastructure Startup Pitch Deck
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Mega Projects Data Mega Projects Data
Quality review (1)_presentation of this 21
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Business Acumen Training GuidePresentation.pptx
climate analysis of Dhaka ,Banglades.pptx
Foundation of Data Science unit number two notes
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Computer network topology notes for revision
STUDY DESIGN details- Lt Col Maksud (21).pptx
IB Computer Science - Internal Assessment.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
Database Infoormation System (DBIS).pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Clinical guidelines as a resource for EBP(1).pdf

Redis Project: Relational databases & Key-Value systems

  • 1. Redis Project Relational databases & Key-Value systems Athens University of Economics and Business Dpt. Of Management Science and Technology Prof. Damianos Chatziantoniou | lkoutsokera@gmail.com | stratos.gounidellis@gmail.com Lamprini Koutsokera (8130074) Stratos Gounidellis (8130029) BDSMasters
  • 2. SQL Server vs. Redis 2 Description Microsoft’s relational DBMS In-memory data structure store, used as database Database model Relational DBMS Key-value store Implementation language C++ C Data scheme yes schema-free Triggers yes no Replication methods yes, depending the SQL-Server Edition Master-slave replication Partitioning methods tables can be distributed across Sharding several files, sharding through federation Project from a relational database to a key-value systemReferences: [1]
  • 3. From theory to practice 3
  • 5. Required installations 5 References: [2] Redis installation check if Redis is working Required python packages installation
  • 7. Python coding [1] – table parsing 7 Relational Data Insertion References: [3] Python coding [1] – table parsing
  • 8. Python coding [2] – query parsing 8 References: [3]
  • 9. Python coding [3] – query parsing 9 Query Execution References: [3]
  • 10. Python coding [4] – query parsing 10 Query Execution References: [3]
  • 11. Python coding [5] – query parsing 11 Query Execution References: [3]
  • 12. 12 Python coding [6] – query parsing Query Execution References: [3]
  • 13. 13 Python coding [7] – code metrics Query Execution Unit Testing Relational Data Insertion
  • 14. 14 Assumptions - Restrictions  The text file follows the structure described below: o first line (SELECT): a list of table_name.attribute_name, delimited by the character ",". o second line (FROM): a list of table names, delimited by the character ",". o third line (WHERE): a simple condition, consisting only of AND, OR, NOT, =, <>, >, <, <=, >= and parentheses. o fourth line (ORDER BY): a simple clause, containing either an attribute name and the way of ordering (ASC or DESC) or RAND(). o fifth line (LIMIT): a number, specifying the number of rows to be displayed.  The ORDER BY clause contains only one attribute.  The sql query is correct according to the sql syntax.  The names of the tables and the attributes are correct.  In case a clause is skipped then the corresponding line remains blank.
  • 15. Query examples / results [1] 15 1 2 3
  • 16. Query examples / results [2] 16 4 5
  • 17. Query examples / results [3] 17 6 7
  • 18. Style check, code analysis & unit testing 18 [1] pep8 [2] flake8 [3] pylint
  • 19. References [1] Db-engines.com. (n.d.). Memcached vs. Microsoft SQL Server vs. Redis Comparison. [online] Available at: https://db-engines.com/en/system/Memcached%3bMicrosoft+SQL+Server%3bRedis [Accessed 13 Apr. 2017]. [2] Redis.io. Redis Quick Start. https://redis.io/topics/quickstart [Accessed 12 Apr. 2017]. [3] Peter Cooper. Redis 101 - A whirlwind tour of the next big thing in NoSQL data storage. https://www.scribd.com/document/33531219/Redis-Presentation [Accessed 12 Apr. 2017]. | lkoutsokera@gmail.com | stratos.gounidellis@gmail.com Lamprini Koutsokera (8130074) Stratos Gounidellis (8130029) BDSMasters