SlideShare a Scribd company logo
1 of 26
A Common Database
Approach for OLTP and OLAP
Using an In-Memory Column
Database
By Hasso Plattner
Presenter : Ishara Amarasekera
Outline
 Introduction
 OLTP and OLAP Systems
 Motivation
 Experiment and Benefits of Column Database
 Data Organization
 Memory Consumption
 Contribution to Development of Software
1
Introduction
 Relational database systems was the backbone for 20
years.
 OLTP and OLAP are based on the relational but use
different technical approaches.
2
OLTP
 Designed the database structures to cope with the
more complex business requirements.
 Need to focus on the transactional processing.
 Tuples are arranged in rows, which are stored in
blocks.
 The blocks reside on disk and are cached in main
memory in the database server.
 Sophisticated indexing allows fast access to single
tuples.
3
4
OLTP
OLAP
 Designed to perform the analytical and financial
planning
 Provides more flexibility and better performance.
 OLAP schema is a list of cubes that are grouped
together so that one or more SAS OLAP Servers can
access them.
 For OLAP systems, in contrast, data is often organized
in star schemas, where a popular optimization is to
compress attributes (columns) with the help of
dictionaries.
5
Multi- Dimensional Cubes and Start
Schema
6
Motivation
 OLTP and OLAP, are based on the relational theory but
using different technical approaches.
 It is desirable to have OLTP and OLAP capabilities in
one system to make components more valuable to the
users.
 The use of column store data- bases for analytics has
become quite popular.
 Dictionary compression on the database level and
reading only those columns necessary to process a
query speed up query processing significantly in the
column store case.
7
 Full Table Scan for table with
 160 columns and 34 million tuples.
 1 million tuples ~ 1GB of memory.
 34 million tuples ~ 35GB of memory.
 Column Store DB equivalent table size is 8GB.
8
Experiment
 In real applications, the only 10% of the attributes in a
single table is used in 1 SQL statement.
 For column store at most
800MB of data has to be
accessed to calculate the
total value.
Experiment
9
A comparison of row and column store
database
Lowercase database
with horizontal
compression can not
compete with CVs, if
the treatment is
based on sample,
and requires access
to the columns
(columnar
operations)
10
Why Use Colum Store?
Enterprise Computing based on set processing not single
tuple access
11
Performance Gain
The Benefit of Column Store
Database
 Processing samples and not access to a particular
tuple
 Operations on tuples, using compression format
integers
 Parallel processing
 View one or more columns very well parallelized
 Restriction: recommended to use as much as possible
less than projections
13
Parallel Processing
 Calculations at the level of tuples automatically
parallelized and completely independent of each other
 Modern processors can handle 1MB in msec, and
parallel processing by 16 cores -more than 10Mb in
ms.
For example, take a measurement, compressed in 4b, We can scan 2.5m tuples 1
ms. At this rate we do not even need to create an index based on the primary key.
13
CLAIMS
Column store is suited for
UPDATE- INTENSIVE
applications
14
Updates in Column Store Database
 Adoption: Column Store DB suitable for UPDATE-
intensive application
 In memory greatly improves situation, because it is
working with RAM where faster, but nevertheless some
problems remain.
15
Update Categories
 From the history tables SAP, it was found that update is
divided into 3 categories
 Aggregate update: The attributes are accumulated
values as part of materialized views (between 1 and 5
for each accounting line item)
 Status update: Binary change of a status variable,
typically with timestamps
 Value update: The value of an attribute changes by
replacement
16
Aggregate Update
 Units - is the result of some analytical query (profit
quarter)
 In column database in memory turned more convenient
to compute units "on the fly", and do not store units
already established
 Do not take up too much space
 With modern facilities of this occurs quickly
17
A plot of the time of receipt of the total
unit the number of tuples
18
Status Update
 Status variables (e.g., paid, not paid) are usually one of
a number of possible values, so that problems with
their updating should not arise because the data
volume is not changed
19
Value Update
 Insert-Only - a good approach Because it is an average
of only 5% of tuples varies within t
20
Insert-Only
 Insert Only - Stores the "history" of the database.
 It is an approach where there is little or no queries type
Update, and only Insert. Thus, instead of some added,
Update new tuple with a new time stamp.
 Allows horizontal divide the table: it means that new
records stored in fast memory and older who attribute
"transaction date" is very old in the store less fast
memory (somewhere far away).
21
Data Organization
 To build a combined system with OLTP and OLAP, data
should be organized based on the,
Frequent sampling of the set of tuples
Fast INSERT
Maximum parallelization (read)
Low cost (in time) of reorganization (at update and
insert)
22
Memory Consumption
 Comparing the memory consumption of row and
column-DB winnings columnar obvious due best
compression algorithms.
 Different analyzes of real data showed that:
The database allows the speaker to compress 20
times
The progressive only 2 times the average
23
Contribution Development of
Software
 If we rewrite the current applications that will use a
columnar DBMS instead of line, then
Plan to reduce the amount of code to work with Data
for 30-50%
Many parts can be completely restructured, taking
into account all index nature lowercase bd
Also desirable rare use projections
24
Thank You

More Related Content

What's hot

Configure Golden Gate Initial Load and Change Sync
Configure Golden Gate Initial Load and Change SyncConfigure Golden Gate Initial Load and Change Sync
Configure Golden Gate Initial Load and Change SyncArun Sharma
 
Oracle 10g to 11g upgrade on sap(10.2.0.5.0 to 11.2.0.3)
Oracle 10g to 11g upgrade on sap(10.2.0.5.0 to 11.2.0.3)Oracle 10g to 11g upgrade on sap(10.2.0.5.0 to 11.2.0.3)
Oracle 10g to 11g upgrade on sap(10.2.0.5.0 to 11.2.0.3)yoonus ch
 
Python Decision Making And Loops.pdf
Python Decision Making And Loops.pdfPython Decision Making And Loops.pdf
Python Decision Making And Loops.pdfNehaSpillai1
 
11 Unit 1 Problem Solving Techniques
11  Unit 1 Problem Solving Techniques11  Unit 1 Problem Solving Techniques
11 Unit 1 Problem Solving TechniquesPraveen M Jigajinni
 
Chapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choicesChapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choicesMaynooth University
 
Operating system - Process and its concepts
Operating system - Process and its conceptsOperating system - Process and its concepts
Operating system - Process and its conceptsKaran Thakkar
 
Complete dbms notes
Complete dbms notesComplete dbms notes
Complete dbms notesTanya Makkar
 
Lock based protocols
Lock based protocolsLock based protocols
Lock based protocolsChethanMp7
 
Data structures and algorithms made easy
Data structures and algorithms made easyData structures and algorithms made easy
Data structures and algorithms made easyCareerMonk Publications
 
Process management os concept
Process management os conceptProcess management os concept
Process management os conceptpriyadeosarkar91
 
Address mapping
Address mappingAddress mapping
Address mappingrockymani
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure pptNalinNishant3
 
Oracle GoldenGate Microservices Overview ( with Demo )
Oracle GoldenGate Microservices Overview ( with Demo )Oracle GoldenGate Microservices Overview ( with Demo )
Oracle GoldenGate Microservices Overview ( with Demo )Mari Kupatadze
 
Operating system 37 demand paging
Operating system 37 demand pagingOperating system 37 demand paging
Operating system 37 demand pagingVaibhav Khanna
 
Database user and administrator.pptx
Database user and administrator.pptxDatabase user and administrator.pptx
Database user and administrator.pptxAnusha sivakumar
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memoryPrakharBansal29
 
Computer organization and architecture.pptx
Computer organization and architecture.pptxComputer organization and architecture.pptx
Computer organization and architecture.pptxDIPTONILRAKSHIT
 

What's hot (20)

Configure Golden Gate Initial Load and Change Sync
Configure Golden Gate Initial Load and Change SyncConfigure Golden Gate Initial Load and Change Sync
Configure Golden Gate Initial Load and Change Sync
 
Oracle 10g to 11g upgrade on sap(10.2.0.5.0 to 11.2.0.3)
Oracle 10g to 11g upgrade on sap(10.2.0.5.0 to 11.2.0.3)Oracle 10g to 11g upgrade on sap(10.2.0.5.0 to 11.2.0.3)
Oracle 10g to 11g upgrade on sap(10.2.0.5.0 to 11.2.0.3)
 
cache memory
cache memorycache memory
cache memory
 
Python Decision Making And Loops.pdf
Python Decision Making And Loops.pdfPython Decision Making And Loops.pdf
Python Decision Making And Loops.pdf
 
11 Unit 1 Problem Solving Techniques
11  Unit 1 Problem Solving Techniques11  Unit 1 Problem Solving Techniques
11 Unit 1 Problem Solving Techniques
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 
Chapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choicesChapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choices
 
Operating system - Process and its concepts
Operating system - Process and its conceptsOperating system - Process and its concepts
Operating system - Process and its concepts
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Complete dbms notes
Complete dbms notesComplete dbms notes
Complete dbms notes
 
Lock based protocols
Lock based protocolsLock based protocols
Lock based protocols
 
Data structures and algorithms made easy
Data structures and algorithms made easyData structures and algorithms made easy
Data structures and algorithms made easy
 
Process management os concept
Process management os conceptProcess management os concept
Process management os concept
 
Address mapping
Address mappingAddress mapping
Address mapping
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure ppt
 
Oracle GoldenGate Microservices Overview ( with Demo )
Oracle GoldenGate Microservices Overview ( with Demo )Oracle GoldenGate Microservices Overview ( with Demo )
Oracle GoldenGate Microservices Overview ( with Demo )
 
Operating system 37 demand paging
Operating system 37 demand pagingOperating system 37 demand paging
Operating system 37 demand paging
 
Database user and administrator.pptx
Database user and administrator.pptxDatabase user and administrator.pptx
Database user and administrator.pptx
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memory
 
Computer organization and architecture.pptx
Computer organization and architecture.pptxComputer organization and architecture.pptx
Computer organization and architecture.pptx
 

Viewers also liked

iOS Contact List Application Tutorial
iOS Contact List Application TutorialiOS Contact List Application Tutorial
iOS Contact List Application TutorialIshara Amarasekera
 
Data Mart de una área de compras
Data Mart de una área de comprasData Mart de una área de compras
Data Mart de una área de comprasroy_vs
 
Learning to automatically solve algebra word problems
Learning to automatically solve algebra word problemsLearning to automatically solve algebra word problems
Learning to automatically solve algebra word problemsNaoaki Okazaki
 
OLAP – Creating Cubes with SQL Server Analysis Services
OLAP – Creating Cubes with SQL Server Analysis ServicesOLAP – Creating Cubes with SQL Server Analysis Services
OLAP – Creating Cubes with SQL Server Analysis ServicesPeter Gfader
 
DATA MART APPROCHES TO ARCHITECTURE
DATA MART APPROCHES TO ARCHITECTUREDATA MART APPROCHES TO ARCHITECTURE
DATA MART APPROCHES TO ARCHITECTURESachin Batham
 
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction Mark Ginnebaugh
 
data warehouse , data mart, etl
data warehouse , data mart, etldata warehouse , data mart, etl
data warehouse , data mart, etlAashish Rathod
 
Using the right data model in a data mart
Using the right data model in a data martUsing the right data model in a data mart
Using the right data model in a data martDavid Walker
 
Introduction to Datawarehousing
Introduction to  DatawarehousingIntroduction to  Datawarehousing
Introduction to Datawarehousingkarunakar81987
 
OLAP & DATA WAREHOUSE
OLAP & DATA WAREHOUSEOLAP & DATA WAREHOUSE
OLAP & DATA WAREHOUSEZalpa Rathod
 

Viewers also liked (17)

Oltp vs olap
Oltp vs olapOltp vs olap
Oltp vs olap
 
OLTP vs OLAP
OLTP vs OLAPOLTP vs OLAP
OLTP vs OLAP
 
iOS Contact List Application Tutorial
iOS Contact List Application TutorialiOS Contact List Application Tutorial
iOS Contact List Application Tutorial
 
Data Mart de una área de compras
Data Mart de una área de comprasData Mart de una área de compras
Data Mart de una área de compras
 
Learning to automatically solve algebra word problems
Learning to automatically solve algebra word problemsLearning to automatically solve algebra word problems
Learning to automatically solve algebra word problems
 
OLAP – Creating Cubes with SQL Server Analysis Services
OLAP – Creating Cubes with SQL Server Analysis ServicesOLAP – Creating Cubes with SQL Server Analysis Services
OLAP – Creating Cubes with SQL Server Analysis Services
 
DATA MART APPROCHES TO ARCHITECTURE
DATA MART APPROCHES TO ARCHITECTUREDATA MART APPROCHES TO ARCHITECTURE
DATA MART APPROCHES TO ARCHITECTURE
 
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
 
data warehouse , data mart, etl
data warehouse , data mart, etldata warehouse , data mart, etl
data warehouse , data mart, etl
 
Using the right data model in a data mart
Using the right data model in a data martUsing the right data model in a data mart
Using the right data model in a data mart
 
Data mart
Data martData mart
Data mart
 
OLAP
OLAPOLAP
OLAP
 
OLAP
OLAPOLAP
OLAP
 
Introduction to Datawarehousing
Introduction to  DatawarehousingIntroduction to  Datawarehousing
Introduction to Datawarehousing
 
Data mart
Data martData mart
Data mart
 
OLAP & DATA WAREHOUSE
OLAP & DATA WAREHOUSEOLAP & DATA WAREHOUSE
OLAP & DATA WAREHOUSE
 
Data mart
Data martData mart
Data mart
 

Similar to A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database

SAP HANA Interview questions
SAP HANA Interview questionsSAP HANA Interview questions
SAP HANA Interview questionsIT LearnMore
 
Mapping Data Flows Perf Tuning April 2021
Mapping Data Flows Perf Tuning April 2021Mapping Data Flows Perf Tuning April 2021
Mapping Data Flows Perf Tuning April 2021Mark Kromer
 
Ssis optimization –better designs
Ssis optimization –better designsSsis optimization –better designs
Ssis optimization –better designsvarunragul
 
Azure Data Factory Data Flow Performance Tuning 101
Azure Data Factory Data Flow Performance Tuning 101Azure Data Factory Data Flow Performance Tuning 101
Azure Data Factory Data Flow Performance Tuning 101Mark Kromer
 
Harnessing the power of both worlds
Harnessing the power of both worldsHarnessing the power of both worlds
Harnessing the power of both worldsKaran Gulati
 
SAP HANA Online Training/ SAP HANA Interview Questions
SAP HANA Online Training/ SAP HANA Interview QuestionsSAP HANA Online Training/ SAP HANA Interview Questions
SAP HANA Online Training/ SAP HANA Interview QuestionsGlobustrainings
 
Business Insight 2014 - Microsofts nye BI og database platform - Erling Skaal...
Business Insight 2014 - Microsofts nye BI og database platform - Erling Skaal...Business Insight 2014 - Microsofts nye BI og database platform - Erling Skaal...
Business Insight 2014 - Microsofts nye BI og database platform - Erling Skaal...Microsoft
 
Tuning Apache Phoenix/HBase
Tuning Apache Phoenix/HBaseTuning Apache Phoenix/HBase
Tuning Apache Phoenix/HBaseAnil Gupta
 
Oracle12c Database in-memory Data Sheet
Oracle12c Database in-memory Data SheetOracle12c Database in-memory Data Sheet
Oracle12c Database in-memory Data SheetOracle
 
Oracle DB In-Memory technologie v kombinaci s procesorem M7
Oracle DB In-Memory technologie v kombinaci s procesorem M7Oracle DB In-Memory technologie v kombinaci s procesorem M7
Oracle DB In-Memory technologie v kombinaci s procesorem M7MarketingArrowECS_CZ
 
Data ware house architecture
Data ware house architectureData ware house architecture
Data ware house architectureDeepak Chaurasia
 
How to Cost-Optimize Cloud Data Pipelines_.pptx
How to Cost-Optimize Cloud Data Pipelines_.pptxHow to Cost-Optimize Cloud Data Pipelines_.pptx
How to Cost-Optimize Cloud Data Pipelines_.pptxSadeka Islam
 
Real-Time Data Warehouse Loading Methodology Ricardo Jorge S.docx
Real-Time Data Warehouse Loading Methodology Ricardo Jorge S.docxReal-Time Data Warehouse Loading Methodology Ricardo Jorge S.docx
Real-Time Data Warehouse Loading Methodology Ricardo Jorge S.docxsodhi3
 
The thinking persons guide to data warehouse design
The thinking persons guide to data warehouse designThe thinking persons guide to data warehouse design
The thinking persons guide to data warehouse designCalpont
 

Similar to A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database (20)

SAP HANA Interview questions
SAP HANA Interview questionsSAP HANA Interview questions
SAP HANA Interview questions
 
Mapping Data Flows Perf Tuning April 2021
Mapping Data Flows Perf Tuning April 2021Mapping Data Flows Perf Tuning April 2021
Mapping Data Flows Perf Tuning April 2021
 
Column oriented Transactions
Column oriented TransactionsColumn oriented Transactions
Column oriented Transactions
 
Ssis optimization –better designs
Ssis optimization –better designsSsis optimization –better designs
Ssis optimization –better designs
 
Azure Data Factory Data Flow Performance Tuning 101
Azure Data Factory Data Flow Performance Tuning 101Azure Data Factory Data Flow Performance Tuning 101
Azure Data Factory Data Flow Performance Tuning 101
 
Dwh faqs
Dwh faqsDwh faqs
Dwh faqs
 
Harnessing the power of both worlds
Harnessing the power of both worldsHarnessing the power of both worlds
Harnessing the power of both worlds
 
SAP HANA Online Training/ SAP HANA Interview Questions
SAP HANA Online Training/ SAP HANA Interview QuestionsSAP HANA Online Training/ SAP HANA Interview Questions
SAP HANA Online Training/ SAP HANA Interview Questions
 
Business Insight 2014 - Microsofts nye BI og database platform - Erling Skaal...
Business Insight 2014 - Microsofts nye BI og database platform - Erling Skaal...Business Insight 2014 - Microsofts nye BI og database platform - Erling Skaal...
Business Insight 2014 - Microsofts nye BI og database platform - Erling Skaal...
 
Tuning Apache Phoenix/HBase
Tuning Apache Phoenix/HBaseTuning Apache Phoenix/HBase
Tuning Apache Phoenix/HBase
 
Oracle12c Database in-memory Data Sheet
Oracle12c Database in-memory Data SheetOracle12c Database in-memory Data Sheet
Oracle12c Database in-memory Data Sheet
 
Oracle DB In-Memory technologie v kombinaci s procesorem M7
Oracle DB In-Memory technologie v kombinaci s procesorem M7Oracle DB In-Memory technologie v kombinaci s procesorem M7
Oracle DB In-Memory technologie v kombinaci s procesorem M7
 
Data ware house architecture
Data ware house architectureData ware house architecture
Data ware house architecture
 
How to Cost-Optimize Cloud Data Pipelines_.pptx
How to Cost-Optimize Cloud Data Pipelines_.pptxHow to Cost-Optimize Cloud Data Pipelines_.pptx
How to Cost-Optimize Cloud Data Pipelines_.pptx
 
Real-Time Data Warehouse Loading Methodology Ricardo Jorge S.docx
Real-Time Data Warehouse Loading Methodology Ricardo Jorge S.docxReal-Time Data Warehouse Loading Methodology Ricardo Jorge S.docx
Real-Time Data Warehouse Loading Methodology Ricardo Jorge S.docx
 
The thinking persons guide to data warehouse design
The thinking persons guide to data warehouse designThe thinking persons guide to data warehouse design
The thinking persons guide to data warehouse design
 
Optimize TempDB
Optimize TempDB Optimize TempDB
Optimize TempDB
 
OLAP v/s OLTP
OLAP v/s OLTPOLAP v/s OLTP
OLAP v/s OLTP
 
Lecture3.ppt
Lecture3.pptLecture3.ppt
Lecture3.ppt
 
11g R2
11g R211g R2
11g R2
 

More from Ishara Amarasekera

Key Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery RoadmapKey Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery RoadmapIshara Amarasekera
 
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptxUI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptxIshara Amarasekera
 
How to write a simple java program in 10 steps
How to write a simple java program in 10 stepsHow to write a simple java program in 10 steps
How to write a simple java program in 10 stepsIshara Amarasekera
 
Model-Driven Testing with UML 2.0
Model-Driven Testing with UML 2.0Model-Driven Testing with UML 2.0
Model-Driven Testing with UML 2.0Ishara Amarasekera
 
Activity Recognition using Cell Phone Accelerometers
Activity Recognition using Cell Phone AccelerometersActivity Recognition using Cell Phone Accelerometers
Activity Recognition using Cell Phone AccelerometersIshara Amarasekera
 
Layered programatical api framework for real time mobile social network
Layered programatical api framework for real time mobile social networkLayered programatical api framework for real time mobile social network
Layered programatical api framework for real time mobile social networkIshara Amarasekera
 
Goal-Oriented Requirements Engineering: A Guided Tour
Goal-Oriented Requirements Engineering: A Guided TourGoal-Oriented Requirements Engineering: A Guided Tour
Goal-Oriented Requirements Engineering: A Guided TourIshara Amarasekera
 
Feedback Queueing Models for Time Shared Systems
Feedback Queueing Models for Time Shared SystemsFeedback Queueing Models for Time Shared Systems
Feedback Queueing Models for Time Shared SystemsIshara Amarasekera
 

More from Ishara Amarasekera (8)

Key Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery RoadmapKey Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery Roadmap
 
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptxUI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
 
How to write a simple java program in 10 steps
How to write a simple java program in 10 stepsHow to write a simple java program in 10 steps
How to write a simple java program in 10 steps
 
Model-Driven Testing with UML 2.0
Model-Driven Testing with UML 2.0Model-Driven Testing with UML 2.0
Model-Driven Testing with UML 2.0
 
Activity Recognition using Cell Phone Accelerometers
Activity Recognition using Cell Phone AccelerometersActivity Recognition using Cell Phone Accelerometers
Activity Recognition using Cell Phone Accelerometers
 
Layered programatical api framework for real time mobile social network
Layered programatical api framework for real time mobile social networkLayered programatical api framework for real time mobile social network
Layered programatical api framework for real time mobile social network
 
Goal-Oriented Requirements Engineering: A Guided Tour
Goal-Oriented Requirements Engineering: A Guided TourGoal-Oriented Requirements Engineering: A Guided Tour
Goal-Oriented Requirements Engineering: A Guided Tour
 
Feedback Queueing Models for Time Shared Systems
Feedback Queueing Models for Time Shared SystemsFeedback Queueing Models for Time Shared Systems
Feedback Queueing Models for Time Shared Systems
 

Recently uploaded

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 

Recently uploaded (20)

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 

A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database

  • 1. A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database By Hasso Plattner Presenter : Ishara Amarasekera
  • 2. Outline  Introduction  OLTP and OLAP Systems  Motivation  Experiment and Benefits of Column Database  Data Organization  Memory Consumption  Contribution to Development of Software 1
  • 3. Introduction  Relational database systems was the backbone for 20 years.  OLTP and OLAP are based on the relational but use different technical approaches. 2
  • 4. OLTP  Designed the database structures to cope with the more complex business requirements.  Need to focus on the transactional processing.  Tuples are arranged in rows, which are stored in blocks.  The blocks reside on disk and are cached in main memory in the database server.  Sophisticated indexing allows fast access to single tuples. 3
  • 6. OLAP  Designed to perform the analytical and financial planning  Provides more flexibility and better performance.  OLAP schema is a list of cubes that are grouped together so that one or more SAS OLAP Servers can access them.  For OLAP systems, in contrast, data is often organized in star schemas, where a popular optimization is to compress attributes (columns) with the help of dictionaries. 5
  • 7. Multi- Dimensional Cubes and Start Schema 6
  • 8. Motivation  OLTP and OLAP, are based on the relational theory but using different technical approaches.  It is desirable to have OLTP and OLAP capabilities in one system to make components more valuable to the users.  The use of column store data- bases for analytics has become quite popular.  Dictionary compression on the database level and reading only those columns necessary to process a query speed up query processing significantly in the column store case. 7
  • 9.  Full Table Scan for table with  160 columns and 34 million tuples.  1 million tuples ~ 1GB of memory.  34 million tuples ~ 35GB of memory.  Column Store DB equivalent table size is 8GB. 8 Experiment
  • 10.  In real applications, the only 10% of the attributes in a single table is used in 1 SQL statement.  For column store at most 800MB of data has to be accessed to calculate the total value. Experiment 9
  • 11. A comparison of row and column store database Lowercase database with horizontal compression can not compete with CVs, if the treatment is based on sample, and requires access to the columns (columnar operations) 10
  • 12. Why Use Colum Store? Enterprise Computing based on set processing not single tuple access 11 Performance Gain
  • 13. The Benefit of Column Store Database  Processing samples and not access to a particular tuple  Operations on tuples, using compression format integers  Parallel processing  View one or more columns very well parallelized  Restriction: recommended to use as much as possible less than projections 13
  • 14. Parallel Processing  Calculations at the level of tuples automatically parallelized and completely independent of each other  Modern processors can handle 1MB in msec, and parallel processing by 16 cores -more than 10Mb in ms. For example, take a measurement, compressed in 4b, We can scan 2.5m tuples 1 ms. At this rate we do not even need to create an index based on the primary key. 13
  • 15. CLAIMS Column store is suited for UPDATE- INTENSIVE applications 14
  • 16. Updates in Column Store Database  Adoption: Column Store DB suitable for UPDATE- intensive application  In memory greatly improves situation, because it is working with RAM where faster, but nevertheless some problems remain. 15
  • 17. Update Categories  From the history tables SAP, it was found that update is divided into 3 categories  Aggregate update: The attributes are accumulated values as part of materialized views (between 1 and 5 for each accounting line item)  Status update: Binary change of a status variable, typically with timestamps  Value update: The value of an attribute changes by replacement 16
  • 18. Aggregate Update  Units - is the result of some analytical query (profit quarter)  In column database in memory turned more convenient to compute units "on the fly", and do not store units already established  Do not take up too much space  With modern facilities of this occurs quickly 17
  • 19. A plot of the time of receipt of the total unit the number of tuples 18
  • 20. Status Update  Status variables (e.g., paid, not paid) are usually one of a number of possible values, so that problems with their updating should not arise because the data volume is not changed 19
  • 21. Value Update  Insert-Only - a good approach Because it is an average of only 5% of tuples varies within t 20
  • 22. Insert-Only  Insert Only - Stores the "history" of the database.  It is an approach where there is little or no queries type Update, and only Insert. Thus, instead of some added, Update new tuple with a new time stamp.  Allows horizontal divide the table: it means that new records stored in fast memory and older who attribute "transaction date" is very old in the store less fast memory (somewhere far away). 21
  • 23. Data Organization  To build a combined system with OLTP and OLAP, data should be organized based on the, Frequent sampling of the set of tuples Fast INSERT Maximum parallelization (read) Low cost (in time) of reorganization (at update and insert) 22
  • 24. Memory Consumption  Comparing the memory consumption of row and column-DB winnings columnar obvious due best compression algorithms.  Different analyzes of real data showed that: The database allows the speaker to compress 20 times The progressive only 2 times the average 23
  • 25. Contribution Development of Software  If we rewrite the current applications that will use a columnar DBMS instead of line, then Plan to reduce the amount of code to work with Data for 30-50% Many parts can be completely restructured, taking into account all index nature lowercase bd Also desirable rare use projections 24