Indexing Big Data. Michael A. Bender. ingest data ?????? ??? oy vey

Size: px
Start display at page:

Download "Indexing Big Data. Michael A. Bender. ingest data ?????? ??? oy vey"

Transcription

1 Indexing Big Data 30,000 Foot View Big data of Databases problem Michael A. Bender ingest data oy vey ????????? organize data on disks query your data

2 Indexing Big Data 30,000 Foot View Big data of Databases problem Michael A. Bender ingest data oy vey ????????? organize data on disks query your data Goal: Index big data so that it can be queried quickly.

3 Setting of Talk-- Type II streaming Type II streaming: Collect and store streams of data to answer queries. Data is stored on disks. Dealing with disk latency has similarities to dealing with network latency. We ll discuss indexing. We want to store data so that it can be queried efficiently. To discuss: relationship with graphs.

4 Setting of Talk-- Type II streaming Sorry it didn t render. Type II streaming: Collect and store streams of data to answer queries. Data is stored on disks. Dealing with disk latency has similarities to dealing with network latency. We ll discuss indexing. We want to store data so that it can be queried efficiently. To discuss: relationship with graphs.

5 For on-disk data, one traditionally sees funny tradeoffs in the speeds of data ingestion, query speed, and freshness of data. ingest data oy vey ????????? organize data on disks query your data

6 Funny tradeoff in ingestion, querying, freshness Select queries were slow until I added an index onto the timestamp field... Adding the index really helped our reporting, BUT now the inserts are taking forever. Comment on mysqlperformanceblog.com I'm trying to create indexes on a table with 308 million rows. It took ~20 minutes to load the table but 10 days to build indexes on it. MySQL bug #9544 They indexed their tables, and indexed them well, And lo, did the queries run quick! But that wasn t the last of their troubles, to tell Their insertions, like treacle, ran thick. Not from Alice in Wonderland by Lewis Carroll queries + answers data ingestion 42??? data indexing query processor Don t Thrash: How to Cache Your Hash in Flash

7 Funny tradeoff in ingestion, querying, freshness Select queries were slow until I added an index onto the timestamp field... Adding the index really helped our reporting, BUT now the inserts are taking forever. Comment on mysqlperformanceblog.com I'm trying to create indexes on a table with 308 million rows. It took ~20 minutes to load the table but 10 days to build indexes on it. MySQL bug #9544 They indexed their tables, and indexed them well, And lo, did the queries run quick! But that wasn t the last of their troubles, to tell Their insertions, like treacle, ran thick. Not from Alice in Wonderland by Lewis Carroll queries + answers data ingestion 42??? data indexing query processor Don t Thrash: How to Cache Your Hash in Flash

8 Funny tradeoff in ingestion, querying, freshness Select queries were slow until I added an index onto the timestamp field... Adding the index really helped our reporting, BUT now the inserts are taking forever. Comment on mysqlperformanceblog.com I'm trying to create indexes on a table with 308 million rows. It took ~20 minutes to load the table but 10 days to build indexes on it. MySQL bug #9544 They indexed their tables, and indexed them well, And lo, did the queries run quick! But that wasn t the last of their troubles, to tell Their insertions, like treacle, ran thick. Not from Alice in Wonderland by Lewis Carroll queries + answers data ingestion 42??? data indexing query processor Don t Thrash: How to Cache Your Hash in Flash

9 Tradeoffs come from different ways to organize data on disk Like a librarian?

10 Tradeoffs come from different ways to organize data on disk Like a librarian? Fast to find stuff. Slow to add stuff. Indexing

11 Tradeoffs come from different ways to organize data on disk Like a librarian? Like a teenager? Fast to find stuff. Slow to add stuff. Indexing

12 Tradeoffs come from different ways to organize data on disk Like a librarian? Like a teenager? Fast to find stuff. Slow to add stuff. Indexing Fast to add stuff. Slow to find stuff. Logging

13 Fractal-tree index B ɛ -tree This talk: we don t need tradeoffs LSM tree Write-optimized data structures: Faster indexing (10x-100x) Faster queries Fresh data These structures efficiently scale to very big data sizes. 8

14 Our algorithmic work appears in two commercial products Tokutek s high-performance MySQL and MongoDB. TokuDB TokuMX Application MySQL Database -- SQL processing, -- query optimization libft File System Application Standard MongoDB -- drivers, -- query language, and -- data model libft File System Disk/SSD

15 Our algorithmic work appears in two commercial products Tokutek s high-performance MySQL and MongoDB. TokuDB Application MySQL Database -- SQL processing, -- query optimization libft File System TokuMX Application Standard MongoDB -- drivers, -- query language, and -- data model libft File System The Fractal Tree engine implements the persistent structures for storing data on disk. Disk/SSD

16 Write-Optimized Data Structures 10

17 Write-Optimized Data Structures Would you like them with an algorithmic performance model? 10

18 An algorithmic performance model How computation works: Data is transferred in blocks between RAM and disk. The number of block transfers dominates the running time. Goal: Minimize # of block transfers Performance bounds are parameterized by block size B, memory size M, data size N. B RAM Disk M B 11 [Aggarwal+Vitter 88] Don t Thrash: How to Cache Your Hash in Flash

19 Memory and disk access times Disks: ~6 milliseconds per access. RAM: ~60 nanoseconds per access

20 Memory and disk access times Disks: ~6 milliseconds per access. RAM: ~60 nanoseconds per access Analogy: disk = elevation of Sandia peak RAM = height of a watermellon

21 Memory and disk access times Disks: ~6 milliseconds per access. RAM: ~60 nanoseconds per access Analogy: disk = elevation of Sandia peak RAM = height of a watermellon Analogy: disk = walking speed of the giant tortoise (0.3mph) RAM = escape velocity from earth (25,000 mph)

22 The traditional data structure for disks is the B-tree O(logBN)

23 The traditional data structure for disks is the B-tree Adding a new datum to an N-element B-tree uses O(logBN) block transfers in the worst case. (Even paying one block transfer is too expensive.) O(logBN)

24 Write-optimized data structures perform better Data structures: [O'Neil,Cheng, Gawlick, O'Neil 96], [Buchsbaum, Goldwasser, Venkatasubramanian, Westbrook 00], [Argel 03], [Graefe 03], [Brodal, Fagerberg 03], [Bender, Farach,Fineman,Fogel, Kuszmaul, Nelson 07], [Brodal, Demaine, Fineman, Iacono, Langerman, Munro 10], [Spillane, Shetty, Zadok, Archak, Dixit 11]. Systems: BigTable, Cassandra, H-Base, LevelDB, TokuDB. B-tree Some write-optimized structures logn Insert/delete logn O(logBN)=O( ) O( ) logb If B=1024, then insert speedup is B/logB 100. Hardware trends mean bigger B, bigger speedup. Less than 1 I/O per insert. B Don t Thrash: How to Cache Your Hash in Flash

25 Optimal Search-Insert Tradeoff [Brodal, Fagerberg 03] insert point query Optimal tradeoff (function of ɛ=0...1) O log1+b " N B 1 " O log 1+B " N 10x-100x faster inserts B-tree (ɛ=1) ɛ=1/2 ɛ=0 O (log B N) logb N O p B log N O B O (log B N) O (log B N) O (log N) Don t Thrash: How to Cache Your Hash in Flash

26 Illustration of Optimal Tradeoff [Brodal, Fagerberg 03] Point Queries Slow Fast B-tree Optimal Curve Logging Slow Inserts Fast Don t Thrash: How to Cache Your Hash in Flash

27 Illustration of Optimal Tradeoff [Brodal, Fagerberg 03] Target of opportunity Point Queries Slow Fast B-tree Insertions improve by 10x-100x with almost no loss of pointquery performance Optimal Curve Logging Slow Inserts Fast Don t Thrash: How to Cache Your Hash in Flash

28 Performance of write-optimized data structures Write performance on large data >100x faster MongoDB MySQL 16x faster Don t Thrash: How to Cache Your Hash in Flash

29 Performance of write-optimized data structures Write performance on large data >100x faster MongoDB MySQL 16x faster Later: why fast indexing leads to faster queries. Don t Thrash: How to Cache Your Hash in Flash

30 How to Build Write- Optimized Structures

31 How to Build Write- Optimized Structures write-optimized

32 A simple write-optimized structure O(log N) queries and O((log N)/B) inserts: A balanced binary tree with buffers of size B Inserts + deletes: Send insert/delete messages down from the root and store them in buffers. When a buffer fills up, flush. 20 Don t Thrash: How to Cache Your Hash in Flash

33 A simple write-optimized structure O(log N) queries and O((log N)/B) inserts: A balanced binary tree with buffers of size B Inserts + deletes: Send insert/delete messages down from the root and store them in buffers. When a buffer fills up, flush. 20 Don t Thrash: How to Cache Your Hash in Flash

34 A simple write-optimized structure O(log N) queries and O((log N)/B) inserts: A balanced binary tree with buffers of size B Inserts + deletes: Send insert/delete messages down from the root and store them in buffers. When a buffer fills up, flush. 20 Don t Thrash: How to Cache Your Hash in Flash

35 A simple write-optimized structure O(log N) queries and O((log N)/B) inserts: A balanced binary tree with buffers of size B Inserts + deletes: Send insert/delete messages down from the root and store them in buffers. When a buffer fills up, flush. 20 Don t Thrash: How to Cache Your Hash in Flash

36 A simple write-optimized structure O(log N) queries and O((log N)/B) inserts: A balanced binary tree with buffers of size B Inserts + deletes: Send insert/delete messages down from the root and store them in buffers. When a buffer fills up, flush. 20 Don t Thrash: How to Cache Your Hash in Flash

37 A simple write-optimized structure O(log N) queries and O((log N)/B) inserts: A balanced binary tree with buffers of size B Inserts + deletes: Send insert/delete messages down from the root and store them in buffers. When a buffer fills up, flush. 21 Don t Thrash: How to Cache Your Hash in Flash

38 Analysis of writes An insert/delete costs amortized O((log N)/B) per insert or delete A buffer flush costs O(1) & sends B elements down one level It costs O(1/B) to send element down one level of the tree. There are O(log N) levels in a tree. 22 Don t Thrash: How to Cache Your Hash in Flash

39 Difficulty of Key Accesses

40 Difficulty of Key Accesses

41 Analysis of point queries To search: examine each buffer along a single root-to-leaf path. This costs O(log N). 24 Don t Thrash: How to Cache Your Hash in Flash

42 Obtaining optimal point queries + very fast inserts B B fanout: B... Point queries cost O(log B N)= O(logB N) This is the tree height. Inserts cost O((logBN)/ B) Each flush cost O(1) I/Os and flushes B elements. 25 Don t Thrash: How to Cache Your Hash in Flash

43 Powerful and Explainable Write-optimized data structures are very powerful. They are also not hard to teach in a standard algorithms course. 26 Don t Thrash: How to Cache Your Hash in Flash

44 What the world looks like Insert/point query asymmetry Inserts can be fast: >50K high-entropy writes/sec/disk. Point queries are necessarily slow: <200 high-entropy reads/ sec/disk. We are used to reads and writes having about the same cost, but writing is easier than reading. Writing is easier. Reading is hard. 27 Don t Thrash: How to Cache Your Hash in Flash

45 The right read optimization is write optimization The right index makes queries run fast. Write-optimized structures maintain indexes efficiently. queries data ingestion 42 answers??? 28 data indexing query processor Don t Thrash: How to Cache Your Hash in Flash

46 The right read optimization is write optimization The right index makes queries run fast. Write-optimized structures maintain indexes efficiently. Fast writing is a currency we use to accelerate queries. Better indexing means faster queries. queries data ingestion 42 answers??? 28 data indexing query processor Don t Thrash: How to Cache Your Hash in Flash

47 The right read optimization is write optimization Adding more indexes leads to faster queries. Index maintenance has been notoriously slow. TokuMX MongoDB query I/O load on a production server indexing rate If we can insert faster, we can afford to maintain more indexes (i.e., organize the data in more ways.) Don t Thrash: How to Cache Your Hash in Flash

48

49 Summery Slide

50 Summery Slide The right read optimization is write optimization.

51 Summery Slide The right read optimization is write optimization. We don t need to trade off ingestion speed, query speed, and data freshness.

52 Summery Slide The right read optimization is write optimization. How do write-optimized data structures help us with graph queries? We don t need to trade off ingestion speed, query speed, and data freshness.

53 Summery Slide The right read optimization is write optimization. How do write-optimized data structures help us with graph queries? We don t need to trade off ingestion speed, query speed, and data freshness. Can we use write-optimization on large Sandia machines? There are similar challenges with network and I/O latency.

Data Structures and Algorithms for Big Databases

Data Structures and Algorithms for Big Databases Data Structures and Algorithms for Big Databases Michael A. Bender Stony Brook & Tokutek Bradley C. Kuszmaul MIT & Tokutek Big data problem data ingestion queries + answers oy vey 365 data indexing query

More information

Data storage Tree indexes

Data storage Tree indexes Data storage Tree indexes Rasmus Pagh February 7 lecture 1 Access paths For many database queries and updates, only a small fraction of the data needs to be accessed. Extreme examples are looking or updating

More information

Big Data and Scripting. Part 4: Memory Hierarchies

Big Data and Scripting. Part 4: Memory Hierarchies 1, Big Data and Scripting Part 4: Memory Hierarchies 2, Model and Definitions memory size: M machine words total storage (on disk) of N elements (N is very large) disk size unlimited (for our considerations)

More information

Benchmarking Cassandra on Violin

Benchmarking Cassandra on Violin Technical White Paper Report Technical Report Benchmarking Cassandra on Violin Accelerating Cassandra Performance and Reducing Read Latency With Violin Memory Flash-based Storage Arrays Version 1.0 Abstract

More information

Hypertable Architecture Overview

Hypertable Architecture Overview WHITE PAPER - MARCH 2012 Hypertable Architecture Overview Hypertable is an open source, scalable NoSQL database modeled after Bigtable, Google s proprietary scalable database. It is written in C++ for

More information

Accelerating Enterprise Applications and Reducing TCO with SanDisk ZetaScale Software

Accelerating Enterprise Applications and Reducing TCO with SanDisk ZetaScale Software WHITEPAPER Accelerating Enterprise Applications and Reducing TCO with SanDisk ZetaScale Software SanDisk ZetaScale software unlocks the full benefits of flash for In-Memory Compute and NoSQL applications

More information

Seeking Fast, Durable Data Management: A Database System and Persistent Storage Benchmark

Seeking Fast, Durable Data Management: A Database System and Persistent Storage Benchmark Seeking Fast, Durable Data Management: A Database System and Persistent Storage Benchmark In-memory database systems (IMDSs) eliminate much of the performance latency associated with traditional on-disk

More information

Overview of Databases On MacOS. Karl Kuehn Automation Engineer RethinkDB

Overview of Databases On MacOS. Karl Kuehn Automation Engineer RethinkDB Overview of Databases On MacOS Karl Kuehn Automation Engineer RethinkDB Session Goals Introduce Database concepts Show example players Not Goals: Cover non-macos systems (Oracle) Teach you SQL Answer what

More information

In-Memory Databases MemSQL

In-Memory Databases MemSQL IT4BI - Université Libre de Bruxelles In-Memory Databases MemSQL Gabby Nikolova Thao Ha Contents I. In-memory Databases...4 1. Concept:...4 2. Indexing:...4 a. b. c. d. AVL Tree:...4 B-Tree and B+ Tree:...5

More information

Graph Database Proof of Concept Report

Graph Database Proof of Concept Report Objectivity, Inc. Graph Database Proof of Concept Report Managing The Internet of Things Table of Contents Executive Summary 3 Background 3 Proof of Concept 4 Dataset 4 Process 4 Query Catalog 4 Environment

More information

MySQL performance in a cloud. Mark Callaghan

MySQL performance in a cloud. Mark Callaghan MySQL performance in a cloud Mark Callaghan Special thanks Eric Hammond (http://www.anvilon.com) provided documentation that made all of my work much easier. What is this thing called a cloud? Deployment

More information

Facebook: Cassandra. Smruti R. Sarangi. Department of Computer Science Indian Institute of Technology New Delhi, India. Overview Design Evaluation

Facebook: Cassandra. Smruti R. Sarangi. Department of Computer Science Indian Institute of Technology New Delhi, India. Overview Design Evaluation Facebook: Cassandra Smruti R. Sarangi Department of Computer Science Indian Institute of Technology New Delhi, India Smruti R. Sarangi Leader Election 1/24 Outline 1 2 3 Smruti R. Sarangi Leader Election

More information

The Bw-Tree Key-Value Store and Its Applications to Server/Cloud Data Management in Production

The Bw-Tree Key-Value Store and Its Applications to Server/Cloud Data Management in Production The Bw-Tree Key-Value Store and Its Applications to Server/Cloud Data Management in Production Sudipta Sengupta Joint work with Justin Levandoski and David Lomet (Microsoft Research) And Microsoft Product

More information

Physical Data Organization

Physical Data Organization Physical Data Organization Database design using logical model of the database - appropriate level for users to focus on - user independence from implementation details Performance - other major factor

More information

University of Dublin Trinity College. Storage Hardware. Owen.Conlan@cs.tcd.ie

University of Dublin Trinity College. Storage Hardware. Owen.Conlan@cs.tcd.ie University of Dublin Trinity College Storage Hardware Owen.Conlan@cs.tcd.ie Hardware Issues Hard Disk/SSD CPU Cache Main Memory CD ROM/RW DVD ROM/RW Tapes Primary Storage Floppy Disk/ Memory Stick Secondary

More information

Speeding Up Cloud/Server Applications Using Flash Memory

Speeding Up Cloud/Server Applications Using Flash Memory Speeding Up Cloud/Server Applications Using Flash Memory Sudipta Sengupta Microsoft Research, Redmond, WA, USA Contains work that is joint with B. Debnath (Univ. of Minnesota) and J. Li (Microsoft Research,

More information

Evaluation Report: Accelerating SQL Server Database Performance with the Lenovo Storage S3200 SAN Array

Evaluation Report: Accelerating SQL Server Database Performance with the Lenovo Storage S3200 SAN Array Evaluation Report: Accelerating SQL Server Database Performance with the Lenovo Storage S3200 SAN Array Evaluation report prepared under contract with Lenovo Executive Summary Even with the price of flash

More information

Previous Lectures. B-Trees. External storage. Two types of memory. B-trees. Main principles

Previous Lectures. B-Trees. External storage. Two types of memory. B-trees. Main principles B-Trees Algorithms and data structures for external memory as opposed to the main memory B-Trees Previous Lectures Height balanced binary search trees: AVL trees, red-black trees. Multiway search trees:

More information

Yahoo! Cloud Serving Benchmark

Yahoo! Cloud Serving Benchmark Yahoo! Cloud Serving Benchmark Overview and results March 31, 2010 Brian F. Cooper cooperb@yahoo-inc.com Joint work with Adam Silberstein, Erwin Tam, Raghu Ramakrishnan and Russell Sears System setup and

More information

SAP HANA PLATFORM Top Ten Questions for Choosing In-Memory Databases. Start Here

SAP HANA PLATFORM Top Ten Questions for Choosing In-Memory Databases. Start Here PLATFORM Top Ten Questions for Choosing In-Memory Databases Start Here PLATFORM Top Ten Questions for Choosing In-Memory Databases. Are my applications accelerated without manual intervention and tuning?.

More information

External Memory Geometric Data Structures

External Memory Geometric Data Structures External Memory Geometric Data Structures Lars Arge Department of Computer Science University of Aarhus and Duke University Augues 24, 2005 1 Introduction Many modern applications store and process datasets

More information

Columnstore Indexes for Fast Data Warehouse Query Processing in SQL Server 11.0

Columnstore Indexes for Fast Data Warehouse Query Processing in SQL Server 11.0 SQL Server Technical Article Columnstore Indexes for Fast Data Warehouse Query Processing in SQL Server 11.0 Writer: Eric N. Hanson Technical Reviewer: Susan Price Published: November 2010 Applies to:

More information

An Overview of Flash Storage for Databases

An Overview of Flash Storage for Databases An Overview of Flash Storage for Databases Vadim Tkachenko Morgan Tocker http://percona.com MySQL CE Apr 2010 -2- Introduction Vadim Tkachenko Percona Inc, CTO and Lead of Development Morgan Tocker Percona

More information

HPC data becomes Big Data. Peter Braam peter.braam@braamresearch.com

HPC data becomes Big Data. Peter Braam peter.braam@braamresearch.com HPC data becomes Big Data Peter Braam peter.braam@braamresearch.com me 1983-2000 Academia Maths & Computer Science Entrepreneur with startups (5x) 4 startups sold Lustre emerged Held executive jobs with

More information

Algorithms and Data Structures

Algorithms and Data Structures Algorithms and Data Structures CMPSC 465 LECTURES 20-21 Priority Queues and Binary Heaps Adam Smith S. Raskhodnikova and A. Smith. Based on slides by C. Leiserson and E. Demaine. 1 Trees Rooted Tree: collection

More information

Petabyte Scale Data at Facebook. Dhruba Borthakur, Engineer at Facebook, SIGMOD, New York, June 2013

Petabyte Scale Data at Facebook. Dhruba Borthakur, Engineer at Facebook, SIGMOD, New York, June 2013 Petabyte Scale Data at Facebook Dhruba Borthakur, Engineer at Facebook, SIGMOD, New York, June 2013 Agenda 1 Types of Data 2 Data Model and API for Facebook Graph Data 3 SLTP (Semi-OLTP) and Analytics

More information

Architectural patterns for building real time applications with Apache HBase. Andrew Purtell Committer and PMC, Apache HBase

Architectural patterns for building real time applications with Apache HBase. Andrew Purtell Committer and PMC, Apache HBase Architectural patterns for building real time applications with Apache HBase Andrew Purtell Committer and PMC, Apache HBase Who am I? Distributed systems engineer Principal Architect in the Big Data Platform

More information

Department of Software Systems. Presenter: Saira Shaheen, 227233 saira.shaheen@tut.fi 0417016438 Dated: 02-10-2012

Department of Software Systems. Presenter: Saira Shaheen, 227233 saira.shaheen@tut.fi 0417016438 Dated: 02-10-2012 1 MongoDB Department of Software Systems Presenter: Saira Shaheen, 227233 saira.shaheen@tut.fi 0417016438 Dated: 02-10-2012 2 Contents Motivation : Why nosql? Introduction : What does NoSQL means?? Applications

More information

Unit 4.3 - Storage Structures 1. Storage Structures. Unit 4.3

Unit 4.3 - Storage Structures 1. Storage Structures. Unit 4.3 Storage Structures Unit 4.3 Unit 4.3 - Storage Structures 1 The Physical Store Storage Capacity Medium Transfer Rate Seek Time Main Memory 800 MB/s 500 MB Instant Hard Drive 10 MB/s 120 GB 10 ms CD-ROM

More information

IS IN-MEMORY COMPUTING MAKING THE MOVE TO PRIME TIME?

IS IN-MEMORY COMPUTING MAKING THE MOVE TO PRIME TIME? IS IN-MEMORY COMPUTING MAKING THE MOVE TO PRIME TIME? EMC and Intel work with multiple in-memory solutions to make your databases fly Thanks to cheaper random access memory (RAM) and improved technology,

More information

Parallel Replication for MySQL in 5 Minutes or Less

Parallel Replication for MySQL in 5 Minutes or Less Parallel Replication for MySQL in 5 Minutes or Less Featuring Tungsten Replicator Robert Hodges, CEO, Continuent About Continuent / Continuent is the leading provider of data replication and clustering

More information

Top Ten Questions. to Ask Your Primary Storage Provider About Their Data Efficiency. May 2014. Copyright 2014 Permabit Technology Corporation

Top Ten Questions. to Ask Your Primary Storage Provider About Their Data Efficiency. May 2014. Copyright 2014 Permabit Technology Corporation Top Ten Questions to Ask Your Primary Storage Provider About Their Data Efficiency May 2014 Copyright 2014 Permabit Technology Corporation Introduction The value of data efficiency technologies, namely

More information

Memory-Centric Database Acceleration

Memory-Centric Database Acceleration Memory-Centric Database Acceleration Achieving an Order of Magnitude Increase in Database Performance A FedCentric Technologies White Paper September 2007 Executive Summary Businesses are facing daunting

More information

Achieving Nanosecond Latency Between Applications with IPC Shared Memory Messaging

Achieving Nanosecond Latency Between Applications with IPC Shared Memory Messaging Achieving Nanosecond Latency Between Applications with IPC Shared Memory Messaging In some markets and scenarios where competitive advantage is all about speed, speed is measured in micro- and even nano-seconds.

More information

Diskeeper Can Boost Your SQL Server's Performance

Diskeeper Can Boost Your SQL Server's Performance Diskeeper Can Boost Your SQL Server's Performance Software Spotlight by Brad M. McGehee One of the biggest hardware bottlenecks of any SQL Server is disk I/O. And anything that we, as DBAs, can do to reduce

More information

From Last Time: Remove (Delete) Operation

From Last Time: Remove (Delete) Operation CSE 32 Lecture : More on Search Trees Today s Topics: Lazy Operations Run Time Analysis of Binary Search Tree Operations Balanced Search Trees AVL Trees and Rotations Covered in Chapter of the text From

More information

Lecture 1: Data Storage & Index

Lecture 1: Data Storage & Index Lecture 1: Data Storage & Index R&G Chapter 8-11 Concurrency control Query Execution and Optimization Relational Operators File & Access Methods Buffer Management Disk Space Management Recovery Manager

More information

Raima Database Manager Version 14.0 In-memory Database Engine

Raima Database Manager Version 14.0 In-memory Database Engine + Raima Database Manager Version 14.0 In-memory Database Engine By Jeffrey R. Parsons, Senior Engineer January 2016 Abstract Raima Database Manager (RDM) v14.0 contains an all new data storage engine optimized

More information

Parallel & Distributed Data Management

Parallel & Distributed Data Management Parallel & Distributed Data Management Kai Shen Data Management Data management Efficiency: fast reads/writes Durability and consistency: data is safe and sound despite failures Usability: convenient interfaces

More information

Introduction to new high performance storage engines in MongoDB 2.8 3.0

Introduction to new high performance storage engines in MongoDB 2.8 3.0 Introduction to new high performance storage engines in MongoDB 2.8 3.0 Henrik Ingo Solutions Architect, MongoDB Hi, I am Henrik Ingo @h_ingo 2 Introduction to new high performance storage engines in MongoDB

More information

Performance Counters. Microsoft SQL. Technical Data Sheet. Overview:

Performance Counters. Microsoft SQL. Technical Data Sheet. Overview: Performance Counters Technical Data Sheet Microsoft SQL Overview: Key Features and Benefits: Key Definitions: Performance counters are used by the Operations Management Architecture (OMA) to collect data

More information

Optimizing Ext4 for Low Memory Environments

Optimizing Ext4 for Low Memory Environments Optimizing Ext4 for Low Memory Environments Theodore Ts'o November 7, 2012 Agenda Status of Ext4 Why do we care about Low Memory Environments: Cloud Computing Optimizing Ext4 for Low Memory Environments

More information

Recovery Principles in MySQL Cluster 5.1

Recovery Principles in MySQL Cluster 5.1 Recovery Principles in MySQL Cluster 5.1 Mikael Ronström Senior Software Architect MySQL AB 1 Outline of Talk Introduction of MySQL Cluster in version 4.1 and 5.0 Discussion of requirements for MySQL Cluster

More information

Rackspace Cloud Databases and Container-based Virtualization

Rackspace Cloud Databases and Container-based Virtualization Rackspace Cloud Databases and Container-based Virtualization August 2012 J.R. Arredondo @jrarredondo Page 1 of 6 INTRODUCTION When Rackspace set out to build the Cloud Databases product, we asked many

More information

Preview of Oracle Database 12c In-Memory Option. Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Preview of Oracle Database 12c In-Memory Option. Copyright 2013, Oracle and/or its affiliates. All rights reserved. Preview of Oracle Database 12c In-Memory Option 1 The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any

More information

High Frequency Trading and NoSQL. Peter Lawrey CEO, Principal Consultant Higher Frequency Trading

High Frequency Trading and NoSQL. Peter Lawrey CEO, Principal Consultant Higher Frequency Trading High Frequency Trading and NoSQL Peter Lawrey CEO, Principal Consultant Higher Frequency Trading Agenda Who are we? Brief introduction to OpenHFT. What does a typical trading system look like What requirements

More information

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Fall 2007 Lecture 5 - DBMS Architecture

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Fall 2007 Lecture 5 - DBMS Architecture CSE 544 Principles of Database Management Systems Magdalena Balazinska Fall 2007 Lecture 5 - DBMS Architecture References Anatomy of a database system. J. Hellerstein and M. Stonebraker. In Red Book (4th

More information

File Management. Chapter 12

File Management. Chapter 12 Chapter 12 File Management File is the basic element of most of the applications, since the input to an application, as well as its output, is usually a file. They also typically outlive the execution

More information

October 1-3, 2012 gotocon.com. Apache Cassandra As A BigData Platform Matthew F. Dennis // @mdennis

October 1-3, 2012 gotocon.com. Apache Cassandra As A BigData Platform Matthew F. Dennis // @mdennis October 1-3, 2012 gotocon.com Apache Cassandra As A BigData Platform Matthew F. Dennis // @mdennis Why Does BigData Matter? Effective Use of BigData Leads To Success And The Trends Continue (according

More information

these three NoSQL databases because I wanted to see a the two different sides of the CAP

these three NoSQL databases because I wanted to see a the two different sides of the CAP Michael Sharp Big Data CS401r Lab 3 For this paper I decided to do research on MongoDB, Cassandra, and Dynamo. I chose these three NoSQL databases because I wanted to see a the two different sides of the

More information

Topics in Computer System Performance and Reliability: Storage Systems!

Topics in Computer System Performance and Reliability: Storage Systems! CSC 2233: Topics in Computer System Performance and Reliability: Storage Systems! Note: some of the slides in today s lecture are borrowed from a course taught by Greg Ganger and Garth Gibson at Carnegie

More information

Cloud Computing at Google. Architecture

Cloud Computing at Google. Architecture Cloud Computing at Google Google File System Web Systems and Algorithms Google Chris Brooks Department of Computer Science University of San Francisco Google has developed a layered system to handle webscale

More information

A binary heap is a complete binary tree, where each node has a higher priority than its children. This is called heap-order property

A binary heap is a complete binary tree, where each node has a higher priority than its children. This is called heap-order property CmSc 250 Intro to Algorithms Chapter 6. Transform and Conquer Binary Heaps 1. Definition A binary heap is a complete binary tree, where each node has a higher priority than its children. This is called

More information

Virtualization. P. A. Wilsey. The text highlighted in green in these slides contain external hyperlinks. 1 / 16

Virtualization. P. A. Wilsey. The text highlighted in green in these slides contain external hyperlinks. 1 / 16 Virtualization P. A. Wilsey The text highlighted in green in these slides contain external hyperlinks. 1 / 16 Conventional System Viewed as Layers This illustration is a common presentation of the application/operating

More information

Technical Challenges for Big Health Care Data. Donald Kossmann Systems Group Department of Computer Science ETH Zurich

Technical Challenges for Big Health Care Data. Donald Kossmann Systems Group Department of Computer Science ETH Zurich Technical Challenges for Big Health Care Data Donald Kossmann Systems Group Department of Computer Science ETH Zurich What is Big Data? technologies to automate experience Purpose answer difficult questions

More information

B-Trees. Algorithms and data structures for external memory as opposed to the main memory B-Trees. B -trees

B-Trees. Algorithms and data structures for external memory as opposed to the main memory B-Trees. B -trees B-Trees Algorithms and data structures for external memory as opposed to the main memory B-Trees Previous Lectures Height balanced binary search trees: AVL trees, red-black trees. Multiway search trees:

More information

ProTrack: A Simple Provenance-tracking Filesystem

ProTrack: A Simple Provenance-tracking Filesystem ProTrack: A Simple Provenance-tracking Filesystem Somak Das Department of Electrical Engineering and Computer Science Massachusetts Institute of Technology das@mit.edu Abstract Provenance describes a file

More information

Configuring Apache Derby for Performance and Durability Olav Sandstå

Configuring Apache Derby for Performance and Durability Olav Sandstå Configuring Apache Derby for Performance and Durability Olav Sandstå Database Technology Group Sun Microsystems Trondheim, Norway Overview Background > Transactions, Failure Classes, Derby Architecture

More information

Tushar Joshi Turtle Networks Ltd

Tushar Joshi Turtle Networks Ltd MySQL Database for High Availability Web Applications Tushar Joshi Turtle Networks Ltd www.turtle.net Overview What is High Availability? Web/Network Architecture Applications MySQL Replication MySQL Clustering

More information

DATABASE DESIGN - 1DL400

DATABASE DESIGN - 1DL400 DATABASE DESIGN - 1DL400 Spring 2015 A course on modern database systems!! http://www.it.uu.se/research/group/udbl/kurser/dbii_vt15/ Kjell Orsborn! Uppsala Database Laboratory! Department of Information

More information

The Flash- Transformed Server Platform Maximizing Your Migration from Windows Server 2003 with a SanDisk Flash- enabled Server Platform

The Flash- Transformed Server Platform Maximizing Your Migration from Windows Server 2003 with a SanDisk Flash- enabled Server Platform WHITE PAPER The Flash- Transformed Server Platform Maximizing Your Migration from Windows Server 2003 with a SanDisk Flash- enabled Server Platform.www.SanDisk.com Table of Contents Windows Server 2003

More information

MySQL: Cloud vs Bare Metal, Performance and Reliability

MySQL: Cloud vs Bare Metal, Performance and Reliability MySQL: Cloud vs Bare Metal, Performance and Reliability Los Angeles MySQL Meetup Vladimir Fedorkov, March 31, 2014 Let s meet each other Performance geek All kinds MySQL and some Sphinx Working for Blackbird

More information

Enhancing SQL Server Performance

Enhancing SQL Server Performance Enhancing SQL Server Performance Bradley Ball, Jason Strate and Roger Wolter In the ever-evolving data world, improving database performance is a constant challenge for administrators. End user satisfaction

More information

Binary search tree with SIMD bandwidth optimization using SSE

Binary search tree with SIMD bandwidth optimization using SSE Binary search tree with SIMD bandwidth optimization using SSE Bowen Zhang, Xinwei Li 1.ABSTRACT In-memory tree structured index search is a fundamental database operation. Modern processors provide tremendous

More information

Performance And Scalability In Oracle9i And SQL Server 2000

Performance And Scalability In Oracle9i And SQL Server 2000 Performance And Scalability In Oracle9i And SQL Server 2000 Presented By : Phathisile Sibanda Supervisor : John Ebden 1 Presentation Overview Project Objectives Motivation -Why performance & Scalability

More information

VirtualCenter Database Performance for Microsoft SQL Server 2005 VirtualCenter 2.5

VirtualCenter Database Performance for Microsoft SQL Server 2005 VirtualCenter 2.5 Performance Study VirtualCenter Database Performance for Microsoft SQL Server 2005 VirtualCenter 2.5 VMware VirtualCenter uses a database to store metadata on the state of a VMware Infrastructure environment.

More information

Sawmill Log Analyzer Best Practices!! Page 1 of 6. Sawmill Log Analyzer Best Practices

Sawmill Log Analyzer Best Practices!! Page 1 of 6. Sawmill Log Analyzer Best Practices Sawmill Log Analyzer Best Practices!! Page 1 of 6 Sawmill Log Analyzer Best Practices! Sawmill Log Analyzer Best Practices!! Page 2 of 6 This document describes best practices for the Sawmill universal

More information

Data Structures and Algorithm Analysis (CSC317) Intro/Review of Data Structures Focus on dynamic sets

Data Structures and Algorithm Analysis (CSC317) Intro/Review of Data Structures Focus on dynamic sets Data Structures and Algorithm Analysis (CSC317) Intro/Review of Data Structures Focus on dynamic sets We ve been talking a lot about efficiency in computing and run time. But thus far mostly ignoring data

More information

Bigtable is a proven design Underpins 100+ Google services:

Bigtable is a proven design Underpins 100+ Google services: Mastering Massive Data Volumes with Hypertable Doug Judd Talk Outline Overview Architecture Performance Evaluation Case Studies Hypertable Overview Massively Scalable Database Modeled after Google s Bigtable

More information

Big Data Functionality for Oracle 11 / 12 Using High Density Computing and Memory Centric DataBase (MCDB) Frequently Asked Questions

Big Data Functionality for Oracle 11 / 12 Using High Density Computing and Memory Centric DataBase (MCDB) Frequently Asked Questions Big Data Functionality for Oracle 11 / 12 Using High Density Computing and Memory Centric DataBase (MCDB) Frequently Asked Questions Overview: SGI and FedCentric Technologies LLC are pleased to announce

More information

BENCHMARKING CLOUD DATABASES CASE STUDY on HBASE, HADOOP and CASSANDRA USING YCSB

BENCHMARKING CLOUD DATABASES CASE STUDY on HBASE, HADOOP and CASSANDRA USING YCSB BENCHMARKING CLOUD DATABASES CASE STUDY on HBASE, HADOOP and CASSANDRA USING YCSB Planet Size Data!? Gartner s 10 key IT trends for 2012 unstructured data will grow some 80% over the course of the next

More information

Kafka & Redis for Big Data Solutions

Kafka & Redis for Big Data Solutions Kafka & Redis for Big Data Solutions Christopher Curtin Head of Technical Research @ChrisCurtin About Me 25+ years in technology Head of Technical Research at Silverpop, an IBM Company (14 + years at Silverpop)

More information

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY A PATH FOR HORIZING YOUR INNOVATIVE WORK A REVIEW ON THE USAGE OF OLD AND NEW DATA STRUCTURE ARRAYS, LINKED LIST, STACK,

More information

GPU File System Encryption Kartik Kulkarni and Eugene Linkov

GPU File System Encryption Kartik Kulkarni and Eugene Linkov GPU File System Encryption Kartik Kulkarni and Eugene Linkov 5/10/2012 SUMMARY. We implemented a file system that encrypts and decrypts files. The implementation uses the AES algorithm computed through

More information

Data Structures for Big Data: Bloom Filter. Vinicius Vielmo Cogo Smalltalks, DI, FC/UL. October 16, 2014.

Data Structures for Big Data: Bloom Filter. Vinicius Vielmo Cogo Smalltalks, DI, FC/UL. October 16, 2014. Data Structures for Big Data: Bloom Filter Vinicius Vielmo Cogo Smalltalks, DI, FC/UL. October 16, 2014. is relative is not defined by a specific number of TB, PB, EB is when it becomes big for you is

More information

Case study: Cancer Research UK

Case study: Cancer Research UK Case study: Cancer Research UK EMC VNX and FLASH 1st strategy speed performance and the fight against cancer Cancer Research UK s (CRUK) aim is to save lives from cancer. CRUK does this through funding

More information

Binary Search Trees. Data in each node. Larger than the data in its left child Smaller than the data in its right child

Binary Search Trees. Data in each node. Larger than the data in its left child Smaller than the data in its right child Binary Search Trees Data in each node Larger than the data in its left child Smaller than the data in its right child FIGURE 11-6 Arbitrary binary tree FIGURE 11-7 Binary search tree Data Structures Using

More information

Benchmarking Hadoop & HBase on Violin

Benchmarking Hadoop & HBase on Violin Technical White Paper Report Technical Report Benchmarking Hadoop & HBase on Violin Harnessing Big Data Analytics at the Speed of Memory Version 1.0 Abstract The purpose of benchmarking is to show advantages

More information

Cache Oblivious Search Trees via Binary Trees of Small Height

Cache Oblivious Search Trees via Binary Trees of Small Height Cache Oblivious Search Trees via Binary Trees of Small Height Gerth Stølting Brodal Rolf Fagerberg Riko Jacob Abstract We propose a version of cache oblivious search trees which is simpler than the previous

More information

The Benefits of WordPress Specific Web Hosting. Jamii Corley, Southwest Cyberport

The Benefits of WordPress Specific Web Hosting. Jamii Corley, Southwest Cyberport The Benefits of WordPress Specific Web Hosting Jamii Corley, Southwest Cyberport Jamii Corley Southwest Cyberport Web Hosting since 1994 Web Hosting Options Free - (Banners, type of URL you can use, owning

More information

Virtuoso and Database Scalability

Virtuoso and Database Scalability Virtuoso and Database Scalability By Orri Erling Table of Contents Abstract Metrics Results Transaction Throughput Initializing 40 warehouses Serial Read Test Conditions Analysis Working Set Effect of

More information

Databases and Information Systems 1 Part 3: Storage Structures and Indices

Databases and Information Systems 1 Part 3: Storage Structures and Indices bases and Information Systems 1 Part 3: Storage Structures and Indices Prof. Dr. Stefan Böttcher Fakultät EIM, Institut für Informatik Universität Paderborn WS 2009 / 2010 Contents: - database buffer -

More information

How To Scale Out Of A Nosql Database

How To Scale Out Of A Nosql Database Firebird meets NoSQL (Apache HBase) Case Study Firebird Conference 2011 Luxembourg 25.11.2011 26.11.2011 Thomas Steinmaurer DI +43 7236 3343 896 thomas.steinmaurer@scch.at www.scch.at Michael Zwick DI

More information

Binary Heap Algorithms

Binary Heap Algorithms CS Data Structures and Algorithms Lecture Slides Wednesday, April 5, 2009 Glenn G. Chappell Department of Computer Science University of Alaska Fairbanks CHAPPELLG@member.ams.org 2005 2009 Glenn G. Chappell

More information

NoSQL Databases. Polyglot Persistence

NoSQL Databases. Polyglot Persistence The future is: NoSQL Databases Polyglot Persistence a note on the future of data storage in the enterprise, written primarily for those involved in the management of application development. Martin Fowler

More information

Throwing Hardware at SQL Server Performance problems?

Throwing Hardware at SQL Server Performance problems? Throwing Hardware at SQL Server Performance problems? Think again, there s a better way! Written By: Jason Strate, Pragmatic Works Roger Wolter, Pragmatic Works Bradley Ball, Pragmatic Works Contents Contents

More information

Deploying Affordable, High Performance Hybrid Flash Storage for Clustered SQL Server

Deploying Affordable, High Performance Hybrid Flash Storage for Clustered SQL Server Deploying Affordable, High Performance Hybrid Flash Storage for Clustered SQL Server Flash storage adoption has increased in recent years, as organizations have deployed it to support business applications.

More information

Tips and Tricks for Using Oracle TimesTen In-Memory Database in the Application Tier

Tips and Tricks for Using Oracle TimesTen In-Memory Database in the Application Tier Tips and Tricks for Using Oracle TimesTen In-Memory Database in the Application Tier Simon Law TimesTen Product Manager, Oracle Meet The Experts: Andy Yao TimesTen Product Manager, Oracle Gagan Singh Senior

More information

Oracle Database In-Memory The Next Big Thing

Oracle Database In-Memory The Next Big Thing Oracle Database In-Memory The Next Big Thing Maria Colgan Master Product Manager #DBIM12c Why is Oracle do this Oracle Database In-Memory Goals Real Time Analytics Accelerate Mixed Workload OLTP No Changes

More information

Вовченко Алексей, к.т.н., с.н.с. ВМК МГУ ИПИ РАН

Вовченко Алексей, к.т.н., с.н.с. ВМК МГУ ИПИ РАН Вовченко Алексей, к.т.н., с.н.с. ВМК МГУ ИПИ РАН Zettabytes Petabytes ABC Sharding A B C Id Fn Ln Addr 1 Fred Jones Liberty, NY 2 John Smith?????? 122+ NoSQL Database

More information

There are numerous ways to access monitors:

There are numerous ways to access monitors: Remote Monitors REMOTE MONITORS... 1 Overview... 1 Accessing Monitors... 1 Creating Monitors... 2 Monitor Wizard Options... 11 Editing the Monitor Configuration... 14 Status... 15 Location... 17 Alerting...

More information

Distributed storage for structured data

Distributed storage for structured data Distributed storage for structured data Dennis Kafura CS5204 Operating Systems 1 Overview Goals scalability petabytes of data thousands of machines applicability to Google applications Google Analytics

More information

Lambda Architecture. Near Real-Time Big Data Analytics Using Hadoop. January 2015. Email: bdg@qburst.com Website: www.qburst.com

Lambda Architecture. Near Real-Time Big Data Analytics Using Hadoop. January 2015. Email: bdg@qburst.com Website: www.qburst.com Lambda Architecture Near Real-Time Big Data Analytics Using Hadoop January 2015 Contents Overview... 3 Lambda Architecture: A Quick Introduction... 4 Batch Layer... 4 Serving Layer... 4 Speed Layer...

More information

Hardware Recommendations

Hardware Recommendations Hardware Recommendations Alpha Anywhere is a Windows based system that will run on various Windows versions. The minimum requirement is Windows XP SP3 or Server 2003. However, it is recommended that at

More information

Flash for Databases. September 22, 2015 Peter Zaitsev Percona

Flash for Databases. September 22, 2015 Peter Zaitsev Percona Flash for Databases September 22, 2015 Peter Zaitsev Percona In this Presentation Flash technology overview Review some of the available technology What does this mean for databases? Specific opportunities

More information

PEPPERDATA IN MULTI-TENANT ENVIRONMENTS

PEPPERDATA IN MULTI-TENANT ENVIRONMENTS ..................................... PEPPERDATA IN MULTI-TENANT ENVIRONMENTS technical whitepaper June 2015 SUMMARY OF WHAT S WRITTEN IN THIS DOCUMENT If you are short on time and don t want to read the

More information

Amazon EC2 XenApp Scalability Analysis

Amazon EC2 XenApp Scalability Analysis WHITE PAPER Citrix XenApp Amazon EC2 XenApp Scalability Analysis www.citrix.com Table of Contents Introduction...3 Results Summary...3 Detailed Results...4 Methods of Determining Results...4 Amazon EC2

More information

Accelerating Application Performance on Virtual Machines

Accelerating Application Performance on Virtual Machines Accelerating Application Performance on Virtual Machines...with flash-based caching in the server Published: August 2011 FlashSoft Corporation 155-A W. Moffett Park Dr Sunnyvale, CA 94089 info@flashsoft.com

More information

Chapter 12 File Management

Chapter 12 File Management Operating Systems: Internals and Design Principles Chapter 12 File Management Eighth Edition By William Stallings Files Data collections created by users The File System is one of the most important parts

More information