understanding tableau's visual pipeline

51

Upload: mrunal-shridhar

Post on 13-Apr-2017

515 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Understanding Tableau's Visual Pipeline
Page 2: Understanding Tableau's Visual Pipeline

Visual

# V i s u a l P i p e l i n e

Scott Sherman Mrunal Shridhar

Principal Software Engineer Sales Consultant, EMEA

Page 3: Understanding Tableau's Visual Pipeline

What makes a view slow?

Page 4: Understanding Tableau's Visual Pipeline

Executing Query

Computing View

Layout

Marks Table Calculations

SortingAggregations and Joins

Calculated Fields Filters

Connect to Data

Computing Quick Filters

Capabilities Checking

Native vs Generic ODBC

Cascading Filters

Itemized or Ranged Filters

Page 5: Understanding Tableau's Visual Pipeline
Page 6: Understanding Tableau's Visual Pipeline
Page 7: Understanding Tableau's Visual Pipeline
Page 8: Understanding Tableau's Visual Pipeline

Query Data Layout Render

Page 9: Understanding Tableau's Visual Pipeline

Query

• Query database

Data Layout Render

Page 10: Understanding Tableau's Visual Pipeline

Latency

Time it takes to query

Time to stream records back

Number of records

Large number vs. smaller number of aggregated records

Number and complexity of joins

Number, type and complexity of calculated fields

Number and type of filters

Page 11: Understanding Tableau's Visual Pipeline
Page 12: Understanding Tableau's Visual Pipeline

Query

• Query database

• Cache results

Data Layout Render

Page 13: Understanding Tableau's Visual Pipeline

To ensure interactivity

Latency and predictability

Higher responsiveness

Data extracts

If our queries are fast, why bother with caching?

Reduce load on the database

Reduce network traffic

Page 14: Understanding Tableau's Visual Pipeline

In literal query

cache?In abstract query

cache?

Query

data sourceMissMiss

Post-process cache

entry

Abstract

query

Literal

query

Query results

Literal

query

Page 15: Understanding Tableau's Visual Pipeline

Dashboard/workbook

Refresh thumbnails

Story points

Click through the whole story

Load data into memory

Filter to single row

Add all needed fields to LOD

On server no guarantee that all caches are warm

Page 16: Understanding Tableau's Visual Pipeline

•Quick filters

Add filtering dimension to the view if that doesn’t change LOD

Add to tooltips – won’t affect LOD

Add filtering measure in the view

•Logging

Cache miss – ‘end-query’ event

Cache hit – no query entry

Page 17: Understanding Tableau's Visual Pipeline

Query Data

• Geocoding

• Blending

• Calculated fields

• Local filters

• Totals

• Forecasting

• Table calculations

• Table calc filters

• Sort

Layout Render

Page 18: Understanding Tableau's Visual Pipeline

Query Data Layout

• Layout views

• Compute legends

• Mark types

Render

Page 19: Understanding Tableau's Visual Pipeline

Query Data Layout Render

• Marks

• Selection

• Highlighting

• Labels

Page 20: Understanding Tableau's Visual Pipeline

Query Data

• Geocoding

• Blending

• Calculated fields

• Local filters

• Totals

• Forecasting

• Table calculations

• Table calc filters

• Sort

Layout

• Layout views

• Compute legends

• Mark types

Render

• Marks

• Selection

• Highlighting

• Labels

Page 21: Understanding Tableau's Visual Pipeline

? ? ? ?

Query Data

• Geocoding

• Blending

• Calculated fields

• Local filters

• Totals

• Forecasting

• Table calculations

• Table calc filters

• Sort

Layout

• Layout views

• Compute legends

• Mark types

Render

• Marks

• Selection

• Highlighting

• Labels

Page 22: Understanding Tableau's Visual Pipeline

Query Data

• Geocoding

• Blending

• Calculated fields

• Local filters

• Totals

• Forecasting

• Table calculations

• Table calc filters

• Sort

Layout

• Layout views

• Compute legends

• Mark types

Render

• Marks

• Selection

• Highlighting

• Labels

or

Page 23: Understanding Tableau's Visual Pipeline

? ? ? ?

Query Data

• Geocoding

• Blending

• Calculated fields

• Local filters

• Totals

• Forecasting

• Table calculations

• Table calc filters

• Sort

Layout

• Layout views

• Compute legends

• Mark types

Render

• Marks

• Selection

• Highlighting

• Labels

Page 24: Understanding Tableau's Visual Pipeline

Extract Filters

Data Source Filters

Context Filters

Dimension Filters (including LOD dimensions)

Measure Filters (including LOD measures)

Local Filters (ATTR, geocoding)

Table Calc Filters

Hide

database

local

Page 25: Understanding Tableau's Visual Pipeline

Query Data

• Geocoding

• Blending

• Calculated fields

• Local filters

• Totals

• Forecasting

• Table calculations

• Table calc filters

• Sort

Layout

• Layout views

• Compute legends

• Mark types

Render

• Marks

• Selection

• Highlighting

• Labels

or

Page 26: Understanding Tableau's Visual Pipeline

? ? ? ?

Query Data

• Geocoding

• Blending

• Calculated fields

• Local filters

• Totals

• Forecasting

• Table calculations

• Table calc filters

• Sort

Layout

• Layout views

• Compute legends

• Mark types

Render

• Marks

• Selection

• Highlighting

• Labels

Page 27: Understanding Tableau's Visual Pipeline

Query Data

• Geocoding

• Blending

• Calculated fields

• Local filters

• Totals

• Forecasting

• Table calculations

• Table calc filters

• Sort

Layout

• Layout views

• Compute legends

• Mark types

Render

• Marks

• Selection

• Highlighting

• Labels

Page 28: Understanding Tableau's Visual Pipeline

…unless it impacts

highlighting…

Query Data

• Geocoding

• Blending

• Calculated fields

• Local filters

• Totals

• Forecasting

• Table calculations

• Table calc filters

• Sort

Layout

• Layout views

• Compute legends

• Mark types

Render

• Marks

• Selection

• Highlighting

• Labels

Page 29: Understanding Tableau's Visual Pipeline

or

…or

filtering

Query Data

• Geocoding

• Blending

• Calculated fields

• Local filters

• Totals

• Forecasting

• Table calculations

• Table calc filters

• Sort

Layout

• Layout views

• Compute legends

• Mark types

Render

• Marks

• Selection

• Highlighting

• Labels

Page 30: Understanding Tableau's Visual Pipeline
Page 31: Understanding Tableau's Visual Pipeline

Query Data

• Geocoding

• Blending

• Calculated fields

• Local filters

• Totals

• Forecasting

• Table calculations

• Table calc filters

• Sort

Layout

• Layout views

• Compute legends

• Mark types

Render

• Marks

• Selection

• Highlighting

• Labels

Page 32: Understanding Tableau's Visual Pipeline

Query Data

• Geocoding

• Blending

• Calculated fields

• Local filters

• Totals

• Forecasting

• Table calculations

• Table calc filters

• Sort

Layout

• Layout views

• Compute legends

• Mark types

Render

• Marks

• Selection

• Highlighting

• Labels

Page 33: Understanding Tableau's Visual Pipeline

Limitations

• Quantitative

Page 34: Understanding Tableau's Visual Pipeline

Limitations

• Quantitative

• Field must be in viz

Page 35: Understanding Tableau's Visual Pipeline

Limitations

• Quantitative

• Field must be in viz

• No table calcs

Page 36: Understanding Tableau's Visual Pipeline

Limitations

• Quantitative

• Field must be in viz

• No table calcs

• No dependent totals

Page 37: Understanding Tableau's Visual Pipeline

Limitations

• Quantitative

• Field must be in viz

• No table calcs

• No dependent totals

• No stacking

Page 38: Understanding Tableau's Visual Pipeline

Limitations

• Quantitative

• Field must be in viz

• No table calcs

• No dependent totals

• No stacking

• No polygons

Page 39: Understanding Tableau's Visual Pipeline

Limitations

• Quantitative

• Field must be in viz

• No table calcs

• No dependent totals

• No stacking

• No polygons

Page 40: Understanding Tableau's Visual Pipeline
Page 41: Understanding Tableau's Visual Pipeline

Interactivity in the

browser

the best of both worlds

power vs.

responsiveness

Page 42: Understanding Tableau's Visual Pipeline

Power Responsiveness

Interactive filters

Fast highlighting

Changes when mouse moves

1,000,000+ marks

Forecasting, table calcs

Query databases

Page 43: Understanding Tableau's Visual Pipeline

BrowserServer

Is viz simple?

Interactive

data

Very

responsive

Bitmaps

Full power of

server

Page 44: Understanding Tableau's Visual Pipeline

Fast selection

Fast highlighting

Fast tooltips

Live hover actions

Interactive filtering

Page 45: Understanding Tableau's Visual Pipeline

< ~5000 marks, headers, annotations, etc.

No custom shapes

No polygons

No page trails

Simple filtering

Page 46: Understanding Tableau's Visual Pipeline

Query databases

Compute calculated fields

Apply forecasting models

Compute reference lines and trend lines

Sort

Layout

Work with 1,000,000+ marks

Far more than Flash or JavaScript apps

Page 47: Understanding Tableau's Visual Pipeline
Page 48: Understanding Tableau's Visual Pipeline

Questions?

Page 49: Understanding Tableau's Visual Pipeline

Please complete

the session survey

from the Session

Details screen in

your TC15 app

Page 50: Understanding Tableau's Visual Pipeline

Scott Sherman Mrunal Shridhar

[email protected] [email protected]

@loki3dot @mrunalshridhar

Page 51: Understanding Tableau's Visual Pipeline