SlideShare a Scribd company logo
Cache-Conscious Index Mechanism
      for Main-Memory Databases



                    Sun Limei

 Email:limeisun@126.com
 Shenyang Jianzhu University
Outline
 1. Introduction
 2. Related work
 3. Cache sensitive T-trees
 4. Experimental results
 5. Conclusions
Motivation
 The speed gap between CPU and
 memory
 Improve cache behavior in main
 memory data processing
Cache Conscious Indexing
 CSS-tree(Cache Sensitive Search-Tree)
 CSB+-tree(Cache Sensitive B+-Tree)
   Segmented CSB+-tree
   Full CSB+-tree
Disadvantage
 It is considered that the size of CSB+-tree’s node
 should be equal to that of basic transferring unit
 There is a large discrepancy between the size of
 cache line and disk page
   Cache line size:32B-128B(MMDB)
   Disk page size:4K-64K(DRDB)
 CSS-tree and CSB+-tree both increase the height
 of B+-tree
About Cache
 Parameters: capacity, line(block) size and
 accociativity.
 Memory reference: hit or miss
 Line size: the basic transferring unit between
 cache and memory.
Cache-Conscious Structure Definition
T-Tree’s Structure
  K’<K1<K2<….<Kn-1<Kn<K”
                                      parent ptr
                           bf
                 K1   K2    …...…   Kn-1   Kn



        bf                                      bf
         …...…        K’            K”             …...…




  Disadvantage: Only the minimum and the maximum
  keys are often used in comparison.
Cache Sensitive T-tree
  Decrease the node size and increase cache hit.
  No more space used because the middle key array
  is not needed all the time.
CST- Search
Input:root,value
Output:flag(if success flag=1,else flag=-1)
Algorithm:
1.    p=root;
2.    while (p!=NULL) {
3.        if (value<p’s minimum) p=p->LChild ; //search in p’s left subtree
4.        else if(value>p’s maximum) p=p->RChild ; //search in p’s right subtree
5.        else { //search inside p
6.                    if (value= =p’s minimum|| value= =p’s maximum) return 1;
7.                    else {
8.                                use binary search inside p’s middle-key array for key value;
9.                                if success return 1;
10.                               else return -1;
11.                   }
12.        }
13. }
14. return -1; //empty tree
Search Time Analysis
 Let n denote the number of tuples being indexed,
 m denote the maximum number of keys inside a
 node, c denote the size of a cache line
Experimental Results
CST-tree vs. CSB+-tree
Space Statistics
Conclusions
 CST-tree can provide better overall
 performance than T-tree in MMDB.
 CST-tree’s performance falls between CSB+-
 tree and full CSB+-tree.
 CST-tree saves more space than full-CSB+-
 tree.
Thank you!

More Related Content

What's hot (19)

PPT
computer notes - Data Structures - 13
ecomputernotes
 
PPT
Data structures final lecture 1
Nazir Ahmed
 
PPT
Steering Time-Dependent Estimation of Posteriors with Hyperparameter Indexing...
Tomonari Masada
 
PPTX
Intro to hadoop ecosystem
Grzegorz Kolpuc
 
PDF
Neat Analytics with Pandas Indexes, Alexander Hendorf
Pôle Systematic Paris-Region
 
PPTX
Jiscad viz
Tony Hirst
 
PPT
Inside database
Takashi Hoshino
 
PPT
Lecture 7 2011
flohrich
 
PPTX
Lecture 17 Iterative Deepening a star algorithm
Hema Kashyap
 
PPTX
3 - Finding similar items
Viet-Trung TRAN
 
DOC
Huffman coding01
Nv Thejaswini
 
PDF
N20181126
TMU, Japan
 
PPTX
Web-based framework for online sketch-based image retrieval
Lukas Tencer
 
PPTX
Algorithm and complexity
HABIB FIGA GUYE
 
PDF
[AAAI-16] Tiebreaking Strategies for A* Search: How to Explore the Final Fron...
Asai Masataro
 
PDF
Dense Topic Maps
tmra
 
PPTX
Tugas basis data 2012110028
UIGM
 
PDF
Hybrid geo textual index structure
cseij
 
PPTX
Apache Cassandra
Kochih Wu
 
computer notes - Data Structures - 13
ecomputernotes
 
Data structures final lecture 1
Nazir Ahmed
 
Steering Time-Dependent Estimation of Posteriors with Hyperparameter Indexing...
Tomonari Masada
 
Intro to hadoop ecosystem
Grzegorz Kolpuc
 
Neat Analytics with Pandas Indexes, Alexander Hendorf
Pôle Systematic Paris-Region
 
Jiscad viz
Tony Hirst
 
Inside database
Takashi Hoshino
 
Lecture 7 2011
flohrich
 
Lecture 17 Iterative Deepening a star algorithm
Hema Kashyap
 
3 - Finding similar items
Viet-Trung TRAN
 
Huffman coding01
Nv Thejaswini
 
N20181126
TMU, Japan
 
Web-based framework for online sketch-based image retrieval
Lukas Tencer
 
Algorithm and complexity
HABIB FIGA GUYE
 
[AAAI-16] Tiebreaking Strategies for A* Search: How to Explore the Final Fron...
Asai Masataro
 
Dense Topic Maps
tmra
 
Tugas basis data 2012110028
UIGM
 
Hybrid geo textual index structure
cseij
 
Apache Cassandra
Kochih Wu
 

Similar to Cache conscious index mechanism for main-memory databases (20)

PPT
Cache Conscious Indexes
Tata Consultancy Services
 
PPTX
Dynamic multi level indexing Using B-Trees And B+ Trees
Pooja Dixit
 
PPTX
Designing data intensive applications
Hemchander Sannidhanam
 
PDF
Search data structures
Ravi Pathak
 
PPT
9910559 jjjgjgjfs lke lwmerfml lew we.ppt
abduganiyevbekzod011
 
PDF
BinarySearchTree-bddicken
Benjamin Dicken
 
PPT
[Www.pkbulk.blogspot.com]file and indexing
AnusAhmad
 
PDF
DBMS 8 | Memory Hierarchy and Indexing
Mohammad Imam Hossain
 
PPTX
Digital Search Tree
SM. Aurnob
 
PPTX
TREE DATA STRUCTURE SLIDES dsa dsa .pptx
asimshahzad8611
 
PDF
01_trees dsa pitt lololololololololo.pdf
wyf2tmczgd
 
PPTX
Binary Search Tree in Data Structure
Meghaj Mallick
 
PPTX
B trees
prittopaul1
 
PPTX
Digital Search Tree
East West University
 
PDF
15 B-Trees
Andres Mendez-Vazquez
 
PDF
Furnish an Index Using the Works of Tree Structures
ijceronline
 
PDF
SPATIAL R-TREE INDEX BASED ON GRID DIVISION FOR QUERY PROCESSING
IJDMS
 
PPTX
UNIT 2 TREES & GRAPH COMPLETE NOTES OF DATA STRUCTURE
sahadevbkbiet2023
 
PDF
Data storage systems
delimitry
 
PPT
Tree-structured indexes lectures for student.ppt
abduganiyevbekzod011
 
Cache Conscious Indexes
Tata Consultancy Services
 
Dynamic multi level indexing Using B-Trees And B+ Trees
Pooja Dixit
 
Designing data intensive applications
Hemchander Sannidhanam
 
Search data structures
Ravi Pathak
 
9910559 jjjgjgjfs lke lwmerfml lew we.ppt
abduganiyevbekzod011
 
BinarySearchTree-bddicken
Benjamin Dicken
 
[Www.pkbulk.blogspot.com]file and indexing
AnusAhmad
 
DBMS 8 | Memory Hierarchy and Indexing
Mohammad Imam Hossain
 
Digital Search Tree
SM. Aurnob
 
TREE DATA STRUCTURE SLIDES dsa dsa .pptx
asimshahzad8611
 
01_trees dsa pitt lololololololololo.pdf
wyf2tmczgd
 
Binary Search Tree in Data Structure
Meghaj Mallick
 
B trees
prittopaul1
 
Digital Search Tree
East West University
 
Furnish an Index Using the Works of Tree Structures
ijceronline
 
SPATIAL R-TREE INDEX BASED ON GRID DIVISION FOR QUERY PROCESSING
IJDMS
 
UNIT 2 TREES & GRAPH COMPLETE NOTES OF DATA STRUCTURE
sahadevbkbiet2023
 
Data storage systems
delimitry
 
Tree-structured indexes lectures for student.ppt
abduganiyevbekzod011
 
Ad

Recently uploaded (20)

PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Ad

Cache conscious index mechanism for main-memory databases

  • 1. Cache-Conscious Index Mechanism for Main-Memory Databases Sun Limei Email:[email protected] Shenyang Jianzhu University
  • 2. Outline 1. Introduction 2. Related work 3. Cache sensitive T-trees 4. Experimental results 5. Conclusions
  • 3. Motivation The speed gap between CPU and memory Improve cache behavior in main memory data processing
  • 4. Cache Conscious Indexing CSS-tree(Cache Sensitive Search-Tree) CSB+-tree(Cache Sensitive B+-Tree) Segmented CSB+-tree Full CSB+-tree
  • 5. Disadvantage It is considered that the size of CSB+-tree’s node should be equal to that of basic transferring unit There is a large discrepancy between the size of cache line and disk page Cache line size:32B-128B(MMDB) Disk page size:4K-64K(DRDB) CSS-tree and CSB+-tree both increase the height of B+-tree
  • 6. About Cache Parameters: capacity, line(block) size and accociativity. Memory reference: hit or miss Line size: the basic transferring unit between cache and memory.
  • 8. T-Tree’s Structure K’<K1<K2<….<Kn-1<Kn<K” parent ptr bf K1 K2 …...… Kn-1 Kn bf bf …...… K’ K” …...… Disadvantage: Only the minimum and the maximum keys are often used in comparison.
  • 9. Cache Sensitive T-tree Decrease the node size and increase cache hit. No more space used because the middle key array is not needed all the time.
  • 10. CST- Search Input:root,value Output:flag(if success flag=1,else flag=-1) Algorithm: 1. p=root; 2. while (p!=NULL) { 3. if (value<p’s minimum) p=p->LChild ; //search in p’s left subtree 4. else if(value>p’s maximum) p=p->RChild ; //search in p’s right subtree 5. else { //search inside p 6. if (value= =p’s minimum|| value= =p’s maximum) return 1; 7. else { 8. use binary search inside p’s middle-key array for key value; 9. if success return 1; 10. else return -1; 11. } 12. } 13. } 14. return -1; //empty tree
  • 11. Search Time Analysis Let n denote the number of tuples being indexed, m denote the maximum number of keys inside a node, c denote the size of a cache line
  • 15. Conclusions CST-tree can provide better overall performance than T-tree in MMDB. CST-tree’s performance falls between CSB+- tree and full CSB+-tree. CST-tree saves more space than full-CSB+- tree.