<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Data Engineer - Medium]]></title>
        <description><![CDATA[The best medium blogs on data engineering, big data, cloud services, and Data Science. - Medium]]></description>
        <link>https://medium.com/data-engineer?source=rss----dbe8a47e0abe---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Data Engineer - Medium</title>
            <link>https://medium.com/data-engineer?source=rss----dbe8a47e0abe---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:09:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/data-engineer" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SQL Optimization Techniques You Should Know for Data Engineer Interviews]]></title>
            <link>https://medium.com/data-engineer/sql-optimization-techniques-you-should-know-for-data-engineer-interviews-2ede2768b888?source=rss----dbe8a47e0abe---4</link>
            <guid isPermaLink="false">https://medium.com/p/2ede2768b888</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Vishal Barvaliya]]></dc:creator>
            <pubDate>Fri, 26 Jun 2026 18:02:40 GMT</pubDate>
            <atom:updated>2026-06-26T18:02:41.338Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>I offer 1:1 data engineering mentoring and interview prep on Topmate — </em></strong><a href="https://topmate.io/vishalbarvaliya"><strong><em>book a session here</em></strong></a><strong><em>.</em></strong></blockquote><p><strong>Read this blog for free:</strong> <a href="https://medium.com/@vishalbarvaliya/sql-optimization-techniques-you-should-know-for-data-engineer-interviews-2ede2768b888?sk=bd603cc4508f971de1317347fd22f567">https://medium.com/@vishalbarvaliya/sql-optimization-techniques-you-should-know-for-data-engineer-interviews-2ede2768b888?sk=bd603cc4508f971de1317347fd22f567</a></p><p>Let’s be honest — every data engineer interview has at least one question about <strong>SQL optimization</strong>.<br>It could sound simple like <em>“</em><strong><em>How can you make this query faster?</em></strong><em>”</em>, but the goal is to see if you understand <strong>how databases think</strong>.</p><p>If you can explain how a query runs, what slows it down, and what can make it faster, you’re already ahead of most candidates.</p><p>In this blog, I’ll explain the most practical SQL optimization techniques I’ve learned from real projects and interviews in plain, simple language.</p><h3>📘 What You’ll Learn</h3><p><strong>In this post, we’ll go through:</strong></p><ul><li>Why SQL optimization matters in interviews</li><li>Query-level techniques, small changes that make a big difference</li><li>Schema and design optimization, how your data model impacts speed</li><li>System-level improvements, when configuration matters</li><li>Advanced techniques for senior data engineer interviews</li><li>Common mistakes you should avoid</li><li>How to answer optimization questions confidently</li><li>Conclusion</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*LB6zFWAU9jOQtDkD" /><figcaption><a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Ffr.wikipedia.org%2Fwiki%2FStructured_Query_Language&amp;psig=AOvVaw3ByoCgCh0jVMGkf8RbRAMk&amp;ust=1761594846593000&amp;source=images&amp;cd=vfe&amp;opi=89978449&amp;ved=0CBEQjRxqFwoTCLj816rSwpADFQAAAAAdAAAAABAE">Image Source</a></figcaption></figure><h3>🧠 Why Interviewers Ask About SQL Optimization</h3><p>As a data engineer, you deal with large datasets sometimes millions or even billions of rows.<br>A poorly written query can slow down reports, break pipelines, or block other users.</p><p><strong>Interviewers ask optimization questions to see if you:</strong></p><ul><li>Know how SQL queries actually run</li><li>Can identify performance bottlenecks</li><li>Understand indexing and data design</li><li>Think like a database engine, not just a coder</li></ul><h3>⚙️ 1. Query-Level Optimization (The Basics)</h3><p><strong><em>These are the small things that make a big difference.</em></strong></p><h4>1.1 Avoid SELECT *</h4><ul><li>This is the number one rule in almost every interview.</li></ul><pre>-- Bad<br>SELECT * FROM orders;<br><br>-- Good<br>SELECT order_id, customer_id, order_date FROM orders;</pre><p><strong>Why?</strong></p><ul><li>Because SELECT * fetches all columns even the ones you don’t need. It increases the amount of data transferred and slows everything down.</li><li>Always select only what you need.</li></ul><h4>1.2 Filter Early Using WHERE</h4><ul><li>If you only need a small part of the data, tell the database that right away.</li></ul><pre>SELECT * <br>FROM orders <br>WHERE order_status = &#39;DELIVERED&#39;;</pre><ul><li>Adding filters early helps the database scan fewer rows and speeds up joins and aggregations.</li></ul><p>💡 <strong>Interview tip:</strong><br> If they show you a slow query, look for missing filters or filters placed after a join. That’s usually the issue.</p><h4>1.3 Use Indexes Wisely</h4><p>Indexes are like a book’s table of contents they help the database find rows faster.</p><p><strong>But they only work when:</strong></p><ul><li>You filter or join using the indexed column.</li><li>You don’t wrap the column inside a function (like UPPER() or DATE()).</li></ul><p><strong>Example:</strong></p><pre>-- Won’t use index<br>WHERE YEAR(order_date) = 2024<br><br>-- Will use index<br>WHERE order_date BETWEEN &#39;2024-01-01&#39; AND &#39;2024-12-31&#39;</pre><p><strong>Pro tips:</strong></p><ul><li>Put the most selective column first in a multi-column index.</li><li>Don’t create too many indexes — they slow down inserts and updates.</li></ul><h4>1.4 Choose the Right Join and Order</h4><ul><li>INNER JOIN is faster than LEFT JOIN because it only keeps matching records.</li><li>Also, always try to <strong>filter before joining</strong>, not after.</li></ul><p><strong>Example:</strong></p><pre>SELECT *<br>FROM (SELECT * FROM orders WHERE order_status = &#39;DELIVERED&#39;) o<br>JOIN customers c ON o.customer_id = c.id;</pre><p><strong>In interviews:</strong></p><ul><li>If you mention that you’d “filter early and index join keys,” you’ll sound like someone who actually works with large datasets.</li></ul><h4>1.5 Avoid Using DISTINCT or UNION Unnecessarily</h4><ul><li>Both DISTINCT and UNION require sorting and removing duplicates — which is expensive.</li><li>If you use them often, it might mean your join logic is off.</li><li>Try to fix the logic instead of using DISTINCT as a band-aid.</li></ul><h4>1.6 Always Check the Execution Plan</h4><ul><li>Every database has a command like this:</li></ul><pre>EXPLAIN ANALYZE SELECT * FROM orders;</pre><ul><li>It shows how your query runs, which indexes are used, whether it scans the whole table, and how costly each step is.</li><li>If you mention that you’d <strong>“check the execution plan to find bottlenecks”</strong> it immediately gives you credibility in an interview.</li></ul><h3>2. Schema &amp; Data Design Optimization</h3><p><strong><em>Sometimes, the query isn’t the problem the table design is.</em></strong></p><h4>2.1 Index the Right Columns</h4><ul><li>Indexes help with performance, but they also slow down write operations. So choose carefully.</li></ul><p><strong>Good candidates for indexing are:</strong></p><ul><li>Columns used often in WHERE filters</li><li>Columns used in JOIN conditions</li><li>Columns used in ORDER BY or GROUP BY</li></ul><p>But don’t index every column, balance is the key.</p><h4>2.2 Use Correct Data Types</h4><ul><li>Don’t store dates as text or numbers as strings.</li></ul><p><strong>Always use the right type for the right data:</strong></p><ul><li>Use INT for IDs</li><li>Use DATE or DATETIME for time data</li><li>Use BOOLEAN for true/false values</li></ul><p>This reduces storage and speeds up comparisons.</p><h4>2.3 Normalize but Not Too Much</h4><ul><li>Normalization (splitting tables) avoids duplication but can lead to many joins.</li><li>Too many joins can slow down queries, especially in analytics.</li><li>So for reporting or read-heavy systems, a little <strong>denormalization</strong> can actually improve performance.</li></ul><p><strong>In an interview, say something like:</strong></p><blockquote><em>“I’d keep normalized tables for transactional data, but use denormalized structures or views for reporting.”</em></blockquote><p>That’s a mature, balanced answer.</p><h4>2.4 Partition Large Tables</h4><ul><li>If you have billions of rows, partition the table by a logical column like order_date or region.</li><li>That way, queries only scan the relevant partitions instead of the entire dataset.</li></ul><h4>2.5 Use Materialized Views or Summary Tables</h4><ul><li>If you run heavy aggregations (like total sales per month), don’t compute them again and again. Instead, store them in a pre-aggregated table or a <strong>materialized view</strong>, and refresh it daily.</li></ul><p><strong>This reduces compute time and improves performance dramatically.</strong></p><h3>⚡ 3. System and Configuration Optimization</h3><p>Even great queries can be slow if the system is not tuned properly.</p><h4>3.1 Batch Inserts and Updates</h4><ul><li>Instead of running 1000 separate insert statements, combine them:</li></ul><pre>INSERT INTO sales VALUES (...), (...), (...);</pre><ul><li>It reduces transaction overhead and runs much faster.</li></ul><h4>3.2 Keep Statistics Up to Date</h4><ul><li>Databases rely on table statistics to choose the best query plan. If those stats are outdated, the optimizer can make poor decisions.</li></ul><p><strong>Use:</strong></p><pre>ANALYZE TABLE table_name;</pre><p>or turn on automatic statistics updates.</p><h4>3.3 Use Connection Pooling</h4><ul><li>Every time your application opens a new database connection, it takes extra time.</li><li>Connection pools keep a few ready to use, making queries faster under heavy load.</li></ul><h3>🧮 4. Advanced Techniques for Senior Roles</h3><p><strong><em>These topics often come up in mid- to senior-level data engineer interviews.</em></strong></p><h4>4.1 Rewrite Complex Queries</h4><ul><li>Simplify nested subqueries using <strong>CTEs</strong> (Common Table Expressions) or joins.</li><li>Readable queries are not only easier to maintain but also easier for the optimizer to handle.</li></ul><h4>4.2 Understand Join Strategies</h4><p>Databases use different join types internally:</p><ul><li><strong>Nested Loop Join</strong> → good for small datasets</li><li><strong>Hash Join</strong> → great for large, unsorted tables</li><li><strong>Merge Join</strong> → works best when both tables are already sorted</li></ul><p>If you can explain when each join works better, you’ll easily impress an interviewer.</p><h4>4.3 Use Columnstore Indexes or In-Memory Tables</h4><p>For analytical workloads (like Synapse, Snowflake, or BigQuery):</p><ul><li><strong>Columnstore indexes</strong> scan and compress large datasets efficiently.</li><li><strong>In-memory tables</strong> help with high-speed transactions.</li></ul><p>These are more advanced, but mentioning them shows awareness of modern database design.</p><h4>4.4 Add Caching for Frequent Queries</h4><p>If the same query runs again and again (like a dashboard metric), cache the results:</p><ul><li>Use <strong>materialized views</strong> inside the database.</li><li>Or use an external cache like <strong>Redis</strong> in your app layer.</li></ul><p>This is a common real-world optimization strategy.</p><h3>🚫 5. Common Mistakes to Avoid</h3><p><strong>Here are some mistakes interviewers love to ask about:</strong></p><ul><li>Using SELECT * everywhere</li><li>Applying functions on indexed columns (<strong>prevents index use</strong>)</li><li>Too many indexes on frequently updated tables (slow down insert and update queries)</li><li>Missing WHERE filters in joins (leads to huge scans)</li><li>Using DISTINCT to fix wrong joins</li><li>Ignoring execution plans completely</li><li>Storing everything as text</li></ul><p>If you can explain <strong>why</strong> each one is bad, you’ll stand out as someone who actually understands SQL performance.</p><h3>🧭 6. How to Answer Optimization Questions in Interviews</h3><p>Here’s a simple, clear structure you can follow:</p><p><strong>Question:</strong> “How would you optimize this SQL query?”</p><p><strong>Your Answer:</strong></p><ol><li>I’d first check the <strong>execution plan</strong> to see what’s causing delays.</li><li>Then I’d review <strong>indexes</strong> on the columns used in filters and joins.</li><li>After that, I would make sure filters are applied <strong>before joins</strong>.</li><li>Then I will remove unnecessary DISTINCT, UNION, or subqueries.</li><li>I’d check if data types and schema design could be improved.</li><li>I’d consider <strong>partitioning</strong> or <strong>materialized views</strong> for large datasets.</li><li>Finally, I’d <strong>compare the query performance before and after</strong> optimization.</li></ol><p>That’s a confident, structured answer that works in any interview.</p><h3>Conclusion:</h3><p>SQL optimization isn’t about memorizing tricks, it’s about understanding what the database is doing behind the scenes.</p><p><strong>If you remember just a few things:</strong></p><ul><li>Filter data as early as possible</li><li>Use indexes smartly</li><li>Avoid unnecessary work</li><li>Keep checking execution plans</li></ul><p>Then you’ll not only pass the interview you’ll also write SQL that performs like magic in real projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ede2768b888" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-engineer/sql-optimization-techniques-you-should-know-for-data-engineer-interviews-2ede2768b888">SQL Optimization Techniques You Should Know for Data Engineer Interviews</a> was originally published in <a href="https://medium.com/data-engineer">Data Engineer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[50 DSA Problems for Data Engineers, 10 Patterns]]></title>
            <link>https://medium.com/data-engineer/50-dsa-problems-for-data-engineers-10-patterns-9ee28907157a?source=rss----dbe8a47e0abe---4</link>
            <guid isPermaLink="false">https://medium.com/p/9ee28907157a</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[data-engineer]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Vishal Barvaliya]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 19:44:52 GMT</pubDate>
            <atom:updated>2026-06-17T19:44:54.173Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>Access this blog for free here</em></strong>: <a href="https://medium.com/@vishalbarvaliya/50-dsa-problems-for-data-engineers-10-patterns-9ee28907157a?sk=bfcbf6f4ad8b5781d5ece8a1e84b1fcc">https://medium.com/@vishalbarvaliya/50-dsa-problems-for-data-engineers-10-patterns-9ee28907157a?sk=bfcbf6f4ad8b5781d5ece8a1e84b1fcc</a></blockquote><p><strong>Let’s be honest: </strong>Most Data Engineers find LeetCode annoying. We spend our lives in SQL, PySpark, and Cloud Infrastructure. Why on earth do we need to know how to reverse a linked list?</p><p>After going through dozens of interviews at top-tier tech companies, I realised something: <strong>You don’t need to be a master at DSA. You need to recognise patterns.</strong></p><p>I’ve broken down the ~50 essential problems into 10 simple patterns that will get you through 90% of your interviews.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*0DZ8izL6k3jlpcw9cb3UqQ.png" /><figcaption>Image by Author</figcaption></figure><h3>1. Two Pointers</h3><p>This is the ultimate way to process a list without creating expensive copies of the data. It’s O(n) efficiency — perfect for cleaning up columns or reversing arrays.</p><ul><li><a href="https://leetcode.com/problems/reverse-string/">Reverse String</a> (Easy) — <em>Swapping logic.</em></li><li><a href="https://leetcode.com/problems/valid-palindrome/">Valid Palindrome</a> (Easy) — <em>Symmetry check.</em></li><li><a href="https://leetcode.com/problems/move-zeroes/">Move Zeros</a> (Easy) — <em>Filtering out “garbage” or nulls.</em></li><li><a href="https://leetcode.com/problems/remove-duplicates-from-sorted-array/">Remove Duplicates from Sorted Array</a> (Easy) — <em>Basic deduplication.</em></li><li><a href="https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/">Two Sum II (Sorted Input)</a> (Medium) — <em>Optimised search.</em></li></ul><h3>2. Sliding Window</h3><p>Think of this as a <strong>Window Function</strong> in SQL. You look at a small chunk of data and “slide” the frame forward. Essential for streaming data analysis.</p><ul><li><a href="https://leetcode.com/problems/maximum-average-subarray-i/">Maximum Average Subarray I</a> (Easy) — <em>Metrics over a window.</em></li><li><a href="https://leetcode.com/problems/best-time-to-buy-and-sell-stock/">Best Time to Buy and Sell Stock</a> (Easy) — <em>Tracking min/max ranges.</em></li><li><a href="https://leetcode.com/problems/longest-substring-without-repeating-characters/">Longest Substring Without Repeating Characters</a> (Medium) — <em>Unique constraint tracking.</em></li><li><a href="https://leetcode.com/problems/container-with-most-water/">Container With Most Water</a> (Medium) — <em>Optimizing two-point ranges.</em></li><li><a href="https://leetcode.com/problems/sliding-window-maximum/">Sliding Window Maximum</a> (Hard/Medium) — <em>Efficient stream processing.</em></li></ul><h3>3. Prefix Sum</h3><p>You keep a “<strong>running total</strong>” as you go. This allows you to find the sum of any chunk of data instantly. It’s the foundation of pre-calculated data cubes.</p><ul><li><a href="https://leetcode.com/problems/find-pivot-index/">Find Pivot Index</a> (Easy) — <em>Balancing data points.</em></li><li><a href="https://leetcode.com/problems/subarray-sum-equals-k/">Subarray Sum Equals K</a> (Medium) — <em>History-based target finding.</em></li><li><a href="https://leetcode.com/problems/product-of-array-except-self/">Product of Array Except Self</a> (Medium) — <em>Positional transformations.</em></li></ul><h3>4. Hash Maps &amp; Sets</h3><p>The bread and butter of DE. We trade a little RAM to make search time instant (O(1)). This is how you handle high-speed lookups and joins.</p><ul><li><a href="https://leetcode.com/problems/two-sum/">Two Sum</a> (Easy) — <em>The core lookup template.</em></li><li><a href="https://leetcode.com/problems/contains-duplicate/">Contains Duplicate</a> (Easy) — <em>Set-based uniqueness.</em></li><li><a href="https://leetcode.com/problems/valid-anagram/">Valid Anagram</a> (Easy) — <em>Distribution profiling.</em></li><li><a href="https://leetcode.com/problems/first-unique-character-in-a-string/">First Unique Character in a String</a> (Easy) — <em>Deduplication logic.</em></li><li><a href="https://leetcode.com/problems/intersection-of-two-arrays/">Intersection of Two Arrays</a> (Easy) — <em>Joining datasets.</em></li><li><a href="https://leetcode.com/problems/isomorphic-strings/">Isomorphic Strings</a> (Easy) — <em>1-to-1 schema validation.</em></li><li><a href="https://leetcode.com/problems/group-anagrams/">Group Anagrams</a> (Medium) — <em>Categorising messy records.</em></li><li><a href="https://leetcode.com/problems/top-k-frequent-elements/">Top K Frequent Elements</a> (Medium) — <em>Identifying “Heavy Hitters”.</em></li><li><a href="https://leetcode.com/problems/longest-consecutive-sequence/">Longest Consecutive Sequence</a> (Medium) — <em>Finding sequence gaps.</em></li><li><a href="https://leetcode.com/problems/design-hashmap/">Design Hashmap</a> (Easy) — <em>Internal mechanics.</em></li></ul><h3>5. Binary Search</h3><p>This is exactly how a database finds one row in a billion. Cut the search space in half with every step.</p><ul><li><a href="https://leetcode.com/problems/binary-search/">Binary Search</a> (Easy) — <em>Fundamental template.</em></li><li><a href="https://leetcode.com/problems/search-insert-position/">Search Insert Position</a> (Easy) — <em>Index location logic.</em></li><li><a href="https://leetcode.com/problems/first-bad-version/">First Bad Version</a> (Easy) — <em>Point-of-failure detection.</em></li><li><a href="https://leetcode.com/problems/search-in-rotated-sorted-array/">Search in Rotated Sorted Array</a> (Medium) — <em>Searching sharded data.</em></li><li><a href="https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/">Find Minimum in Rotated Sorted Array</a> (Medium) — <em>Finding start points.</em></li></ul><h3>6. Intervals &amp; Sorting</h3><p>Real-world data is messy and overlaps. This logic is how you clean up timestamps, session data, or data partitions.</p><ul><li><a href="https://leetcode.com/problems/merge-sorted-array/">Merge Sorted Array</a> (Easy) — <em>Stream merging.</em></li><li><a href="https://leetcode.com/problems/merge-intervals/">Merge Intervals</a> (Medium) — <em>Overlapping timestamp deduplication.</em></li><li><a href="https://leetcode.com/problems/non-overlapping-intervals/">Non-overlapping Intervals</a> (Medium) — <em>Conflict resolution.</em></li><li><a href="https://leetcode.com/problems/insert-interval/">Insert Interval</a> (Medium) — <em>Updating partitions.</em></li><li><a href="https://leetcode.com/problems/meeting-rooms/">Meeting Rooms</a> (Easy) — <em>Constraint checking.</em></li></ul><h3>7. Linked Lists</h3><p>While we use DataFrames, many systems (such as Parquet metadata) use pointers to navigate data blocks in memory under the hood.</p><ul><li><a href="https://leetcode.com/problems/reverse-linked-list/">Reverse Linked List</a> (Easy) — <em>Pointer mastery.</em></li><li><a href="https://leetcode.com/problems/linked-list-cycle/">Linked List Cycle</a> (Easy) — <em>Infinite loop detection.</em></li><li><a href="https://leetcode.com/problems/merge-two-sorted-lists/">Merge Two Sorted Lists</a> (Easy) — <em>Sequential merging.</em></li><li><a href="https://leetcode.com/problems/middle-of-the-linked-list/">Middle of the Linked List</a> (Easy) — <em>Single-pass midpoints.</em></li><li><a href="https://leetcode.com/problems/remove-duplicates-from-sorted-list/">Remove Duplicates from Sorted List</a> (Easy) — <em>In-stream cleaning.</em></li></ul><h3>8-9. Stacks &amp; Queues</h3><p>Stacks parse nested formats (JSON/XML). Queues handle the “First-In-First-Out” logic of Kafka and SQS.</p><ul><li><a href="https://leetcode.com/problems/valid-parentheses/">Valid Parentheses</a> (Easy) — <em>JSON/XML balance validation.</em></li><li><a href="https://leetcode.com/problems/min-stack/">Min Stack</a> (Easy) — <em>State tracking.</em></li><li><a href="https://leetcode.com/problems/implement-queue-using-stacks/">Implement Queue using Stacks</a> (Easy) — <em>Internal mechanics.</em></li><li><a href="https://leetcode.com/problems/backspace-string-compare/">Backspace String Compare</a> (Easy) — <em>Data correction simulation.</em></li></ul><h3>10. Heaps (The “Top-N” Pattern)</h3><p>When you have billions of rows and only want the “Top 10,” a Heap is much faster than sorting the entire dataset.</p><ul><li><a href="https://leetcode.com/problems/kth-largest-element-in-an-array/">Kth Largest Element in an Array</a> (Medium) — <em>Rank finding.</em></li><li><a href="https://leetcode.com/problems/k-closest-points-to-origin/">K Closest Points to Origin</a> (Medium) — <em>Proximity-based analytics.</em></li><li><a href="https://leetcode.com/problems/last-stone-weight/">Last Stone Weight</a> (Easy) — <em>Priority logic.</em></li></ul><h3>Final Takeaway: Think Like a Data Engineer</h3><p>Don’t just solve the problem. Ask yourself: <strong>“What if this data is 1TB and doesn’t fit in my RAM?”</strong></p><ul><li><strong>Two Pointers</strong> save space.</li><li><strong>Hash Maps</strong> save time.</li><li><strong>Heaps</strong> save sorting costs.</li></ul><p>Master these 50, and you’ll walk into your next interview with the confidence of someone who actually understands how data moves.</p><p><strong>Happy coding!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ee28907157a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-engineer/50-dsa-problems-for-data-engineers-10-patterns-9ee28907157a">50 DSA Problems for Data Engineers, 10 Patterns</a> was originally published in <a href="https://medium.com/data-engineer">Data Engineer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Engineering Certifications in 2025]]></title>
            <link>https://medium.com/data-engineer/data-engineering-certifications-in-2025-c65c3a05f508?source=rss----dbe8a47e0abe---4</link>
            <guid isPermaLink="false">https://medium.com/p/c65c3a05f508</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[certification]]></category>
            <dc:creator><![CDATA[Vishal Barvaliya]]></dc:creator>
            <pubDate>Thu, 21 May 2026 17:42:34 GMT</pubDate>
            <atom:updated>2026-05-21T17:42:36.026Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Truth About Data Engineering Certifications in 2025</h3><figure><img alt="Yellow paper made ribbon on light blue background" src="https://cdn-images-1.medium.com/max/1024/0*8AWsCAt-YYtNlJEz" /><figcaption>Photo by <a href="https://unsplash.com/@brandsandpeople?utm_source=medium&amp;utm_medium=referral">Brands&amp;People</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A few years ago, I was in the same boat as a lot of people in tech today.<br> Scrolling through LinkedIn, I’d see shiny banners — <em>“Certified in XYZ”</em>, <em>“Just earned AWS Data Analytics — Specialty!”</em>, <em>“GCP Professional Data Engineer — unlocked!”</em>.</p><p>And there I was… wondering:<br> <em>Do I really need all these certifications to grow as a data engineer? Or is this just the latest tech hype?</em></p><h3>The Myth We’re Sold</h3><p>If you’ve been in the data world long enough, you’ve heard the pitch:</p><blockquote>“Get this certification and companies will fight to hire you.”</blockquote><p>It’s a nice thought, but here’s my honest take after 5+ years in data engineering:<br> <strong>Certifications are not magic keys.</strong><br> They will <strong>not</strong> automatically land you a FAANG offer.<br> They are <strong>not</strong> a replacement for real-world skills.</p><h3>The Reality I Learned</h3><p>Over my career, I’ve worked on <strong>huge, messy, enterprise-scale data systems</strong> — pipelines that process millions of rows daily, Spark clusters running across Databricks, cloud-based warehouses feeding dozens of dashboards.</p><p><strong>Not once did a recruiter say:</strong></p><blockquote>“We’re hiring you only because you have XYZ certification.”</blockquote><p>Instead, they asked:</p><ul><li><em>“Tell me about the biggest data problem you solved.”</em></li><li><em>“How did you optimize that Spark job from 2 hours to 15 minutes?”</em></li><li><em>“How do you design a scalable streaming pipeline?”</em></li></ul><p>In other words — <strong>skills came first.</strong></p><h3>So Why Get Certified At All?</h3><p><strong><em>I’m not saying certifications are useless. Far from it.</em></strong></p><h4><strong>They can be great for:</strong></h4><ul><li><strong>Structured learning</strong> — You follow a roadmap and learn systematically.</li><li><strong>Credibility</strong> — Especially if you’re changing careers or aiming for cloud-heavy roles.</li><li><strong>Interviews</strong> — They help your resume get noticed in a pile of hundreds.</li></ul><h3>The Ones Actually Worth It in 2025</h3><p>If you do go for certifications, don’t chase all of them. Focus on the ones that matter:</p><ul><li><strong>Google Cloud Professional Data Engineer</strong> → Big in the industry, GCP-focused.</li><li><strong>AWS Certified Data Analytics — Specialty</strong> → Perfect for AWS-heavy environments.</li><li><strong>Microsoft Azure Data Engineer Associate</strong> → A must if your company runs on Azure (my first big one).</li><li><strong>Databricks Data Engineer (Associate or Professional)</strong> → Brilliant for Spark and Lakehouse work.</li><li><strong>Snowflake SnowPro</strong> → The rising star in cloud data warehousing.</li><li><strong>Kafka Developer Certification</strong> → For real-time streaming pipelines.</li></ul><h3>How I Approach It Now</h3><p>When I mentor juniors or peers, I tell them:</p><ol><li><strong>Master the fundamentals</strong> — SQL, Python, Spark, data modeling, ETL.</li><li><strong>Build real projects</strong> — Even if they’re personal side projects.</li><li><strong>Get 1–2 relevant certifications</strong> — Choose ones that match your tech stack.</li><li><strong>Keep learning</strong> — Tools change, concepts stay.</li></ol><h3>A Note for FAANG/BIG TECH Dreamers</h3><p>If you want to get into big tech — <strong>certifications alone won’t cut it</strong>.<br> You need:</p><ul><li>Solid <strong>data structures &amp; algorithms</strong> for interviews.</li><li>Strong <strong>system design skills</strong> for large-scale data architecture.</li><li>The ability to <strong>talk through your thought process</strong> in problem-solving.</li></ul><p>Certifications can help you <strong>start the conversation</strong>, but your <strong>skills will finish it</strong>.</p><h3>My Closing Thought</h3><p>Certifications are like gym memberships.<br> Buying one doesn’t make you fit — but it gives you a place to train.<br> What matters is showing up, putting in the work, and actually getting stronger.</p><p>So yes — get that Google, AWS, or Databricks badge if it helps you learn.<br> But never forget: <strong>your curiosity, problem-solving mindset, and hands-on skills are what will truly carry you to the top.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c65c3a05f508" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-engineer/data-engineering-certifications-in-2025-c65c3a05f508">Data Engineering Certifications in 2025</a> was originally published in <a href="https://medium.com/data-engineer">Data Engineer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Data Engineers Cannot Be Replaced by AI]]></title>
            <link>https://medium.com/data-engineer/why-data-engineers-cannot-be-replaced-by-ai-fbb1b1b76354?source=rss----dbe8a47e0abe---4</link>
            <guid isPermaLink="false">https://medium.com/p/fbb1b1b76354</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Vishal Barvaliya]]></dc:creator>
            <pubDate>Sun, 17 May 2026 18:44:30 GMT</pubDate>
            <atom:updated>2026-06-18T15:25:50.708Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>I offer 1:1 data engineering mentoring and interview prep on Topmate — </em></strong><a href="https://topmate.io/vishalbarvaliya"><strong><em>book a session here</em></strong></a><strong><em>.</em></strong></blockquote><blockquote><strong>Read this blog for free here:</strong><a href="https://medium.com/@vishalbarvaliya/why-data-engineers-cannot-be-replaced-by-ai-fbb1b1b76354?sk=5590371b237d397d19efc33e7ced23df"><strong>https://medium.com/@vishalbarvaliya/why-data-engineers-cannot-be-replaced-by-ai-fbb1b1b76354?sk=5590371b237d397d19efc33e7ced23df</strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sSq7Ljg5G6KxFolK" /><figcaption>Photo by <a href="https://unsplash.com/@julientromeur?utm_source=medium&amp;utm_medium=referral">julien Tromeur</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Imagine you have a big, messy closet full of clothes, shoes, and boxes. You want to find your favorite shirt quickly, but everything is scattered all over. What do you do? You organize your closet, sort things properly, and maybe label boxes so it’s easy to find what you need.</p><p>Data engineers do the same thing, but with <strong>digital information</strong> instead of clothes! Their job is to organize, clean, and move data so it’s easy for others like experts in AI to use it.</p><h4>What Do Data Engineers Actually Do?</h4><ul><li><strong>Collect data</strong>: They grab information from many places — websites, sensors, apps, and more.</li><li><strong>Clean up data</strong>: There’s a lot of junk or mistakes that need fixing, just like sorting dirty laundry.</li><li><strong>Build pipelines</strong>: They create special systems and steps that move data from one place to another, safely and reliably.</li><li><strong>Make it useful</strong>: They help turn messy, raw data into neat, ready-to-use forms for other people in a company.</li></ul><h4>Why Can’t AI Do All This Alone?</h4><p>AI is smart in some ways, but it’s like a fancy robot that still needs organized parts to work well. Here’s why:</p><ul><li><strong>Messy data</strong>: AI can’t always tell what’s correct or useful. If the data is dirty, AI makes mistakes.</li><li><strong>Creative problem-solving</strong>: Sometimes, data comes in weird formats or with unexpected problems. Data engineers think, adapt, and invent new solutions. AI tends to follow instructions it’s given, but it can’t think in creative, flexible ways.</li><li><strong>Understanding the business</strong>: Data engineers know what their company and people actually need. AI doesn’t understand business goals or how people use data.</li><li><strong>Changing technologies</strong>: New tools and data sources show up all the time. Data engineers keep up and try new things. AI can be helpful, but someone needs to guide, test, and pick the right tools.</li></ul><h3>A Simple Analogy</h3><p>Think of AI as a super-fast chef who can make amazing dishes if they have the right ingredients, pans, and recipe steps. But who gets those ingredients, sets up the kitchen, and keeps things clean? That’s the data engineer! Without them, the chef can’t cook anything good.</p><h4>The Human Touch</h4><ul><li>Data engineers are <strong>problem-solvers</strong>. They think, plan, and fix issues that pop up every day.</li><li>They can talk to other people, ask questions, and understand what’s really needed which AI can’t do.</li><li>Every company is unique. Data engineers help build custom solutions, not “<strong>one-size-fits-all</strong>” answers.</li></ul><h4>Can AI Help Data Engineers?</h4><p>Yes! AI can make their work easier, like automatically spotting errors or speeding up certain tasks. But AI is a helper, not a replacement. Data engineers are still the ones in charge, making thoughtful decisions.</p><ul><li><strong>In short: </strong>Data engineers organize the digital world so others can use it. AI is great, but it needs humans especially data engineers to guide, fix, and connect everything properly. The job needs thinking, creativity, and understanding that only people can offer (at least, for now!).</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbb1b1b76354" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-engineer/why-data-engineers-cannot-be-replaced-by-ai-fbb1b1b76354">Why Data Engineers Cannot Be Replaced by AI</a> was originally published in <a href="https://medium.com/data-engineer">Data Engineer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bloom Filter, Explained in the Simplest Way Possible]]></title>
            <link>https://medium.com/data-engineer/bloom-filter-explained-in-the-simplest-way-possible-0e9395c1fc7c?source=rss----dbe8a47e0abe---4</link>
            <guid isPermaLink="false">https://medium.com/p/0e9395c1fc7c</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[apache-spark]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[bloom-filter]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Vishal Barvaliya]]></dc:creator>
            <pubDate>Mon, 04 May 2026 18:42:32 GMT</pubDate>
            <atom:updated>2026-06-18T15:21:12.971Z</atom:updated>
            <content:encoded><![CDATA[<h4>A beginner-friendly guide to understanding one of the smartest memory-saving ideas in computer science</h4><blockquote><strong><em>I offer 1:1 data engineering mentoring and interview prep on Topmate — </em></strong><a href="https://topmate.io/vishalbarvaliya"><strong><em>book a session here</em></strong></a><strong><em>.</em></strong></blockquote><blockquote><strong>Read this blog for free</strong>: <a href="https://medium.com/@vishalbarvaliya/bloom-filter-explained-in-the-simplest-way-possible-0e9395c1fc7c?sk=9ffc81ba9a6d23de174f83b544764328">https://medium.com/@vishalbarvaliya/bloom-filter-explained-in-the-simplest-way-possible-0e9395c1fc7c?sk=9ffc81ba9a6d23de174f83b544764328</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4rUU-y-8rek297icW_Qu7Q.png" /><figcaption>Image by AI tool</figcaption></figure><p>Sometimes in computer science, the most powerful ideas are also the simplest.</p><p>A <strong>Bloom filter</strong> is one of those ideas.</p><p>At first, the name sounds a little strange. It does not tell you much about what it actually does. But once you understand it, you realize it solves a very common problem:</p><p><strong>How can we quickly check whether we’ve seen something before, without storing too much data?</strong></p><p>That “something” could be:</p><ul><li>a username</li><li>a product ID</li><li>a URL</li><li>a search term</li><li>an email</li><li>a database key</li><li>a file that was already processed</li></ul><p>In many real systems, this kind of check happens all the time. And when the amount of data becomes huge, storing and checking everything exactly can get expensive.</p><p>That is where Bloom filters come in.</p><p>They are fast.<br>They use very little memory.<br>And they are incredibly useful in large systems.</p><p>In this post, I’ll explain Bloom filters in very simple words, step by step, as if you are learning them for the first time.</p><p><strong>We’ll cover:</strong></p><ul><li>What a Bloom filter is</li><li>Why is it needed</li><li>How it works</li><li>How it works internally</li><li>Why do false positives happen</li><li>Why false negatives do not happen</li><li>where Bloom filters are used in real life</li><li>and their advantages and limitations</li></ul><p>Let’s start from the beginning.</p><h3>What is a Bloom filter?</h3><p>A <strong>Bloom filter</strong> is a special data structure used to answer one question:</p><p><strong>“Is this item in the set?”</strong></p><p>But it answers in a special way.</p><p><strong>A Bloom filter can tell you:</strong></p><ul><li>The item is <strong>definitely not present</strong></li><li>or the item is <strong>possibly present</strong></li></ul><p>That is the key idea.</p><p><strong>It does not say:</strong></p><ul><li>definitely present</li><li>definitely absent</li></ul><p><strong>Instead, it works like this:</strong></p><ul><li>If it says <strong>not present</strong>, that answer is <strong>100% correct</strong></li><li>If it says <strong>present</strong>, that answer means <strong>maybe yes</strong></li></ul><p>So Bloom filters are not fully exact.<br>They are <strong>probabilistic</strong>.</p><p>This means they can make one type of mistake:</p><h4>False positive</h4><ul><li>The Bloom filter says an item is present, but actually, it was never added.</li><li>But in the standard Bloom filter, this mistake does <strong>not</strong> happen:</li></ul><h4>False negative</h4><ul><li>The Bloom filter says an item is not present, even though it was added.</li><li>That does not happen in a standard Bloom filter.</li></ul><p>So the easiest way to remember the Bloom filter is this:</p><blockquote><em>A Bloom filter can confidently say </em><strong><em>no</em></strong><em>, but it can only probably say </em><strong><em>yes</em></strong><em>.</em></blockquote><p>And honestly, that one line explains almost the whole concept.</p><h3>Why do we need a Bloom filter?</h3><p>Let’s imagine you are building a large application.</p><p>Maybe your system needs to answer questions like:</p><ul><li>Has this user already registered?</li><li>Have we already processed this event?</li><li>Does this key exist in the database?</li><li>Is this URL already visited?</li><li>Is this word in the dictionary?</li><li>Is this item likely in the cache?</li></ul><p>Now imagine this is happening not a hundred times, but millions or even billions of times.</p><p><strong>You could store everything in:</strong></p><ul><li>a list</li><li>a set</li><li>a hash table</li><li>a database</li></ul><p>And yes, that would work.</p><p><strong>But sometimes there is a problem:</strong></p><ul><li>The data is too large</li><li>Memory is limited</li><li>Full lookup is expensive</li><li>Disk access is slow</li><li>Network access is costly</li></ul><p>In these situations, doing an exact lookup every single time can be wasteful.</p><p>Sometimes you do not need a perfect answer immediately.<br>Sometimes you just need a <strong>quick first check</strong>.</p><p>That is the job of a Bloom filter.</p><p>It acts like a lightweight gatekeeper.</p><p><strong>It helps answer:</strong></p><ul><li>“No, don’t waste time checking further. This item is definitely not there.”</li></ul><p>or</p><ul><li>“Maybe it is there. You should do the real check.”</li></ul><p>That simple behavior saves memory, time, and system resources.</p><h3>The main idea behind a Bloom filter</h3><p>A Bloom filter is built using just two things:</p><ul><li>a <strong>bit array</strong></li><li>multiple <strong>hash functions</strong></li></ul><p>That’s it.</p><p>Now, let’s understand both in a very simple way.</p><h3>First part: the bit array</h3><p><strong>A bit array is just an array made of only:</strong></p><ul><li>0</li><li>1</li></ul><p><strong>For example:</strong></p><p>[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]</p><p>You can think of it like this:</p><ul><li>0 means OFF</li><li>1 means ON</li></ul><p>At the beginning, every bit is 0.</p><p>So an empty Bloom filter starts with all bits turned off.</p><h3>Second part: the hash functions</h3><p>A hash function takes an input, like:</p><ul><li>&quot;apple&quot;</li><li>&quot;cat&quot;</li><li>&quot;user123&quot;</li></ul><p>and converts it into a number.</p><p>For example, a hash function might return:</p><ul><li>&quot;apple&quot; → 2</li><li>&quot;cat&quot; → 7</li><li>&quot;user123&quot; → 4</li></ul><p>In a Bloom filter, we use <strong>multiple hash functions</strong>, not just one.</p><p>So for one item, we may get several positions.</p><p>For example, for &quot;apple&quot; We might get:</p><ul><li>2</li><li>5</li><li>8</li></ul><p>These numbers tell us which positions in the bit array to update or check.</p><h3>How a Bloom filter works</h3><p>A Bloom filter mainly supports two operations:</p><ul><li><strong>Add an item</strong></li><li><strong>Check an item</strong></li></ul><p>Let’s walk through both slowly.</p><h3>How insertion works</h3><p>Suppose our Bloom filter has a bit array of size 10.</p><p><strong>At the beginning:</strong></p><p>[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]</p><p>Now we want to add the word &quot;apple&quot;.</p><p>Assume we are using 3 hash functions, and they return:</p><ul><li>2</li><li>5</li><li>8</li></ul><p>Now we go to those positions and set them to 1.</p><p><strong>So the array becomes:</strong></p><p>[0, 0,<strong> 1</strong>, 0, 0, <strong>1</strong>, 0, 0, <strong>1</strong>, 0]</p><p>Now let’s add &quot;banana&quot;.</p><p>Suppose the hash functions return:</p><ul><li>1</li><li>5</li><li>7</li></ul><p>Now we turn on those positions too.</p><p>The array becomes:</p><p>[0, <strong>1</strong>,<strong> 1</strong>, 0, 0, <strong>1</strong>, 0, <strong>1</strong>, <strong>1</strong>, 0]</p><p>Notice something important:</p><p>Position 5 was already 1, and that is perfectly okay.</p><p>Bloom filters do not track which item sets which bit.<br>They only track whether that bit is on or off.</p><h3>How lookup works</h3><p>Now suppose we want to check whether &quot;apple&quot; is present.</p><p>We again run the same 3 hash functions on &quot;apple&quot;.</p><p><strong>We get:</strong></p><ul><li>2</li><li>5</li><li>8</li></ul><p>Now we check the array at those positions:</p><ul><li>bit 2 = 1</li><li>bit 5 = 1</li><li>bit 8 = 1</li></ul><p>Since all the required positions are 1, The Bloom filter says:</p><p><strong>“Possibly present.”</strong></p><p>That makes sense, because we did insert &quot;apple&quot;.</p><p>Now let’s check &quot;grape&quot;.</p><p><strong>Suppose its hash positions are:</strong></p><ul><li>0</li><li>5</li><li>8</li></ul><p><strong>Now we look at those bits:</strong></p><ul><li>bit 0 = 0</li><li>bit 5 = 1</li><li>bit 8 = 1</li></ul><p>Since one required bit is 0, the Bloom filter says:</p><p><strong>“Definitely not present.”</strong></p><p>And that answer is guaranteed to be correct.</p><p>This gives us the most important rule of Bloom filters:</p><blockquote><em>If </em><strong><em>any required bit is 0</em></strong><em>, the item is definitely not present.<br>If </em><strong><em>all required bits are 1</em></strong><em>, the item may be present.</em></blockquote><p>That is the whole logic.</p><h3>Why false positives happen</h3><p>Now let’s talk about the one weakness of Bloom filters.</p><p><strong>Suppose we inserted these items earlier:</strong></p><ul><li>apple</li><li>banana</li><li>mango</li></ul><p>Each one turned on some bits in the array.</p><p>Now we check a new word: &quot;grape&quot;.</p><p>Even if &quot;grape&quot; was never inserted, it is possible that all the bit positions it needs are already 1 because other words turned them on.</p><p>So the Bloom filter sees all the required bits as 1 and says:</p><p><strong>“Possibly present.”</strong></p><p>But in reality, &quot;grape&quot; was never added.</p><p>That is called a <strong>false positive</strong>.</p><p>This is why Bloom filters are not exact.</p><p>They can sometimes wrongly say “yes.”</p><h3>Why false negatives do not happen</h3><p>A false negative would mean this:</p><blockquote><em>The item was inserted, but later the Bloom filter says it is not present.</em></blockquote><p>That does not happen in a standard Bloom filter.</p><p><strong>Why?</strong></p><p>Because when an item is inserted, all of its hash positions are turned on.</p><p>Later, when you check the same item, you look at those same positions again.</p><p>Those bits are still on.</p><p>So the filter will never say “definitely not present” for an item that was actually inserted.</p><p>That is why Bloom filters are trusted for one thing especially well:</p><p><strong>rejecting impossible matches.</strong></p><h3>What a Bloom filter actually stores</h3><p>This part is very important and often misunderstood.</p><p>A Bloom filter does <strong>not</strong> store the actual items.</p><p><strong>If you add:</strong></p><ul><li>apple</li><li>banana</li><li>mango</li><li>dog</li></ul><p>The Bloom filter does not keep those words inside it.</p><p>It only stores a pattern of bits.</p><p><strong>That means later it cannot tell you:</strong></p><ul><li>which exact items were added</li><li>How many exact unique items were added</li><li>Which bit belongs to which item</li></ul><p>It only knows whether the bit positions for a new item look possible or impossible.</p><p>This is also the reason Bloom filters are so memory-efficient.</p><h3>How a Bloom filter works internally</h3><p>Now let’s go one level deeper.</p><p>Internally, a Bloom filter has three main parts:</p><h4>1. A bit array</h4><p>This is the storage.</p><p>If the size is m, then the filter contains m bits.</p><h4>2. k hash functions</h4><p>Each item is passed through k hash functions, which produce k positions in the array.</p><h4>3. Add and check logic</h4><ul><li><strong>Add means: </strong>turn those positions on</li><li><strong>Check means:</strong> verify whether all those positions are already on</li></ul><p>That is the internal structure in simple terms.</p><h3>Internal insertion, step by step</h3><p>Let’s say we want to insert the word &quot;dog&quot;.</p><h4>Step 1: convert the input into bytes</h4><p>Inside the computer, text is stored in binary form.</p><p>So &quot;dog&quot; is converted into bytes.</p><h4>Step 2: Apply the hash functions</h4><p>Suppose the hash functions return:</p><ul><li>11</li><li>48</li><li>72</li></ul><h4>Step 3: map those values to positions in the bit array</h4><p>If the bit array size is 100, then those values become valid positions.</p><p>If the raw hash values are larger, the implementation usually uses a modulo operation like this:</p><p>hash % size</p><h4>Step 4: Set those bits to 1</h4><p><strong>Now the filter turns on:</strong></p><ul><li>bit[11]</li><li>bit[48]</li><li>bit[72]</li></ul><p>Insertion is complete.</p><h3>Internal lookup, step by step</h3><p>Now, let’s check whether &quot;dog&quot; is present.</p><h4>Step 1: convert &quot;dog&quot; into bytes</h4><p>Same as before.</p><h4>Step 2: Apply the same hash functions</h4><p><strong>Again, we get:</strong></p><ul><li>11</li><li>48</li><li>72</li></ul><h4>Step 3: Look at those positions in the array</h4><p><strong>Check:</strong></p><ul><li>bit[11]</li><li>bit[48]</li><li>bit[72]</li></ul><h4>Step 4: decide</h4><ul><li>If anyone is 0 → definitely not present</li><li>If all are 1 → possibly present</li></ul><p>That is the full internal logic of a Bloom filter.</p><h3>Why do we use multiple hash functions?</h3><p>A natural question is: why not use just one hash function?</p><p>The reason is simple.</p><p>If every item only turned on one bit, then many different items would overlap very quickly, and the filter would become inaccurate much faster.</p><p><strong>Using multiple hash functions helps because:</strong></p><ul><li>Each item affects multiple positions</li><li>data spreads out more evenly</li><li>false positives happen less quickly</li></ul><p>But there is also a limit.</p><p><strong>If we use too many hash functions:</strong></p><ul><li>insertion becomes slower</li><li>lookup becomes slower</li><li>too many bits become 1 quickly</li></ul><p>So Bloom filters work best when the number of hash functions is chosen carefully.</p><h3>What are collisions in Bloom filters?</h3><p>A collision happens when two different items affect the same bit position.</p><p><strong>For example:</strong></p><ul><li>&quot;apple&quot; turns on bit 5</li><li>&quot;banana&quot; Also turns on bit 5</li></ul><p>In many data structures, collisions are seen as a problem.</p><p>In Bloom filters, collisions are completely normal.</p><p>They are expected.</p><p>The real issue is not a single collision.<br>The real issue is when too many bits become 1, because then false positives increase.</p><h3>What happens when the Bloom filter gets too full?</h3><p><strong>As more and more items are inserted:</strong></p><ul><li>more bits change from 0 to 1</li><li>fewer 0s remain</li><li>false positives become more common</li></ul><p>Eventually, if too many bits become 1, then many new items will also look like “possibly present.”</p><p>At that point, the Bloom filter becomes less useful.</p><p>That is why Bloom filters need to be sized based on expected data volume.</p><p>You cannot keep inserting forever into a small filter and expect the same accuracy.</p><h3>Time complexity</h3><p>Bloom filters are fast.</p><h4>Insertion</h4><p>To insert one item, we calculate k hash values and set k bits.</p><p><strong>So the time complexity is:</strong></p><p><strong>O(k)</strong></p><h4>Lookup</h4><p>To check one item, we again calculate k hash values and inspect k bits.</p><p><strong>So the lookup complexity is also:</strong></p><p><strong>O(k)</strong></p><p>Since k is usually small and fixed, Bloom filter operations are very fast in practice.</p><h3>Space complexity</h3><p>The main memory used by a Bloom filter is its bit array.</p><p><strong>So the space complexity is:</strong></p><p><strong>O(m)</strong></p><p>where m is the number of bits in the filter.</p><p>Because it stores bits instead of full items, a Bloom filter is often much more memory efficient than a normal hash set.</p><h3>Bloom filter vs HashSet</h3><p>This comparison makes the difference very clear.</p><h4>HashSet</h4><p>A HashSet stores the actual elements.</p><p><strong>So it can:</strong></p><ul><li>Give exact answers</li><li>return actual data</li><li>support deletion</li><li>allow iteration over elements</li></ul><p>But it uses more memory.</p><h3>Bloom filter</h3><p>A Bloom filter does not store actual elements.</p><p><strong>So it:</strong></p><ul><li>uses much less memory</li><li>performs fast membership checks</li><li>may return false positives</li><li>cannot list stored items</li><li>does not support normal deletion in the standard version</li></ul><p>So Bloom filters are useful when you want a <strong>cheap first check</strong>, not full exact storage.</p><h3>Why deletion is difficult in a standard Bloom filter</h3><p><strong>Let’s say:</strong></p><ul><li>&quot;apple&quot; turns on bits 2, 5, 8</li><li>&quot;banana&quot; turns on bits 5, 7, 9</li></ul><p>Notice that both items use bit 5.</p><p>Now imagine deleting &quot;apple&quot;.</p><p>If we turn off bits 2, 5, and 8, then bit 5 becomes 0.</p><p>But &quot;banana&quot; still depends on bit 5.</p><p>So now &quot;banana&quot; might incorrectly appear absent.</p><p>That would create a false negative, which standard Bloom filters are supposed to avoid.</p><p>That is why standard Bloom filters do <strong>not</strong> support safe deletion.</p><h3>Counting Bloom filter</h3><p>To support deletion, there is a variation called a <strong>Counting Bloom Filter</strong>.</p><p><strong>Instead of storing just bits like:</strong></p><ul><li>0</li><li>1</li></ul><p><strong>It stores small counters like:</strong></p><ul><li>0</li><li>1</li><li>2</li><li>3</li></ul><p><strong>Now the logic becomes:</strong></p><ul><li>insertion increases counters</li><li>deletion decreases counters</li><li>lookup checks whether all counters are greater than zero</li></ul><p>This makes deletion possible, but it uses more memory than the standard Bloom filter.</p><h3>Where Bloom filters are used in real life</h3><p>Bloom filters are used in many systems where fast membership checking matters.</p><h4>Databases</h4><p>A database can use a Bloom filter before reading from disk.</p><p>If the filter says “definitely not present,” the database avoids an unnecessary disk read.</p><h4>Caching systems</h4><p>Before checking a full cache, a system can first use a Bloom filter to quickly reject impossible items.</p><h4>Search engines</h4><p>They can help rule out terms or records that definitely do not exist.</p><h4>Duplicate detection</h4><p>Useful when processing streams of large data and checking whether something was probably seen before.</p><h4>Distributed systems</h4><p>Bloom filters can reduce unnecessary network calls or data lookups.</p><h4>Big data systems</h4><p>They are especially useful in systems that handle huge volumes of information.</p><h4>A simple real-world example</h4><p>Imagine a database storing millions of keys on disk.</p><p>Now a query asks:</p><p><strong>“Does key X exist?”</strong></p><p>Checking the disk every time is expensive.</p><p>So the system first checks a Bloom filter in memory.</p><ul><li>If the Bloom filter says <strong>definitely not present</strong>, the system skips disk access</li><li>If the Bloom filter says <strong>possibly present</strong>, the system performs the real disk lookup</li></ul><p>This saves a lot of time because many useless disk reads are avoided.</p><p>And that is exactly the kind of problem Bloom filters are built for.</p><h3>Advantages of Bloom filters</h3><p>Bloom filters are popular because they offer some very strong benefits.</p><h4>1. They save memory</h4><p>They store only bit information, not full items.</p><h4>2. They are fast</h4><p>Insertion and lookup are both quick.</p><h4>3. They reduce expensive operations</h4><p>They help avoid unnecessary database reads, disk access, and network calls.</p><h4>4. They work well at scale</h4><p>They are especially useful when data becomes extremely large.</p><h3>Limitations of Bloom filters</h3><p>They are useful, but not perfect.</p><h4>1. False positives can happen</h4><p>The filter may say “possibly present” even if the item was never added.</p><h4>2. The standard version does not support deletion</h4><p>Because multiple items may share the same bits.</p><h4>3. They do not store actual items</h4><p>You cannot recover the original data from them.</p><h4>4. Accuracy drops if the filter is overloaded</h4><p>If too many items are inserted, false positives increase.</p><h3>A simple analogy that makes the Bloom filter easy to remember</h3><p>Imagine a large board filled with light bulbs.</p><p>At the beginning, all bulbs are off.</p><p>Whenever you add a word, a few specific bulbs are turned on.</p><p>Later, when you check a word:</p><ul><li>if any required bulb is still off, that word was definitely never added</li><li>if all required bulbs are on, the word may have been added</li></ul><p>The problem is that many different words can turn on the same bulbs.</p><p>So a new word may find all its bulbs already on even if it was never inserted.</p><p>That is exactly how a false positive happens.</p><h3>Simple pseudocode</h3><p>Here is the core idea in a tiny form.</p><h4>Add</h4><pre>add(item):<br>    for each hash function:<br>        index = hash(item)<br>        bit_array[index] = 1</pre><h4>Check</h4><pre>contains(item):<br>    for each hash function:<br>        index = hash(item)<br>        if bit_array[index] == 0:<br>            return false<br>    return true</pre><p>This means:</p><ul><li>false = definitely not present</li><li>true = possibly present</li></ul><h3>Common beginner mistakes</h3><p>When people first learn Bloom filters, these are the most common misunderstandings.</p><h4>Thinking “true” means definitely present</h4><p>It does not. It only means maybe present.</p><h4>Thinking Bloom filters store values</h4><p>They do not. They only store bit patterns.</p><h4>Thinking collisions are bad</h4><p>In Bloom filters, collisions are expected.</p><h4>Thinking deletion is simple</h4><p>Not in the standard Bloom filter.</p><h4>Thinking accuracy stays the same forever</h4><p>It does not. Too many inserted items increase false positives.</p><h3>Final thoughts</h3><p>Bloom filters are one of those ideas that seem confusing at first, but once you understand the logic, they feel surprisingly elegant.</p><p>They are not meant to replace exact data structures like HashSet.</p><p>Instead, they are meant to answer a simpler and faster question:</p><p><strong>“Is this item definitely not here, or is it worth checking further?”</strong></p><p>That small idea makes Bloom filters extremely valuable in real systems.</p><p>They help systems save memory.<br>They help systems avoid unnecessary work.<br>And they make large-scale applications faster.</p><p>If I had to explain a Bloom filter in one simple sentence, I would say:</p><blockquote><em>A Bloom filter is a memory-saving “maybe checker” that can confidently say no, but only probably say yes.</em></blockquote><p>And that is exactly what makes it so useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e9395c1fc7c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-engineer/bloom-filter-explained-in-the-simplest-way-possible-0e9395c1fc7c">Bloom Filter, Explained in the Simplest Way Possible</a> was originally published in <a href="https://medium.com/data-engineer">Data Engineer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Indexing in SQL]]></title>
            <link>https://medium.com/data-engineer/indexing-in-sql-7dbc4eea7577?source=rss----dbe8a47e0abe---4</link>
            <guid isPermaLink="false">https://medium.com/p/7dbc4eea7577</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Vishal Barvaliya]]></dc:creator>
            <pubDate>Tue, 28 Apr 2026 14:56:59 GMT</pubDate>
            <atom:updated>2026-06-18T15:22:00.061Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Complete Beginner-to-Advanced Guide to Database Indexing (Explained Simply)</h4><blockquote><strong><em>I offer 1:1 data engineering mentoring and interview prep on Topmate — </em></strong><a href="https://topmate.io/vishalbarvaliya"><strong><em>book a session here</em></strong></a><strong><em>.</em></strong></blockquote><blockquote><strong>Read this blog for free here: </strong><a href="https://medium.com/@vishalbarvaliya/indexing-in-sql-7dbc4eea7577?sk=0763cc17aaa8c0f90b59792542407db3">https://medium.com/@vishalbarvaliya/indexing-in-sql-7dbc4eea7577?sk=0763cc17aaa8c0f90b59792542407db3</a></blockquote><p>If you’ve ever wondered why some database queries run in milliseconds while others feel painfully slow, the answer is often <strong>indexing</strong>.</p><p>In this blog, I’ll explain indexing in very simple terms first, then gradually go deeper into how it actually works internally. By the end, you’ll clearly understand:</p><ul><li>What indexing is</li><li>Primary vs Secondary index</li><li>Clustered vs Non-clustered index</li><li>How B-Tree works internally</li><li>When to use (and avoid) indexing</li></ul><p><strong>Let’s start simple.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LUFrhaAuShQU9HkBLeaBMA.png" /><figcaption>Image by Author using Gemini</figcaption></figure><h3>What is Indexing? (Super Simple Explanation)</h3><p>Imagine you have a 1,000-page book.</p><p>If the book <strong>doesn’t have an index</strong>, and you want to find a topic, you must flip page by page until you find it. That takes time.</p><p>But if the book <strong>has an index page at the back</strong>, you:</p><ol><li>Look up the topic</li><li>See the page number</li><li>Jump directly to it</li></ol><p>That index page is exactly what a <strong>database index</strong> does.</p><p><strong>Index = a shortcut that helps the database find data faster.</strong></p><h4>Why Do We Need Indexing?</h4><p>Let’s say you have a table with 1 million users:</p><pre>| id | name  | email                                     |<br>| -- | ----- | ----------------------------------------- |<br>| 1  | Rahul | [rahul@email.com](rahul@email.com)        |<br>| 2  | Priya | [priya@email.com](priya@email.com)        |<br>| …  | …     | …                                         |</pre><p><strong>Now you run:</strong></p><pre>SELECT * FROM users WHERE email = &#39;priya@email.com&#39;;</pre><h3>❌ Without Index</h3><p>The database checks:</p><ul><li>Row 1</li><li>Row 2</li><li>Row 3</li><li>…</li><li>Until it finds the match</li></ul><p>This is called a <strong>Full Table Scan</strong>.</p><p>If you have 1 million rows, it might check many of them. That’s slow.</p><h3>✅ With Index</h3><p>Now, suppose we create an index:</p><pre>CREATE INDEX idx_email ON users(email);</pre><p>Now the database:</p><ul><li>Looks inside the index</li><li>Finds where the email is stored</li><li>Jumps directly to the correct row</li></ul><p>Much faster</p><h3>Primary Index vs Secondary Index</h3><p>Now let’s go deeper.</p><h4>Primary Index</h4><p>When you create a primary key:</p><pre>CREATE TABLE users (<br>    id INT PRIMARY KEY,<br>    name VARCHAR(100),<br>    email VARCHAR(100)<br>);</pre><p>The database <strong>automatically creates an index on </strong><strong>id</strong>.</p><p><strong>Why?</strong></p><p><strong>Because the primary key must:</strong></p><ul><li>Be unique</li><li>Not be NULL</li><li>Be fast to search</li></ul><p>So the database builds an index automatically.</p><p><strong>Primary index = </strong>Index created on primary key (usually automatic).</p><h4>Secondary Index</h4><p>A secondary index is any index you manually create on non-primary columns.</p><p><strong>Example:</strong></p><pre>CREATE INDEX idx_email ON users(email);</pre><p>Now, email becomes searchable quickly.</p><p><strong>Secondary index = </strong>Extra index created on other columns for faster search.</p><h3>Clustered vs Non-Clustered Index</h3><p>This is where things get more interesting.</p><h4>Clustered Index</h4><p>A clustered index means:</p><ul><li>The actual table data is stored in the same order as the index.</li></ul><p>If a table is clustered by id, the data is physically stored like:</p><pre>1<br>2<br>3<br>4<br>5</pre><p><strong>Sorted by ID on disk.</strong></p><p>Important facts:</p><ul><li>Only ONE clustered index per table</li><li>Because data can only be stored in one physical order</li></ul><p>In many systems (like SQL Server), the primary key becomes clustered by default.</p><h3>Non-Clustered Index</h3><p>A non-clustered index is stored separately from the actual table data.</p><p><strong>Imagine:</strong></p><p>Main Table:</p><pre>1  Rahul<br>2  Amit<br>3  Priya</pre><p><strong>Non-clustered index on name:</strong></p><pre>Amit   → Row 2<br>Priya  → Row 3<br>Rahul  → Row 1</pre><p><strong>So the index:</strong></p><ul><li>Stores values</li><li>Points to the actual rows</li></ul><p><strong>Important facts:</strong></p><ul><li>You can create many non-clustered indexes</li><li>They use extra storage</li><li>They slightly slow down insert/update operations</li></ul><h3>How Indexing Works Internally (B-Tree Explained Simply)</h3><p>Most databases use something called a <strong>B-Tree (Balanced Tree)</strong> to implement indexes.</p><p>Don’t worry, let’s make it simple.</p><h3>Without B-Tree (Normal Search)</h3><p>If you have 1 million rows:</p><ul><li>The database checks one by one</li><li>Time complexity = O(n)</li><li>Very slow as data grows</li></ul><h3>With B-Tree</h3><p>Instead of scanning everything, data is stored in a tree structure like this:</p><pre>            50<br>         /     \<br>       20       80<br>      /  \     /   \<br>    10   30   70    90</pre><p><strong>If you want to find 70:</strong></p><ol><li>Compare with 50 → 70 is greater → go right</li><li>Compare with 80 → 70 is smaller → go left</li><li>Found 70</li></ol><p><strong>Only 3 steps!</strong></p><h3>Why Is B-Tree So Fast?</h3><p><strong>Because:</strong></p><ul><li>It is balanced</li><li>Each step eliminates half the data</li><li>Time complexity = O(log n)</li></ul><p><strong>For 1 million rows:</strong></p><ul><li>Instead of 1,000,000 checks</li><li>It might take only 20–25 steps</li></ul><p><strong>That’s the power of indexing.</strong></p><h3>What Happens During INSERT or UPDATE?</h3><p><strong>When you insert a new row:</strong></p><ol><li>Data is inserted into the table</li><li>The index must also be updated</li><li>The B-Tree may rearrange to stay balanced</li></ol><p><strong>So:</strong></p><ul><li>✅ Reading becomes very fast</li><li>⚠️ Inserts and updates become slightly slower</li></ul><p>That’s the trade-off.</p><h3>When Should You Use Index?</h3><p>Good candidates for indexing:</p><ul><li>Columns used in WHERE</li><li>Columns used in JOIN</li><li>Columns used in ORDER BY</li><li>Frequently searched columns</li></ul><h3>When Should You Avoid Index?</h3><p>Avoid indexing when:</p><ul><li>The table is very small</li><li>The column has very low uniqueness (e.g., gender: Male/Female)</li><li>The column changes very frequently</li></ul><p>Too many indexes can actually hurt performance.</p><h3>Final Big Picture</h3><p>Indexing is a special data structure (usually a B-Tree) that helps databases locate data quickly without scanning the entire table.</p><p>Without index → Full table scan → Slow<br>With index → Direct lookup → Fast</p><p>But remember:</p><p>Indexing improves <strong>read performance</strong>,<br>while slightly increasing <strong>write cost</strong>.</p><h3>Closing Thoughts</h3><p>If you’re working with databases, understanding indexing is one of the most important skills you can develop.</p><p>It’s not just about making queries faster; it’s about designing systems that scale efficiently as data grows.</p><p>Master indexing, and you’ll master database performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7dbc4eea7577" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-engineer/indexing-in-sql-7dbc4eea7577">Indexing in SQL</a> was originally published in <a href="https://medium.com/data-engineer">Data Engineer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apache Spark Architecture Explained]]></title>
            <link>https://medium.com/data-engineer/apache-spark-architecture-explained-12c14cad019a?source=rss----dbe8a47e0abe---4</link>
            <guid isPermaLink="false">https://medium.com/p/12c14cad019a</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[spark-architecture]]></category>
            <category><![CDATA[apache-spark]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Vishal Barvaliya]]></dc:creator>
            <pubDate>Fri, 24 Apr 2026 20:42:32 GMT</pubDate>
            <atom:updated>2026-04-24T20:42:34.115Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Read this blog for free:</strong> <a href="https://medium.com/@vishalbarvaliya/apache-spark-architecture-explained-12c14cad019a?sk=4d84eb4d22366313e8e6f0e4205f588b">https://medium.com/@vishalbarvaliya/apache-spark-architecture-explained-12c14cad019a?sk=4d84eb4d22366313e8e6f0e4205f588b</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0gVzpOK47cln2XRG.png" /><figcaption><a href="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f3/Apache_Spark_logo.svg/1280px-Apache_Spark_logo.svg.png">Image Source</a></figcaption></figure><h3>🧠 1. High-Level View</h3><p>At a high level, Spark is a <strong>distributed data processing system</strong>.</p><p><strong>Instead of processing data on a single machine, Spark:</strong></p><ul><li>splits data into smaller chunks (partitions)</li><li>distributes those chunks across multiple machines</li><li>processes them in parallel</li></ul><p>You can think of it like this:</p><pre>User Code → Driver → Cluster Manager → Executors → Tasks → Result</pre><h3>🧠 2. Main Components in Spark</h3><h3>🔹 Driver</h3><p>The <strong>driver</strong> is the starting point of your Spark application.</p><p><strong>It is responsible for:</strong></p><ul><li>reading your code</li><li>building the execution plan</li><li>requesting resources from the cluster manager</li><li>dividing work into stages and tasks</li><li>assigning tasks to executors</li><li>tracking execution</li></ul><p>👉 Think of the driver as the <strong>brain or manager</strong> of the application.</p><h3>🔹 Cluster Manager</h3><p>Spark uses a cluster manager to manage resources.</p><p><strong>Examples:</strong></p><ul><li>YARN</li><li>Kubernetes</li><li>Standalone</li></ul><p><strong>The cluster manager:</strong></p><ul><li>allocates machines</li><li>starts executors</li><li>manages CPU and memory</li></ul><p>👉 It acts as the <strong>resource allocator</strong>.</p><h3>🔹 Executors</h3><p>Executors are processes running on worker machines.</p><p><strong>They:</strong></p><ul><li>execute tasks</li><li>store intermediate data</li><li>perform shuffle operations</li><li>Send results back to the driver</li></ul><p>👉 Executors are the <strong>workers doing the actual computation</strong>.</p><h3>🔹 Partitions</h3><p>Data in Spark is divided into <strong>partitions</strong>.</p><p><strong>For example:</strong></p><ul><li>10 GB dataset</li><li>split into 100 partitions</li></ul><p>Each partition is processed independently.</p><p>👉 Partition = unit of parallelism</p><h3>🔹 Tasks</h3><p>A <strong>task</strong> is the smallest unit of work.</p><ul><li>One task processes one partition</li><li>tasks run inside executors</li></ul><p>👉 So:</p><pre>Partition → Task → Executor</pre><h3>⚡ 3. Transformations vs Actions</h3><p>This is a core concept.</p><h3>Transformations</h3><p>These define what needs to be done but do not execute immediately.</p><p><strong>Examples:</strong></p><ul><li>filter</li><li>select</li><li>join</li><li>groupBy</li></ul><h3>Actions</h3><p>These trigger execution.</p><p><strong>Examples:</strong></p><ul><li>show</li><li>count</li><li>collect</li><li>write</li></ul><p>👉 No action = no execution</p><h3>🔁 4. How Spark Executes a Job (Step by Step)</h3><p>Let’s take a simple example:</p><pre>df = spark.read.parquet(&quot;sales&quot;)<br>result = df.filter(&quot;amount &gt; 1000&quot;).groupBy(&quot;region&quot;).sum(&quot;amount&quot;)<br>result.show()</pre><h4>Step 1: Logical Plan</h4><p>Spark reads your code and creates a plan:</p><pre>Read → Filter → GroupBy → Sum</pre><p>Nothing executes yet.</p><h4>Step 2: Optimization</h4><p><strong>Spark optimizes the plan:</strong></p><ul><li>removes unnecessary columns</li><li>pushes filters early</li><li>optimizes joins</li></ul><h4>Step 3: Physical Plan</h4><p>Spark decides how to execute:</p><ul><li>which join strategy</li><li>how to scan data</li><li>how to aggregate</li></ul><h4>Step 4: DAG Creation</h4><p>Spark builds a DAG (Directed Acyclic Graph):</p><pre>Read → Filter → Shuffle → Aggregate</pre><h4>Step 5: DAG → Stages</h4><p>Spark splits the DAG into <strong>stages</strong>.</p><p><strong>Rule:</strong></p><p>👉 A new stage is created when <strong>shuffle is required</strong></p><p><strong>Example:</strong></p><pre>Stage 1 → Read + Filter  <br>Stage 2 → GroupBy (shuffle)</pre><h4>Step 6: Stages → Tasks</h4><p>Each stage is divided into tasks based on partitions.</p><p><strong>Example:</strong></p><ul><li>200 partitions → 200 tasks</li></ul><h4>Step 7: Task Scheduling</h4><p>Driver sends tasks to executors.</p><p>Each executor runs multiple tasks depending on its cores.</p><h4>Step 8: Execution</h4><p><strong>Executors:</strong></p><ul><li>read data</li><li>process partitions</li><li>produce output</li></ul><h3>🔥 5. What is Shuffle (Most Important Part)</h3><p>Shuffle is when data moves across machines.</p><p>Example:</p><p>Before groupBy:</p><pre>Partition 1 → East, West  <br>Partition 2 → East, South</pre><p>After groupBy:</p><pre>All East → one partition  <br>All West → another</pre><p>👉 Data must move across nodes</p><h3>Why Shuffle is Expensive</h3><h4>Because it involves:</h4><ul><li>disk I/O</li><li>network transfer</li><li>memory usage</li><li>sorting</li></ul><p>👉 This is the biggest performance bottleneck in Spark.</p><h3>💥 6. Why Spark Jobs Become Slow or Fail</h3><h4>1. Data Skew</h4><p>One key has too much data → one task becomes huge</p><h4>2. Large Partitions</h4><p>Too few partitions → large tasks → memory issues</p><h4>3. Too Much Shuffle</h4><p>Heavy joins and aggregations</p><h4>4. Driver Misuse</h4><pre>df.collect()</pre><p><strong>pulls all data to the driver → crash</strong></p><h4>5. Excessive Caching</h4><p>Caching large datasets without enough memory</p><h4>7. Fault Tolerance</h4><p>Spark uses <strong>lineage</strong>.</p><p><strong>If a task fails:</strong></p><ul><li>Spark recomputes only that partition</li><li>not the whole job</li></ul><h3>🧠 8. Simple Mental Model</h3><p>You can summarize Spark execution like this:</p><pre>           Your Code<br>               ↓<br>          Logical Plan<br>               ↓<br>          Optimized Plan<br>               ↓<br>              DAG<br>               ↓<br>             Stages<br>               ↓<br>             Tasks<br>               ↓<br>           Executors<br>               ↓<br>             Result</pre><h3>🎯 Final Summary</h3><p>Spark architecture is built around:</p><ul><li>distributed execution</li><li>parallel processing</li><li>lazy evaluation</li><li>DAG-based planning</li><li>fault tolerance</li></ul><p>And a Spark job flows like this:</p><p>👉 Code → Plan → DAG → Stages → Tasks → Executors → Result</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12c14cad019a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-engineer/apache-spark-architecture-explained-12c14cad019a">Apache Spark Architecture Explained</a> was originally published in <a href="https://medium.com/data-engineer">Data Engineer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Count(*) vs Count(1) in SQL.]]></title>
            <link>https://medium.com/data-engineer/count-vs-count-1-in-sql-4d7237f91023?source=rss----dbe8a47e0abe---4</link>
            <guid isPermaLink="false">https://medium.com/p/4d7237f91023</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Vishal Barvaliya]]></dc:creator>
            <pubDate>Mon, 20 Apr 2026 19:17:10 GMT</pubDate>
            <atom:updated>2026-06-18T15:29:02.539Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Access this blog for free: </strong><a href="https://medium.com/data-engineer/count-vs-count-1-in-sql-4d7237f91023?sk=56c2146c088f97179e2e443b23f20912"><strong>https://medium.com/data-engineer/count-vs-count-1-in-sql-4d7237f91023?sk=56c2146c088f97179e2e443b23f20912</strong></a></blockquote><blockquote><strong><em>I offer 1:1 data engineering mentoring and interview prep on Topmate — </em></strong><a href="https://topmate.io/vishalbarvaliya"><strong><em>book a session here</em></strong></a><strong><em>.</em></strong></blockquote><p>If you’ve spent any time writing SQL queries, you’ve probably seen both `COUNT(*)` and `COUNT(1)` used to count rows in a table. But what’s the difference between them, and which one should you use? Let’s break it down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3MVUv7_CsYiQxL6bCd1PsQ.png" /><figcaption>Image Source</figcaption></figure><h4>What They Do:</h4><ul><li><strong>COUNT(*)</strong>: This function simply counts all the rows in a table, no matter what. It doesn’t care about NULL values or anything else. It just wants to know how many rows there are.</li><li><strong>COUNT(1)</strong>: This function also counts all the rows in a table. The <strong>`1`</strong> is just a constant and does not refer to any specific column; it’s merely a placeholder. The database engine treats it the same way as <strong>`COUNT(*)`</strong>.</li></ul><h4>Performance Talk:</h4><ul><li>When it comes to performance, there’s usually not much of a difference between the two. Modern databases are pretty smart and can handle both just fine. Some folks say <strong>`COUNT(1)` </strong>might be a tad faster in certain older databases because it’s counting a simple constant value, but honestly, the difference is usually so small that it doesn’t matter much.</li></ul><h4>Readability Matters:</h4><ul><li>Here’s the thing: while performance is cool and all, readability is just as important, if not more. When someone sees `COUNT(*)`, they immediately know you’re counting all the rows. It’s clear and straightforward.</li><li>On the other hand, `COUNT(1)` might make some folks scratch their heads for a moment. Sure, it’s explicit in counting the literal value `1`, but it’s not as immediately obvious as `COUNT(*)`.</li></ul><h3>Final Thoughts:</h3><p>So, which one should you use? Well, it mostly comes down to personal preference and what your team or project’s coding standards are. Both `COUNT(*)` and `COUNT(1)` get the job done, but `COUNT(*)` is generally preferred for its clarity and readability.</p><p>At the end of the day, just pick the one that makes the most sense to you and your team. As long as your SQL queries are easy to understand and maintain, you’re golden.</p><p><strong>Connect with me on LinkedIn: </strong><a href="https://www.linkedin.com/in/vishalbarvaliya/"><strong>LinkedIn</strong></a></p><blockquote><strong><em>You can read all of my blogs for free at : </em></strong><a href="https://thebigdataengineer.com/"><strong><em>thebigdataengineer.com</em></strong></a></blockquote><p><strong>Resources used to write this blog:</strong></p><ul><li>Learn from Youtube Channels: <a href="https://www.youtube.com/@DarshilParmar"><strong><em>Darshil Parmar</em></strong></a><strong><em>, </em></strong><a href="https://www.youtube.com/@shashank_mishra"><strong><em>e-learning bridge</em></strong></a><strong><em>, d</em></strong><a href="https://www.youtube.com/@dataengineeringvideos"><strong><em>ata engineering</em></strong></a>, <a href="https://www.youtube.com/@GeekCoders"><strong>GeekCoders</strong></a>, <a href="https://www.youtube.com/@ankitbansal6"><strong>Ankit Bansal</strong></a>, <a href="https://www.youtube.com/@DataSavvy"><strong>Data Savv</strong></a>y, <a href="https://www.youtube.com/@techTFQ">TechTFQ</a></li><li>I used G<strong>oogle </strong>to research and resolve my doubts</li><li>From my <strong>Experience</strong></li><li>I used <a href="https://app.grammarly.com/"><strong><em>Grammarly </em></strong></a>to check my grammar and use the right words.</li></ul><p><a href="https://medium.com/@vishalbarvaliya/membership">Join Medium with my referral link - Vishal Barvaliya</a></p><p><strong>if you enjoy reading my blogs,</strong> consider <strong>subscribing </strong>to my feeds. also, if you are not a medium member and you would like to gain unlimited access to the platform, consider using my <a href="https://medium.com/@vishalbarvaliya/membership"><strong><em>referral link right here</em></strong></a><strong><em> </em></strong>to sign up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d7237f91023" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-engineer/count-vs-count-1-in-sql-4d7237f91023">Count(*) vs Count(1) in SQL.</a> was originally published in <a href="https://medium.com/data-engineer">Data Engineer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recursive CTEs In SQL]]></title>
            <link>https://medium.com/data-engineer/recursive-ctes-in-sql-7b5dc666b16a?source=rss----dbe8a47e0abe---4</link>
            <guid isPermaLink="false">https://medium.com/p/7b5dc666b16a</guid>
            <category><![CDATA[recursive-cte]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[recursion]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Vishal Barvaliya]]></dc:creator>
            <pubDate>Mon, 20 Apr 2026 19:12:23 GMT</pubDate>
            <atom:updated>2026-06-18T15:20:12.102Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>I offer 1:1 data engineering mentoring and interview prep on Topmate — </em></strong><a href="https://topmate.io/vishalbarvaliya"><strong><em>book a session here</em></strong></a><strong><em>.</em></strong></blockquote><blockquote><strong>Read for free: </strong><a href="https://medium.com/@vishalbarvaliya/recursive-ctes-in-sql-7b5dc666b16a?sk=ca4944eb8b0934e45ecec46623db6524">https://medium.com/@vishalbarvaliya/recursive-ctes-in-sql-7b5dc666b16a?sk=ca4944eb8b0934e45ecec46623db6524</a></blockquote><p>When I first encountered the term “Recursive CTE” in a SQL tutorial, I did what most beginners do — I Googled it, found a answer full of jargon, closed the tab, and pretended it didn’t exist.</p><p>But recursive CTEs kept showing up. In interview questions, in real databases, in that one ticket my senior handed me with a note that said: “Just use a recursive CTE.” So I finally sat down and figured it out properly.</p><p>And honestly? Once it clicked, I couldn’t believe I had avoided it for so long. It’s one of those things that sounds scary but is actually built on a very simple idea.</p><p>Let me explain it the way I wish someone had explained it to me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*RAMHuBMGolRc6eaCfgBlxA.jpeg" /><figcaption>Image by Author</figcaption></figure><h3>First, What Even Is a CTE?</h3><p>Before we get to the recursive part, let’s make sure we’re solid on what a CTE is.</p><p>CTE stands for Common Table Expression. Think of it as a temporary, named result set that you define at the top of your query and use just like a regular table below it.</p><p><strong>Here’s a basic example:</strong></p><pre>WITH senior_employees AS (<br>  SELECT * FROM employees WHERE years_experience &gt; 5<br>)<br>SELECT name, salary FROM senior_employees;</pre><p>The part inside the WITH block is the CTE. We named it senior_employees, and then we used it in the SELECT below. That’s it. It’s just a way to write cleaner, more readable SQL by breaking a big query into named pieces.</p><p>Simple enough, right? Good. Now let’s add the “recursive” part.</p><h3>So What Makes a CTE “Recursive”?</h3><p>A recursive CTE is one that references itself. It keeps running and building on its own previous results until a stopping condition is met.</p><p>I know, that sounds weird. A query that calls itself? Let me use an analogy.</p><p>Imagine you’re climbing a staircase and counting your steps out loud:</p><ul><li>You start at step 1.</li><li>You say “current step: 1, next step: 2.”</li><li>You move to step 2 and say, “current step: 2, next step: 3.”</li><li>You keep doing this until you reach the top floor.</li><li>Once you hit the top, you stop.</li></ul><p>A recursive CTE does exactly this. It starts somewhere, produces a result, then uses that result to produce the next one, and keeps going until a stopping condition kicks in.</p><h3>The Structure of a Recursive CTE</h3><p>Every recursive CTE has three parts. Once you understand these three parts, everything else falls into place.</p><pre>WITH RECURSIVE cte_name AS (<br>  -- Part 1: The Anchor Member (the starting point)<br>  SELECT ...  <br>UNION ALL<br>-- Part 2: The Recursive Member (the part that calls itself)<br>  SELECT ... FROM cte_name WHERE ...<br>)<br>-- Part 3: The Final SELECT (where you use the result)<br>SELECT * FROM cte_name;</pre><p>Let’s break these down one by one.</p><p><strong>Part 1: The Anchor Member</strong></p><ul><li>This is where your recursion starts. It runs exactly once and gives you the first row (or rows) in your result set. Think of it as step 1 on the staircase.</li></ul><p><strong>Part 2: The Recursive Member</strong></p><ul><li>This is the part that does the looping. It references the CTE by name (cte_name in the example above) and builds on top of the previous result. Every time it runs, it takes the output from the last round and uses it to generate new rows.</li></ul><p><strong>Part 3: The Final SELECT</strong></p><ul><li>Once the recursion is done, you query the CTE like a normal table to get your final output.</li></ul><p>The UNION ALL between Part 1 and Part 2 is not optional; it’s what connects the anchor to the recursive member.</p><h3>A Real Example: Counting from 1 to 10</h3><p>Let’s write our very first recursive CTE. We’re going to generate a sequence of numbers from 1 to 10.</p><pre>WITH RECURSIVE counter AS (<br>  SELECT 1 AS n          -- Anchor: start at 1<br>UNION ALL<br>  SELECT n + 1           -- Recursive: add 1 each time<br>  FROM counter<br>  WHERE n &lt; 10           -- Stop condition: don&#39;t go past 10<br>)<br>SELECT n FROM counter;</pre><p>Output:</p><pre>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10</pre><p><strong>Let’s trace through exactly what’s happening here:</strong></p><ul><li>Round 1 (Anchor): Produces → 1</li><li>Round 2 (Recursive): Takes 1, produces → 2</li><li>Round 3 (Recursive): Takes 2, produces → 3</li><li>…</li><li>Round 10 (Recursive): Takes 9, produces → 10</li><li>Round 11: n is now 10, so WHERE n &lt; 10 is FALSE → recursion stops</li></ul><p>The WHERE clause is your stopping condition. It’s the most important line in a recursive CTE. Without it, the query would run forever (or until your database throws an error).</p><h3>A More Useful Example: Finding Missing IDs</h3><p>Let’s apply this to a real problem. Say you have a table like this:</p><pre>CREATE TABLE orders (id INT);<br>INSERT INTO orders VALUES (1),(2),(3),(7),(8),(15);</pre><p>You want to find all the missing IDs between 1 and 15. Here’s how you’d do it with a recursive CTE:</p><pre>WITH RECURSIVE all_ids AS (<br>  SELECT 1 AS id          -- Start at 1<br>UNION ALL<br>  SELECT id + 1<br>  FROM all_ids<br>  WHERE id &lt; 15            -- Go up to 15<br>)<br>SELECT id AS missing_id<br>FROM all_ids<br>WHERE id NOT IN (SELECT id FROM orders)<br>ORDER BY id;</pre><p>Output:</p><pre>4<br>5<br>6<br>9<br>10<br>11<br>12<br>13<br>14</pre><p>What we did here: we first generated every number from 1 to 15 using the recursive CTE, and then we filtered out the ones that already exist in our orders table. Clean and simple.</p><h3>The Classic Example: Organizational Hierarchy</h3><p>This is the use case that recursive CTEs were basically invented for — traversing hierarchical data like an employee-manager tree.</p><p>Imagine this table:</p><pre>CREATE TABLE employees (<br>  id   INT,<br>  name VARCHAR(50),<br>  manager_id INT  -- NULL means this person is the top of the chain<br>);<br><br>INSERT INTO employees VALUES<br>(1, &#39;Alice&#39;, NULL),   -- CEO<br>(2, &#39;Bob&#39;, 1),        -- Reports to Alice<br>(3, &#39;Carol&#39;, 1),      -- Reports to Alice<br>(4, &#39;Dave&#39;, 2),       -- Reports to Bob<br>(5, &#39;Eve&#39;, 2),        -- Reports to Bob<br>(6, &#39;Frank&#39;, 3);      -- Reports to Carol</pre><p>Now the question is: starting from Alice (the CEO), list every employee and how deep in the org chart they are.</p><pre>WITH RECURSIVE org_chart AS (<br>  -- Anchor: start with the CEO (no manager)<br>  SELECT id, name, manager_id, 0 AS depth<br>  FROM employees<br>  WHERE manager_id IS NULL<br><br>UNION ALL<br>  -- Recursive: find all direct reports of the current level<br>  SELECT e.id, e.name, e.manager_id, oc.depth + 1<br>  FROM employees e<br>  JOIN org_chart oc ON e.manager_id = oc.id<br>)<br>SELECT name, depth FROM org_chart ORDER BY depth, name;</pre><p>Output:</p><pre>Alice    0<br>Bob      1<br>Carol    1<br>Dave     2<br>Eve      2<br>Frank    2</pre><p>This is incredibly powerful. Without recursion, you’d need to write a separate query for each level of the hierarchy, and you’d have no idea how many levels deep the tree goes. With a recursive CTE, it handles any depth automatically.</p><h3>Common Mistakes Beginners Make</h3><p><strong>Forgetting the stopping condition</strong></p><p>If you forget the WHERE clause in your recursive member, your query will loop indefinitely. Most databases have a max recursion limit (SQL Server defaults to 100, PostgreSQL lets you configure it), but you should never rely on that. Always include a WHERE condition that will eventually become false.</p><p><strong>Using UNION instead of UNION ALL</strong></p><p>The recursive member must use UNION ALL, not UNION. Using UNION would cause the database to deduplicate rows after each round, which breaks the recursion logic and adds significant overhead.</p><p><strong>Referencing the CTE more than once in the recursive member</strong></p><p>You can only reference the recursive CTE once in the recursive member. If you need to join it to itself, that’s not allowed in a single recursive CTE — you’d need to restructure your query.</p><p><strong>Forgetting the RECURSIVE keyword (some databases)</strong></p><p>In PostgreSQL and MySQL 8+, you need to write WITH RECURSIVE. In SQL Server and Oracle, you just write WITH — they support recursion without the extra keyword. Know your database.</p><h3>Quick Syntax Reference by Database</h3><p>PostgreSQL / MySQL 8+:</p><pre>WITH RECURSIVE cte_name AS (...)<br>SELECT * FROM cte_name;</pre><p>SQL Server:</p><pre>WITH cte_name AS (...)<br>SELECT * FROM cte_name;</pre><p>Oracle:</p><pre>WITH cte_name AS (...)<br>SELECT * FROM cte_name;</pre><p>The logic is identical across all databases. Only the keyword differs.</p><h3>When Should You Actually Use a Recursive CTE?</h3><p>Recursive CTEs are the right tool when your data has a self-referencing relationship or when you need to generate a sequence without a built-in function. The most common scenarios are:</p><p>Hierarchical data org charts, category trees, folder structures, bill of materials. Any time rows in a table point to other rows in the same table.</p><p>Sequence generation when you need a list of numbers, dates, or other sequences and your database doesn’t have a built-in generator (like PostgreSQL’s generate_series).</p><p>Graph traversal finding all connected nodes, calculating shortest paths, detecting cycles.</p><p>Finding gaps like we did in the missing IDs example.</p><p>If you don’t have one of these scenarios, you probably don’t need recursion. A regular CTE or subquery will do the job just fine.</p><h3>Wrapping Up</h3><p>Recursive CTEs follow a simple three-part structure: an anchor that provides the starting point, a recursive member that builds on the previous result, and a stopping condition that tells it when to quit.</p><p>Once you understand that loop — start, build, stop — you can apply it to almost any self-referencing problem in SQL. Hierarchies, sequences, graphs, gaps. It’s one of the most versatile tools in SQL, and it’s not nearly as complicated as it looks the first time.</p><p>The next time you see a query with WITH RECURSIVE at the top, don’t close the tab. Trace through the anchor, follow the loop, find the stopping condition. It’ll make sense faster than you think.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b5dc666b16a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-engineer/recursive-ctes-in-sql-7b5dc666b16a">Recursive CTEs In SQL</a> was originally published in <a href="https://medium.com/data-engineer">Data Engineer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Immich in Proxmox LXC: A Stability Gamble Worth Taking?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/data-engineer/immich-in-proxmox-lxc-a-stability-gamble-worth-taking-ab732189efa7?source=rss----dbe8a47e0abe---4"><img src="https://cdn-images-1.medium.com/max/1374/1*hNfjoYv9e7D9uDSxDwZMQg.png" width="1374"></a></p><p class="medium-feed-snippet">Home server enthusiasts love pushing boundaries &#x2014; squeezing every last drop of utility out of platforms like Proxmox, ZFS, and Docker. So&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/data-engineer/immich-in-proxmox-lxc-a-stability-gamble-worth-taking-ab732189efa7?source=rss----dbe8a47e0abe---4">Continue reading on Data Engineer »</a></p></div>]]></description>
            <link>https://medium.com/data-engineer/immich-in-proxmox-lxc-a-stability-gamble-worth-taking-ab732189efa7?source=rss----dbe8a47e0abe---4</link>
            <guid isPermaLink="false">https://medium.com/p/ab732189efa7</guid>
            <category><![CDATA[proxmox-lxc]]></category>
            <category><![CDATA[immich]]></category>
            <dc:creator><![CDATA[Mr.PlanB]]></dc:creator>
            <pubDate>Sun, 01 Mar 2026 07:33:25 GMT</pubDate>
            <atom:updated>2026-03-01T07:33:24.396Z</atom:updated>
        </item>
    </channel>
</rss>