in-memory is your data warehouse's new bff - s3-us-west …days... · •12.2 new features for...

40
www.RedPillAnalytics.com [email protected] @RedPillA © 2017 RED PILL Analytics In-Memory is Your Data Warehouse’s New BFF Michelle Kolbe [email protected] @MeKolbe linkedin.com/in/michelle.kolbe medium.com/@datacheesehead

Upload: trinhanh

Post on 04-Apr-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

www.RedPillAnalytics.com [email protected] @RedPillA © 2017 RED PILL Analytics

In-Memory is Your Data

Warehouse’s New BFF

Michelle Kolbe

[email protected]

@MeKolbe linkedin.com/in/michelle.kolbemedium.com/@datacheesehead

© 2017 RED PILL Analytics

Who is Red Pill Analytics?

www.RedPillAnalytics.com [email protected] @RedPillA © 2017 RED PILL Analytics

Red Pill Analytics: Leadership

3

Stewart Bryson

Oracle ACE Director

Previously From:

Rittman Mead

Informix Software

Data Warehousing &

Business Intelligence

since 1996

Kevin McGinley

Oracle ACE Director

Previously From:

Accenture

BI Consulting Group

Data Warehousing &

Business Intelligence

since 1997

www.RedPillAnalytics.com [email protected] @RedPillA © 2017 RED PILL Analytics

About Me

••

A unique approach to BI

and analytics delivery.

www.redpillanalytics.com

@RedPillA

•Development-as-a-Service

•Continuous Integration Products

•Agile Delivery

•Subscription Billing

•Traditional Consulting and Training

In Case You Missed the Memo

© 2017 RED PILL Analytics

www.RedPillAnalytics.com [email protected] @RedPillA © 2017 RED PILL Analytics

Agenda

•12.2 New Features for In-Memory

7

We Can Have it Both Ways

© 2014 RED PILL Analytics

www.RedPillAnalytics.com [email protected] @RedPillA © 2017 RED PILL Analytics

Breakthrough: Dual-Format Database

9

www.RedPillAnalytics.com [email protected] @RedPillA © 2017 RED PILL Analytics

Configuring the In-Memory Column Store

10

Two Memory Sub-Pools

© 2014 RED PILL Analytics

© 2014 RED PILL Analytics

IMCU pool: In Memory Compression Units

Actual Columnar Data

SMU pool: Snapshot Metadata Units(SMUs)

Metadata about Columnar Data

Populating the In-Memory Column Store

© 2017 RED PILL Analytics

Column Compression Units

© 2014 RED PILL Analytics

Columnar representation of many rows

Rows from one or more table extents

Dependent on row, compression factor, etc.

© 2017 RED PILL Analytics

www.RedPillAnalytics.com [email protected] @RedPillA © 2017 RED PILL Analytics

In-Memory Compression Unit

17

www.RedPillAnalytics.com [email protected] @RedPillA © 2017 RED PILL Analytics

In-Memory Area

18

Pure In-Memory Columnar Format

© 2017 RED PILL Analytics

Not Persisted on Storage

2x to 20x Compression

Enabled at the Segment Level

© 2014 RED PILL Analytics

ALTER TABLE sales INMEMORY;

ALTER TABLE sales NO INMEMORY;

ALTER TABLE sales INMEMORY

NO INMEMORY (PROD_ID);

CREATE TABLE customers ……

PARTITION BY LIST

(PARTITION p1 …… INMEMORY,

(PARTITION p2 …… NO INMEMORY);

Demo

Part 1

Recap

Size of the column store is controlled by

inmemory_size parameter

alter table lineorder inmemory;

Monitor the column store using v$im_segments

v$im_segments also shows our compress ratios

Querying the In-Memory Column Store

© 2017 RED PILL Analytics

Why is the In-Memory Column Store faster than the

Buffer Cache?

© 2017 RED PILL Analytics

Why is the In-Memory Column Store faster than the

Buffer Cache?

It’s all memory after all.

© 2017 RED PILL Analytics

© 2017 RED PILL Analytics

Column Store Storage Indexes

© 2017 RED PILL Analytics

Orders of Magnitude Faster Analytics Scans

Demo

Part 2

Recap

Alter session set inmemory_query=disable;

inmemory & no_inmemory hints

Column store 40X faster than buffer cache on

single row access

Storage index MIN/MAX pruning reduces data

scans significantly

12c R2 New Features for In-Memory

© 2017 RED PILL Analytics

New Objects for In-Memory:

Virtual Columns

Column Expressions

© 2017 RED PILL Analytics

In-Memory Fast Start

© 2017 RED PILL Analytics

Join Groups

© 2017 RED PILL Analytics

Expression Tracking

© 2017 RED PILL Analytics

Resize

© 2017 RED PILL Analytics

In-Memory Support on Oracle Active Data Guard

© 2017 RED PILL Analytics

© 2016 RED PILL Analytics

Text Here

http://collaborate.ioug.org

www.RedPillAnalytics.com [email protected] @RedPillA © 2017 RED PILL Analytics

In-Memory is Your Data

Warehouse’s New BFF

Michelle Kolbe

[email protected]

@MeKolbe linkedin.com/in/michelle.kolbemedium.com/@datacheesehead