Advancing Spark - Give your Delta Lake a boost with Z-Ordering

  Рет қаралды 27,355

Advancing Analytics

Advancing Analytics

Күн бұрын

One of the big features of Delta Lake on Databricks (over the open source Delta Lake at Delta.io) is the Optimize command, and with it the ability to Z-Order your data... but what does that actually do? Why would you use it?
In this week's AdvancingSpark, Simon takes us through Z-Ordering, what it is and how you can enjoy the benefits of Data Skipping!
For more info, and the Databricks demo notebook used first, see: docs.databricks.com/delta/opt...
As always, for more blogs, insights and to get in touch for consultancy & training, come and visit us at: www.advancinganalytics.co.uk/

Пікірлер: 23
@dheerajmuttreja
@dheerajmuttreja 9 ай бұрын
Hey Simon .. Great explanation with proper use snd demo
@katetuzov9745
@katetuzov9745 Жыл бұрын
Brilliant explanation, well done!
@nadezhdapandelieva3387
@nadezhdapandelieva3387 11 ай бұрын
Hi Simon, I like your videos, they are super useful. Can you make some videos on how to optimize jobs and reduce the performance time or how to investigate when optimization is needed on the job?
@kingslyroche
@kingslyroche 3 жыл бұрын
good explanation! thanks.
@nsrchndshkh
@nsrchndshkh 3 жыл бұрын
Thank you very much
@devanssshhh
@devanssshhh 2 жыл бұрын
hey Thanks its a great video.
@DebayanKar7
@DebayanKar7 Жыл бұрын
Awesome-ly Explained !!!!
@nayeemuddinmoinuddin2186
@nayeemuddinmoinuddin2186 2 жыл бұрын
Hi Simon - Thanks for this awesome video. One quick question , Do Optimize and Z-order disturb the checkpoint in case of Structured Streaming?
@vt1454
@vt1454 Жыл бұрын
Great Videos Simon. One suggestion on background ribbons of slides. The ribbons on your slide templates keep moving and are bit uncomfortable to eyes. Request if this can be static
@the.activist.nightingale
@the.activist.nightingale 3 жыл бұрын
Simon is back!!!! Thank you for this awesome video :) Could you make one explaining how we can profile a spark script in order to identify optimizing tuning opportunities ? I always fo the the Spark UI but I'm completely lost. I know one thing for sure, too much is swapping between nodes is bad news :)!
@AdvancingAnalytics
@AdvancingAnalytics 3 жыл бұрын
Oooh, ok, so a quick tour of the Spark UI and "some things to look out for" when diagnosing spark performance problems? I'll add it to the list - need to thing about what the top ones would be or it'll be two hours long! Simon
@the.activist.nightingale
@the.activist.nightingale 3 жыл бұрын
Advancing Analytics You’re the real MVP Simon! TY!!
@sarmachavali7676
@sarmachavali7676 2 жыл бұрын
Hi Simon, Nice video and is useful. I have a quick question, we are replicating huge data from MSSQL Datawarehouse to Deltalake using DLT(including CDC changes) with continuous mode .As part of that, i have specified my zorder is same as primary key; Does this increases the performance of merge operation in (apply statement) or not.How can i check this performance metrics.
@dmitryanoshin8004
@dmitryanoshin8004 3 жыл бұрын
Can I have partition by date and Zorder by event name? Or partition and Z should be same columns?
@vishalaaa1
@vishalaaa1 Жыл бұрын
excellent
@cchalc-db
@cchalc-db 3 жыл бұрын
Can you share the NYTaxi notebook?
@ipshi1234
@ipshi1234 3 жыл бұрын
Thanks Simon for the great video! I'm curious if I would have to achieve Z-ordering in Delta Lake Synapse, how would I be able to? As the Optimize command is only available on the Databricks runtime? Thank you :)
@AdvancingAnalytics
@AdvancingAnalytics 3 жыл бұрын
Hey! On the file optimisation level, you could maybe achieve something similar using bucketing - but you wouldn't get the same data skipping benefits. Probably easier to just spin up a databricks cluster over the same data and use that for maintenance jobs (again, Synapse wouldn't do the data skipping part, but your files would be arranged properly) For the indexing/query performance side - Microsoft have been building "Hyperspace", which is an indexing system separate to Delta. This might be the answer for where you can't optimize tables...but it's a very early product, I've not had a go at using it yet! Simon
@PersonOfBook
@PersonOfBook 3 жыл бұрын
Can you use both partition by and zorder by, on the same column or different columns. And if so, would it be beneficial? Also, why do you enclose spark.read with brackets?
@AdvancingAnalytics
@AdvancingAnalytics 3 жыл бұрын
Hey - so you /can/ z-order by a column you've partitioned on, but it'll give no benefit as your data is already sorted into those values by the partitioning! And brackets around the spark statement means you can span multiple lines without needing a line escape '\' for every line!
@preethi7674
@preethi7674 2 жыл бұрын
In production environments, do we have to zorder the tables weekly to improve performance?
@workwithdata6659
@workwithdata6659 5 ай бұрын
Yes. You will have to z order on regular basis. And there is no guarantee that only new files will be re-written. Running optimize on big tables which get good size of incremental data can be counter productive.
@AndreasBergstedt
@AndreasBergstedt 3 жыл бұрын
1st :)
Advancing Spark - Understanding the Spark UI
30:19
Advancing Analytics
Рет қаралды 50 М.
Advancing Spark - Data Lakehouse Star Schemas with Dynamic Partition Pruning!
18:00
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 51 МЛН
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,7 МЛН
Advancing Spark - Rethinking ETL with Databricks Autoloader
21:09
Advancing Analytics
Рет қаралды 25 М.
Diving into Delta Lake 2.0
29:37
Databricks
Рет қаралды 4,3 М.
Advancing Spark - Setting up Databricks Unity Catalog Environments
21:21
Advancing Analytics
Рет қаралды 16 М.
Advancing Spark - Databricks Delta Change Feed
17:01
Advancing Analytics
Рет қаралды 14 М.
Advancing Spark - Databricks Delta Streaming
20:07
Advancing Analytics
Рет қаралды 28 М.
Making Apache Spark™ Better with Delta Lake
58:10
Databricks
Рет қаралды 173 М.
Advancing Spark - Databricks Runtime 7 2 & Delta Cloning
15:22
Advancing Analytics
Рет қаралды 1,5 М.
Delta Tables
16:24
Pragmatic Works
Рет қаралды 9 М.