<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Data-Modeling on Sohil Ladhani Blog</title><link>https://sohilladhani.com/blog/tags/data-modeling/</link><description>Recent content in Data-Modeling on Sohil Ladhani Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 11 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://sohilladhani.com/blog/tags/data-modeling/index.xml" rel="self" type="application/rss+xml"/><item><title>Variable-Attribute Product Catalog</title><link>https://sohilladhani.com/blog/post/2026-07-11-variable-attribute-catalog/</link><pubDate>Sat, 11 Jul 2026 00:00:00 +0000</pubDate><guid>https://sohilladhani.com/blog/post/2026-07-11-variable-attribute-catalog/</guid><description>Amazon sells 350 million products. A shoe has size, color, and material. A TV has screen size, resolution, refresh rate, and HDR type. A book has ISBN, author, and page count. No two product categories share the same attributes. A relational table with a column per attribute would have thousands of columns, almost all null for any given product. Variable-attribute product catalog is the data modeling problem of storing structured but heterogeneous data efficiently.</description></item><item><title>Mutual Match Detection</title><link>https://sohilladhani.com/blog/post/2026-07-10-mutual-match-detection/</link><pubDate>Fri, 10 Jul 2026 00:00:00 +0000</pubDate><guid>https://sohilladhani.com/blog/post/2026-07-10-mutual-match-detection/</guid><description>A Tinder match happens when two users both swipe right on each other. The moment user B swipes right on user A, the system must detect that A has already swiped right on B and trigger the match notification. This is mutual match detection: an efficient, low-latency check for bidirectional intent.
The Naive Approach When user B swipes right on user A: query the swipes table for swiper_id=A AND swiped_id=B AND direction=right.</description></item><item><title>Email Threading</title><link>https://sohilladhani.com/blog/post/2026-07-05-email-threading/</link><pubDate>Sun, 05 Jul 2026 00:00:00 +0000</pubDate><guid>https://sohilladhani.com/blog/post/2026-07-05-email-threading/</guid><description>Gmail groups related emails into conversations. Reply to a thread from three different email clients, forward it twice, and all seven messages collapse into one conversation. This is email threading: the problem of grouping messages that belong to the same conversation, despite arriving out of order, from different clients, with inconsistent subject lines.
Threading Identifiers Email headers carry threading signals:
Message-ID: a unique identifier for each message, set by the sending client.</description></item></channel></rss>