Lightning Talk: Get Even More Value from MongoDB Applications

22
Teradata + MongoDB [email protected] Dec 3,2014

Transcript of Lightning Talk: Get Even More Value from MongoDB Applications

Page 1: Lightning Talk: Get Even More Value from MongoDB Applications

Teradata + MongoDB [email protected]

Dec 3,2014

Page 2: Lightning Talk: Get Even More Value from MongoDB Applications

2

• Teradata Corporation – 30+ years experience– Global Leader in Enterprise Data Warehousing

- Teradata/Aster Database Technology- Teradata Applications- Consulting Services

• Top 10 US Software Company – Positioned in Gartner’s Leader’s Quadrant since 1999– InformationWeek’s Top 10 Most Strategic Vendors– Dow Jones Sustainability Index– World’s Most Ethical Companies – Ethisphere Institute– #2 in The 25 Best Companies in America - The Motley Fool

• Global presence and world-class customer list– 1,500+ customers in ~70 countries – 10,000+ data professionals world wide

Big Data Since 1984

Page 3: Lightning Talk: Get Even More Value from MongoDB Applications

3

Teradata in the Data Warehouse Market

Page 4: Lightning Talk: Get Even More Value from MongoDB Applications

4

• We added JSON to tables as columns

• Any user has easy access to JSON– Dashboards, ad hoc, OLAP

– Predictive analytics, statistics, etc.

– Discovery analytics

JSON in the Data Warehouse

Teradata

Databasestable

BI Tools

SQL

Sourcedata

ETL

JSON

Page 5: Lightning Talk: Get Even More Value from MongoDB Applications

5

{ "MFG_Line": {

"Product”: {

"Color”: "Red”,

"Size”: "Large”

"Prod_ID”: 100,

"Create_Time”: "2013-06-15 20:07:27”

},

"Machine”: {

"Temp”: 95,

"Warning”: null,

"FW_Version”: 1.2,

"Sensor_Code”: 152

}

} }

Scenario: Machines Packing Boxes Emits JSON

Page 6: Lightning Talk: Get Even More Value from MongoDB Applications

6

JSONPath in Teradata 15.0 SQL

Color Size Prod_ID Create_Time

----- ----- ------- -------------------

Blue Small 96 2013-06-17 20:07:27

SELECT

box.MFG_Line.Product.Color AS "Color",

box.MFG_Line.Product.Size AS "Size",

box.MFG_Line.Product.Prod_ID AS "Prod_ID",

box.MFG_Line.Product.Create_Time AS "Create_Time"

FROM mfgTable

WHERE CAST(box.MFG_Line.Product.Create_Time

AS TIMESTAMP) >= TIMESTAMP'2013-06-16 00:00:00'

AND box.MFG_Line.Product.Prod_ID = 96;

Page 7: Lightning Talk: Get Even More Value from MongoDB Applications

7

eCommerce in Action: A Virtuous Cycle

Buyer preferences

Sales catalog

Campaigns

Recent purchases

Profitability

DataWarehouse

Shard

Shard

Shard

Shard

Shard

Shard

Shard

Shard

Page 8: Lightning Talk: Get Even More Value from MongoDB Applications

8

Call Center Efficiency

Trouble tickets

Web clicks

Payment history

Claims

Up-sell offers

Data

Warehouse

Shard

Shard

Shard

Shard

Shard

Shard

Shard

Shard

web logs

Page 9: Lightning Talk: Get Even More Value from MongoDB Applications

9

Parallel Integration with MongoDB

Page 10: Lightning Talk: Get Even More Value from MongoDB Applications

10

TERADATA ASTER

SQL,SQL-MR,SQL-GR

OTHERDATABASES

Remote Data

Teradata and MongoDB: QueryGrid

Teradata Systems

TERADATA DATABASE

HADOOP

Push-down to Hadoop

IDW

TERADATA DATABASE

Discovery

ASTER DATABASE

Business users Data scientists

MONGODB

NoSQLDatabase

Page 11: Lightning Talk: Get Even More Value from MongoDB Applications

11

• Standard Server Grammar SELECT doc. item_id, doc.desc

FROM collection@MongoDBserver doc

WHERE doc.qty > 1;

• Foreign Table Select SELECT doc.id, doc.descFROM FOREIGN TABLE (

‘testdb.products.find({ qty: { $lt: 25 } }, { item_id: 1, qty: 1,

desc: 1 }’ )@MongoDBserver AS imported_products(doc JSON(160000)) );

• Insert / ExportINSERT INTO testdb.customers@MongoDBserver

SELECT JSON_compose( item_id, doc.qty ) as document FROM cust_data;

Example QueryGrid Syntax

Page 12: Lightning Talk: Get Even More Value from MongoDB Applications

12

• Parallel data transfer for queries without aggregation

• Foreign query pass-through for selection, projection of data in MongoDB

SQL Connecting to MongoDB

SELECT prod_doc.itemid, prod_doc.qty FROM FOREIGN TABLE (

‘testdb.products.find({ qty: { $lt: 25 } }, { item_id: 1,

qty: 1 }’ )

@MongoServer

RETURNS (prod_doc JSON(160000)) AS imported_products

INNER JOIN local_products ON

local_products.product.item=prod_doc.itemid;

Page 13: Lightning Talk: Get Even More Value from MongoDB Applications

13

Scale-out NoSQL + Scale-out DW SQL

Application

Shard 1 Shard 2 Shard NShard 3

Primary Primary PrimaryPrimary

Query router Query router Query router

NoSQL

SQL

AMPAMP

PE

AMPAMP

PE

AMPAMP

PE

AMPAMP

PE

Page 14: Lightning Talk: Get Even More Value from MongoDB Applications

14

Query Router

Shard 1

Shard 2

Shard 3

Shard 4

Contract Phase

SQL

Teradata

node

AMP

AMP

AMP

AMP

PEE

A

H

Page 15: Lightning Talk: Get Even More Value from MongoDB Applications

15

Teradata

node

AMP

AMP

AMP

AMP

PEE

A

H

Contract Phase

Query Router

Shard 1

Shard 2

Shard 3

Shard 4

Page 16: Lightning Talk: Get Even More Value from MongoDB Applications

16

Teradata

node

AMP

AMP

AMP

AMP

PEE

A

H

Import Data from Shards

Query Router

Shard 1

Shard 2

Shard 3

Shard 4

Page 17: Lightning Talk: Get Even More Value from MongoDB Applications

17

• Teradata needs a partner with strong

JSON data solutions

• MongoDB = leader in new JSON

applications

• Operational + analytical

– Complementary

• Customers accelerate JSON analysis

Why Teradata and MongoDB Partnership?

MongoDB Teradata

Application Data

Analytics

Page 18: Lightning Talk: Get Even More Value from MongoDB Applications

18

Page 19: Lightning Talk: Get Even More Value from MongoDB Applications

19

Page 20: Lightning Talk: Get Even More Value from MongoDB Applications

Math

and Stats

Data

Mining

Business

Intelligence

Applications

Languages

Marketing

ANALYTIC TOOLS

& APPS

USERS

INTEGRATED DISCOVERY

PLATFORM

INTEGRATED DATA

WAREHOUSE

ERP

SCM

CRM

Images

Audio

and Video

Machine

Logs

Text

Web and

Social

SOURCES

DATA

PLATFORM

ACCESSMANAGEMOVE

TERADATA UNIFIED DATA ARCHITECTURE

Marketing

Executives

Operational

Systems

Frontline

Workers

Customers

Partners

Engineers

Data

Scientists

Business

Analysts

TERADATA DATABASE

HORTONWORKSCLOUDERA

MAPR

TERADATA DATABASE

TERADATA ASTER DATABASE

Page 21: Lightning Talk: Get Even More Value from MongoDB Applications

21

Forrester Data Warehouse Wave December 2013

Page 22: Lightning Talk: Get Even More Value from MongoDB Applications

2222 © 2014 Teradata