Geeky Codes
Geeky Codes | AI Engineering, Data Engineering & Machine Learning Tutorials
- Website
- geekycodes.in · all feeds from this site
- Feed URL
https://geekycodes.in/feed/
Read it in your FeedListing reader
Or add to: Feedly Inoreader Raw feed
Latest posts
-
Checkpointing in Apache Spark: How to Break Long Lineage and Improve Reliability
Learn how checkpoint() works, why long execution plans become expensive, and when reliable or local checkpointing makes sense in production PySpark applications. This series progresses from fundamentals and architecture to APIs, execution, data movement, optimization, and…
-
Persistence in Apache Spark: The Complete Guide to persist() and Storage Levels
Learn how Spark stores intermediate DataFrames and RDDs in memory, disk, or both—and when persistence can dramatically improve performance. If you work with Apache Spark long enough, you’ll eventually encounter a situation like this: You have a DataFrame that takes several…
-
The Databricks Code Smell That Creates Expensive Shuffles
Spark operations like groupBy(), joins, and distinct() can lead to expensive data shuffling in large datasets, which may not be evident during development. The cost arises from the process of redistributing data among executors, often causing prolonged runtime. Careful…
-
Partitioning in Apache Spark: How to Control Parallelism and Improve Performance
This tutorial emphasizes the significance of partitioning in Apache Spark, detailing how it optimizes parallel processing, resource utilization, and performance. It covers partition creation, management functions like repartition() and coalesce(), and the impact of data skew.…
-
Shuffle in Apache Spark: How Data Moves Across Partitions
If you’ve worked with Apache Spark for even a short time, you’ve probably encountered one of the most important—and potentially expensive—operations in distributed data processing: Shuffle. Whenever Spark needs to move data between partitions, a shuffle may occur. This commonly…
-
Accumulators in Apache Spark: How They Work, When to Use Them, and Common Pitfalls
Apache Spark utilizes accumulators to enable executors to communicate aggregated values back to the driver while processing massive datasets. These shared variables are ideal for counting or tracking diagnostic information. While they are useful for monitoring, accumulators…
-
Broadcast Variables in PySpark: A Practical Guide to Distributed Data Processing
This tutorial discusses Broadcast Variables in Apache Spark, highlighting their role in optimizing data distribution across executors. By broadcasting small, read-only data instead of transferring it with every task, Spark reduces network overhead. The guide includes practical…
-
UDFs in PySpark: When to Use Them, Why They Can Be Slow, and Better Alternatives
How User-Defined Functions work inside Spark—and why experienced PySpark engineers treat them carefully You have a DataFrame. You need to apply a custom transformation. So you write a Python function: Then you turn it into a UDF: It works. But there is an important question:…
-
Aggregations in PySpark: From groupBy() to Production-Scale Spark Jobs
groupBy() looks simple in PySpark, but Aggregations scale and can trigger one of Spark’s most expensive operations: a shuffle. If you’re preparing for PySpark interviews or working with Spark in production, follow me for practical Data Engineering, AI/ML, and PySpark content. 📩…
-
Stop Paying for Bad Code: How Databricks Code Optimization Saves Your Cloud Bill
This article emphasizes an optimization mindset for Data Engineers using Databricks. It highlights the importance of understanding Apache Spark's execution to minimize unnecessary compute costs. Key strategies include efficient data handling, optimizing code, and analyzing…