Live vs Extract Connection: A Road to Tableau Desktop Specialist Certification
Last Updated on March 28, 2022 by Editorial Team
Author(s): Daksh Trehan
Originally published on Towards AI the World’s Leading AI and Technology News and Media Company. If you are building an AI-related product or service, we invite you to consider becoming an AI sponsor. At Towards AI, we help scale AI and technology startups. Let us help you unleash your technology to the masses.
Chapter 4: An extensive guide to Live & Extract data connection, Logical Table & Physical Table inΒ Tableau
Welcome to the fourth chapter, In this piece, we are going to learn about data connections in Tableau and which one should you goΒ for.
If you want to navigate through other chapters, visit: Tableau: What it is? Why it is the best?; A road to Tableau Desktop Specialist Certification.
If you want to directly go on Tableau Desktop Specialist notes, access them here β https://dakshtrehan.notion.site/Tableau-Notes-c13fceda97b94bda940edbf6751cf30
Use the link to get access to free Tableau certification dumps (Valid till 13 AprΒ 2022):
When we connect our data, Tableau let us define two types of connections: Live &Β Extract.
Table ofΒ Content
- Live Connection
- Extract Connection
- Selecting a better connection type for yourΒ data
- Sample Exam Questions from thisΒ topic
Live Connection
As the name suggests, a Live connection is made when we want our data to keep flowing in our Tableau Data source from a dynamic database.
This offers flexibility when we want real-time updates and instantaneous insights.
Live data process queries in the source database.
By default, when we create a connection, it is a Live connection.
Single Cylinder represents Live Connection β
With Live connection, the data in our worksheet would be updated every time we re-open a worksheet or manually refreshes theΒ data.
To refresh the live dataΒ β
Extract Connection
βExtractsβ are one of the most underrated features ofΒ Tableau.
An Extract file haveΒ .hyper extension(previously referred asΒ .tde)
An extract connection is made over tde. Tableau Data Extract(.tde/also referred to as hyper file) is a compressed snapshot of live data that is stored locally and loaded into memory. To ease off our connection and minimize the load due to complex data, we can apply filters to our data, save it as aΒ .hyper file and later use them for our extract connection. This tends to be much faster than Live Connections and hence provides an edge when used for complex visualizations.
An extract process queries using Tableau Data Engine because a hyper file is so much optimized and efficient that Tableau in-memory Data engine can process queriesΒ easily.
An extract is only an extract for that particular workbook, and when it will be shared with others it will act as liveΒ data.
Double Cylinder represents Extract connection β
Extracts canβt be updated automatically, but can only be refreshed either manually or periodically.
Extracting Data inΒ Tableau
Method 1
Step1 β Chose βExtractβ Connection
Step2 β When we chose βExtractβ Data, Tableau ask for the location ofΒ .hyperΒ file.
Method 2
Step1 β Go to the Data pane and right-click on Data Connection and click on βExtractΒ Dataβ
Step2 β Add filters and modify the extract according to yourΒ needs.
Refreshing an Extract inΒ Tableau
Once an extract is made and loaded in our Workbook, there are two ways we can refresh ourΒ data:
The first option will refresh the connection, but since the connection is static, there wonβt be any changes reflected in your data. This option is also present in Live connection and is more specifically to be used when we are working with LiveΒ data.
The second option will create a new snapshot of the data i.e. new extract and hence the data in our workbook would beΒ updated.
To periodically refresh the data automatically, we can publish our data to Tableau Server and can choose the time interval for refreshing.
Tableau offers to refresh the data in two ways, we can either go for a full refresh, which replaces all the content in the extract or can use an incremental refresh, which only adds newΒ rows.
(Logical)Single Table vs Multiple(Physical) Table Extraction
Logical Tables are extracted byΒ default.
Only use Physical tables, when the extract constitutes multiple tables with equality joins and meet the following conditions:
- No RAWSQL.
- No Incremental refreshes.
- No Sampling.
- No ExtractΒ Filters.
- Data Types of Columns used for relationship/joins are identical.
- All joins between physical tables are equalityΒ joins.
Physical Tables should only be used when the size of our extract is larger than expected while Logical Tables must be used when we want to limit the amount of data in our extract using Filters or aggregations.
Selecting a better connection type for yourΒ data
Benefits of Live Connection
- Allows working with real-time data and provides instantaneous insights.
- This connection is suggested if youβre working with a rapid database.
Benefits of Extract Connection
- This can be used if you want a portableΒ dataset.
- It helps us to limit the amount of data weΒ need.
- It improves performance and efficiency.
- These are fast to create and workΒ with.
- These support additional functionalities such as the COUNTD function.
Disadvantages of Extract Connection
- This connection is not suggested while working with sensitive data, as the extract is saved locally and hence can be shared withΒ anyone.
- This requires a manualΒ refresh.
Sample Exam Questions from thisΒ Topic
Can we automatically refresh our ExtractΒ data?
- True
- False
Solution: True
Why should we not use ExtractΒ Data?
- They areΒ slow.
- They might expose confidential data.
- They are difficult toΒ use.
- They canβt be refreshed.
Solution: They might expose confidential data.
What is the extension for extracted data?
- .hyper
- .twb
- .tds
- .tbm
Solution:Β .hyper
By default, Tableau starts ____ connection.
- Live
- Extract
Solution: Live
Which connection should we use for real-time data?
- Live
- Extract
Solution: Live
Use the link to get access to free Tableau certification dumps (Valid till 13 AprΒ 2022):
References:
[1] Tableau Help | TableauΒ Software
[2] PersonalΒ Notes
[3]Tableau Desktop Specialist Exam (New Patternβββ2021)βββApisero
Thanks forΒ Reading!
Feel free to give claps so I know how helpful this post was for you, and share it on your social networks, this would be very helpful forΒ me.
If you like this article and want to learn more about Machine Learning, Data Science, Python, BI. Please consider subscribing to my newsletter:
Find me on Web: www.dakshtrehan.com
Connect with me at LinkedIn: www.linkedin.com/in/dakshtrehan
Read my Tech blogs: www.dakshtrehan.medium.com
Connect with me at Instagram: www.instagram.com/_daksh_trehan_
Want to learnΒ more?
How is YouTube using AI to recommend videos?
Detecting COVID-19 Using Deep Learning
The Inescapable AI Algorithm: TikTok
GPT-3 Explained to a 5-year old.
Tinder+AI: A perfect Matchmaking?
An insiderβs guide to Cartoonization using Machine Learning
How Google made βHum to Search?β
One-line Magical code to perform EDA!
Give me 5-minutes, Iβll give you a DeepFake!
Cheers
Live vs Extract Connection: A Road to Tableau Desktop Specialist Certification was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.
Join thousands of data leaders on the AI newsletter. Itβs free, we donβt spam, and we never share your email address. Keep up to date with the latest work in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming aΒ sponsor.
Published via Towards AI