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
Stratos Gounidellis
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
Stratos Gounidellis
BDSMasters

More Related Content

PPTX
3. Stack - Data Structures using C++ by Varsha Patil
PDF
Lecture 07 Data Structures - Basic Sorting
PPTX
5. Queue - Data Structures using C++ by Varsha Patil
PPTX
9. Searching & Sorting - Data Structures using C++ by Varsha Patil
PPTX
6. Linked list - Data Structures using C++ by Varsha Patil
PPTX
15. STL - Data Structures using C++ by Varsha Patil
PPTX
11. Hashing - Data Structures using C++ by Varsha Patil
PPTX
1. Fundamental Concept - Data Structures using C++ by Varsha Patil
3. Stack - Data Structures using C++ by Varsha Patil
Lecture 07 Data Structures - Basic Sorting
5. Queue - Data Structures using C++ by Varsha Patil
9. Searching & Sorting - Data Structures using C++ by Varsha Patil
6. Linked list - Data Structures using C++ by Varsha Patil
15. STL - Data Structures using C++ by Varsha Patil
11. Hashing - Data Structures using C++ by Varsha Patil
1. Fundamental Concept - Data Structures using C++ by Varsha Patil

What's hot (20)

PPTX
14. Files - Data Structures using C++ by Varsha Patil
PPTX
10. Search Tree - Data Structures using C++ by Varsha Patil
PPTX
12. Heaps - Data Structures using C++ by Varsha Patil
PPTX
13. Indexing MTrees - Data Structures using C++ by Varsha Patil
PDF
Lecture10 ie321 dr_atifshahzad
PPT
PPTX
7. Tree - Data Structures using C++ by Varsha Patil
PDF
Henning agt talk-caise-semnet
PPTX
R data-structures-3
PDF
Robust Real-Time Synchronization between Textual and Graphical Editors
PPTX
R Data Structures (Part 1)
PPTX
R data structures-2
PPTX
SQL Performance Tuning
PPTX
ChemExtractor: Enhanced Rule-Based Capture and Identification of PDF Based Pr...
PPTX
Moving Data to and From R
PDF
Datastructureitstypes
PPTX
DBMS (oracle 9i SQL) Introduction
PDF
T-SQL Data Types (Quick Overview)
PPTX
Presentation on Data Structure
14. Files - Data Structures using C++ by Varsha Patil
10. Search Tree - Data Structures using C++ by Varsha Patil
12. Heaps - Data Structures using C++ by Varsha Patil
13. Indexing MTrees - Data Structures using C++ by Varsha Patil
Lecture10 ie321 dr_atifshahzad
7. Tree - Data Structures using C++ by Varsha Patil
Henning agt talk-caise-semnet
R data-structures-3
Robust Real-Time Synchronization between Textual and Graphical Editors
R Data Structures (Part 1)
R data structures-2
SQL Performance Tuning
ChemExtractor: Enhanced Rule-Based Capture and Identification of PDF Based Pr...
Moving Data to and From R
Datastructureitstypes
DBMS (oracle 9i SQL) Introduction
T-SQL Data Types (Quick Overview)
Presentation on Data Structure
Ad

Similar to Redis project : Relational Databases to Key-Value systems (20)

PDF
Redis Project: Relational databases & Key-Value systems
PDF
MIS5101 WK10 Outcome Measures
PPT
The Smartpath Information Systems | BASIC RDBMS CONCEPTS
PPT
Introduction to database fundamentalshdj
PDF
Lecture16 ie321 dr_atifshahzad_css
PPTX
Quick Revision on DATA BASE MANAGEMENT SYSTEMS concepts.pptx
PPTX
Rdms-Relational Database Management System
PPTX
HPD SQL Training - Beginner - 20220916.pptx
PPTX
Mining Code Examples with Descriptive Text from Software Artifacts
PPT
ch02-240507064009-ac337bf1 .ppt
PPT
QPOfutyfurfugfuyttruft7rfu65rfuyt PPT - Copy.ppt
PPT
MYSQL.ppt
PPT
PHP - Getting good with MySQL part I
PDF
Introduction to the Structured Query Language SQL
PPT
Query optimization and processing for advanced database systems
PPTX
Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)
PPT
Introduction to Oracle
PPT
Introduction to Oracle
PPT
Module02
PPT
Dbms relational model
Redis Project: Relational databases & Key-Value systems
MIS5101 WK10 Outcome Measures
The Smartpath Information Systems | BASIC RDBMS CONCEPTS
Introduction to database fundamentalshdj
Lecture16 ie321 dr_atifshahzad_css
Quick Revision on DATA BASE MANAGEMENT SYSTEMS concepts.pptx
Rdms-Relational Database Management System
HPD SQL Training - Beginner - 20220916.pptx
Mining Code Examples with Descriptive Text from Software Artifacts
ch02-240507064009-ac337bf1 .ppt
QPOfutyfurfugfuyttruft7rfu65rfuyt PPT - Copy.ppt
MYSQL.ppt
PHP - Getting good with MySQL part I
Introduction to the Structured Query Language SQL
Query optimization and processing for advanced database systems
Get up to Speed (Quick Guide to data.table in R and Pentaho PDI)
Introduction to Oracle
Introduction to Oracle
Module02
Dbms relational model
Ad

Recently uploaded (20)

PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PDF
.pdf is not working space design for the following data for the following dat...
PDF
Business Analytics and business intelligence.pdf
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
IB Computer Science - Internal Assessment.pptx
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PDF
Mega Projects Data Mega Projects Data
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
Computer network topology notes for revision
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PDF
Lecture1 pattern recognition............
PPTX
Supervised vs unsupervised machine learning algorithms
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
Miokarditis (Inflamasi pada Otot Jantung)
.pdf is not working space design for the following data for the following dat...
Business Analytics and business intelligence.pdf
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
IB Computer Science - Internal Assessment.pptx
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Business Ppt On Nestle.pptx huunnnhhgfvu
Qualitative Qantitative and Mixed Methods.pptx
Mega Projects Data Mega Projects Data
Data_Analytics_and_PowerBI_Presentation.pptx
Clinical guidelines as a resource for EBP(1).pdf
Computer network topology notes for revision
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Lecture1 pattern recognition............
Supervised vs unsupervised machine learning algorithms
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
climate analysis of Dhaka ,Banglades.pptx
Acceptance and paychological effects of mandatory extra coach I classes.pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx

Redis project : Relational Databases to 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 Stratos Gounidellis 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 Stratos Gounidellis BDSMasters