Delta Table Performance Is Governed By Transaction Size

Delta Table Performance Is Governed By Transaction Size

Technology

Relational Databases are known for their atomic, consistent, independent and durable properties (ACID).? The first version of Apache Spark was released in 2014? However, the tables in the hive catalog did not have any ACID properties at that time.? That was because the hive catalog stored the schema for reading the source files at run time.? Databricks released the Delta file format in 2019 which changed how big data engineers inserted, updated, and deleted data within a data lake.

In short, a Delta table is composed of parquet files that contain rows of data and JSON files that keep track of transactions (actions).? If we execute large transactions, then the number of files that are generated is ?kept to a minimum.? However, many small transactions can cause performance issues due to the large number of files that are created.

Business Problem

Our manager has asked us to research why small batches can cause performance problems with the Delta file format.? Next, the same code will be rewritten to use large batches which will eliminates the performance issue.

Technical Solution

I have used the trial by division algorithm to find the prime numbers from 2 to 5 million.? This algorithm is a great way to bench mark a system since it uses both the computation unit as well as the storage system of the cluster.? Please see the Wikipedia page for details on algorithms to find prime numbers.? But first, we need to understand how the Delta file format works.

Please my recent article on SQL Server Central for full details.


Myint Htwe

Specialize in enterprise data handling and build data solution using Azure Databricks and Power BI for Effective AI Models.

5 个月

This is great. I was lucky that my data load fell into your optimized version, but I started seeing similar problems, and this post gives me an option to look into.

回复

要查看或添加评论,请登录

John Miner的更多文章

  • Parting is such sweet sorrow!

    Parting is such sweet sorrow!

    Today is the last day of the MVP Summit 2025. I want to thank Rie Merritt, Betsy Webber, and Rochelle Sonnenberg for…

    2 条评论
  • Why use Tally Tables in the Fabric Warehouse?

    Why use Tally Tables in the Fabric Warehouse?

    Technical Problem Did you know that Edgar F. Codd is considered the father of the relational model that is used by most…

  • Streaming Data with Azure Databricks

    Streaming Data with Azure Databricks

    Technical Problem The core functionality of Apache Spark has support for structured streaming using either a batch or a…

    1 条评论
  • Upcoming Fabric Webinars from Insight

    Upcoming Fabric Webinars from Insight

    Don't miss the opportunity to boost your data skills with Insight and Microsoft. This webinar series will help you…

  • How to develop solutions with Fabric Data Warehouse?

    How to develop solutions with Fabric Data Warehouse?

    Technology Details The SQL endpoint of the Fabric Data Warehouse allows programs to read from and write to tables. The…

  • Understanding file formats within the Fabric Lakehouse

    Understanding file formats within the Fabric Lakehouse

    I am looking forward to talking to the Cloud Data Driven user group on March 13th. You can find all the presentation…

    3 条评论
  • Engineering a Lakehouse with Azure Databricks with Spark Dataframes

    Engineering a Lakehouse with Azure Databricks with Spark Dataframes

    Problem Time does surely fly. I remember when Databricks was released to general availability in Azure in March 2018.

  • Create an Azure Databricks SQL Warehouse

    Create an Azure Databricks SQL Warehouse

    Problem Many companies are leveraging data lakes to manage both structured and unstructured data. However, not all…

    2 条评论
  • How to Load a Fabric Warehouse?

    How to Load a Fabric Warehouse?

    Technology The data warehouse in Microsoft Fabric was re-written to use One Lake storage. This means each and every…

  • My Year End Wrap Up for 2024

    My Year End Wrap Up for 2024

    Hi Folks, It has been a very busy year. At the start of this year I wanted to learn Fabric in depth.

    1 条评论

社区洞察

其他会员也浏览了