<?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[Stories by Thana B. on Medium]]></title>
        <description><![CDATA[Stories by Thana B. on Medium]]></description>
        <link>https://medium.com/@thana.b.jpy?source=rss-e2b9c59ca5ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_-Kc3-081YazKVgU-HyNzQ.jpeg</url>
            <title>Stories by Thana B. on Medium</title>
            <link>https://medium.com/@thana.b.jpy?source=rss-e2b9c59ca5ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:58:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thana.b.jpy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Break Constraint in Google OR-tools Vehicle Routing Problem Explained]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@thana.b.jpy/break-constraint-in-google-or-tools-vehicle-routing-problem-explained-480d74c82dfc?source=rss-e2b9c59ca5ec------2"><img src="https://cdn-images-1.medium.com/max/2600/0*YXz356ri471GVe7C" width="5760"></a></p><p class="medium-feed-snippet">Let&#x2019;s start from goal of this article.</p><p class="medium-feed-link"><a href="https://medium.com/@thana.b.jpy/break-constraint-in-google-or-tools-vehicle-routing-problem-explained-480d74c82dfc?source=rss-e2b9c59ca5ec------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@thana.b.jpy/break-constraint-in-google-or-tools-vehicle-routing-problem-explained-480d74c82dfc?source=rss-e2b9c59ca5ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/480d74c82dfc</guid>
            <category><![CDATA[vehicle-routing-problem]]></category>
            <category><![CDATA[mathematical-optimization]]></category>
            <category><![CDATA[google-or-tools]]></category>
            <category><![CDATA[operations-research]]></category>
            <dc:creator><![CDATA[Thana B.]]></dc:creator>
            <pubDate>Mon, 30 Sep 2024 16:17:55 GMT</pubDate>
            <atom:updated>2024-10-01T23:28:26.171Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to use routing model of Google OR-tools: Basics]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@thana.b.jpy/how-to-use-routing-model-of-google-or-tools-basics-4200d860bc26?source=rss-e2b9c59ca5ec------2"><img src="https://cdn-images-1.medium.com/max/2600/0*m4K2RkZz7Atme7XZ" width="3981"></a></p><p class="medium-feed-snippet">This article is for an engineer who would like to solve Vehicle Routing Problem without understanding the whole concept of operations&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@thana.b.jpy/how-to-use-routing-model-of-google-or-tools-basics-4200d860bc26?source=rss-e2b9c59ca5ec------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@thana.b.jpy/how-to-use-routing-model-of-google-or-tools-basics-4200d860bc26?source=rss-e2b9c59ca5ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/4200d860bc26</guid>
            <category><![CDATA[psvr]]></category>
            <category><![CDATA[vehicle-routing-problem]]></category>
            <category><![CDATA[google-or-tools]]></category>
            <dc:creator><![CDATA[Thana B.]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 15:17:46 GMT</pubDate>
            <atom:updated>2024-09-24T15:52:24.240Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Choosing between Cloud SQL and BigQuery: Comparison in 1 Minute]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@thana.b.jpy/cloud-sql-vs-bigquery-comparison-and-selection-in-1-minute-952181ea184a?source=rss-e2b9c59ca5ec------2"><img src="https://cdn-images-1.medium.com/max/2600/0*ylFVovZJIBzx8MLI" width="5184"></a></p><p class="medium-feed-link"><a href="https://medium.com/@thana.b.jpy/cloud-sql-vs-bigquery-comparison-and-selection-in-1-minute-952181ea184a?source=rss-e2b9c59ca5ec------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@thana.b.jpy/cloud-sql-vs-bigquery-comparison-and-selection-in-1-minute-952181ea184a?source=rss-e2b9c59ca5ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/952181ea184a</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[cloud-sql]]></category>
            <category><![CDATA[google-cloud]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[Thana B.]]></dc:creator>
            <pubDate>Sun, 12 May 2024 00:17:37 GMT</pubDate>
            <atom:updated>2024-05-15T07:55:09.673Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Efficiently Reflect Changes to Your Data Warehouse]]></title>
            <link>https://medium.com/@thana.b.jpy/how-to-efficiently-reflect-changes-to-your-data-warehouse-e2c9f9696129?source=rss-e2b9c59ca5ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2c9f9696129</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[materializedviews]]></category>
            <dc:creator><![CDATA[Thana B.]]></dc:creator>
            <pubDate>Thu, 02 May 2024 00:03:25 GMT</pubDate>
            <atom:updated>2024-05-02T00:03:25.603Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IdhcXEfPYCghVhyhk3HyBg@2x.jpeg" /><figcaption>Photo by Markus Winkler on Unsplash</figcaption></figure><p>A data warehouse is a goldmine of historical data, but its real power comes from reflecting changes happening in your source systems. This article explores how a staging area and incremental loading can streamline this process.</p><h3>1. Data Source Schema for Efficiency</h3><p>The key to efficient updates lies in your data source schema. Here’s why two specific columns are crucial:</p><ul><li><strong>last_updated</strong>: This timestamp column reflects the exact time a record was last modified in the source system. During data updates, we’ll leverage this to identify recently changed data.</li><li><strong>is_active</strong>: This flag (often a boolean) helps with soft deletes. When a record becomes obsolete in the source system, instead of deleting it from the data warehouse, we can simply set is_active to false. This maintains historical data integrity while flagging inactive records.</li></ul><h3>2. Tracking the Update Gap: ETL Metadata</h3><p>Imagine you run your data update process (ETL — Extract, Transform, Load) daily. To ensure you only capture new or modified data since the last run, we need a way to track the progress. Here’s where the ETL metadata table comes in:</p><ul><li><strong>high_watermark</strong>: This column stores the highest last_updated value processed in the previous ETL job. It acts as a starting point for the next run, ensuring you only fetch data that changed after the last update.</li></ul><h3>3. Loading Only Updated Data: Selective Extraction</h3><p>With the groundwork laid, let’s see how to selectively load data from the source system to the staging area:</p><p>Important: Before starting the ETL process, truncate the staging area to ensure you’re working with the latest data only.</p><ol><li><strong>Filter based on high_watermark</strong>: In your ETL script, you’ll query the data source, filtering for records where the last_updated timestamp is greater than the value stored in the high_watermark of the ETL metadata table. This ensures you only capture recently updated or new data.</li><li><strong>Load to Staging Area</strong>: The filtered data is then loaded into the staging area. This temporary storage acts as a buffer zone for data processing before it reaches the data warehouse.</li></ol><h3>4. Upserting to the Data Warehouse: Keeping it Clean</h3><p>Finally, we need to move the processed data from the staging area to the data warehouse:</p><p><strong>Upsert</strong>: This powerful operation combines update and insert functionalities. It checks for existing records based on a unique identifier (often present in both source and warehouse). If a matching record exists, it updates the relevant columns (including potentially setting is_active to false for soft deletes based on the source data). If no match is found, a new record is inserted.</p><p>By following these steps, you can implement an incremental loading strategy with a staging area. This approach ensures your data warehouse stays up-to-date with the latest changes in your source system, while maintaining data integrity through soft deletes and efficient resource utilization by focusing only on recently modified data.</p><p>(These steps are general procedure to impement incremental loads, it would cost time and effort to implement this from scratch. However, you can use <a href="https://medium.com/@thana.b.jpy/introduction-to-bigquery-materialized-views-effortless-solution-to-incremental-loads-237701743e79">BigQuery’s Materialized View</a> to achieve the incremental load effortlessly.)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2c9f9696129" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Which Google Cloud service is equivalent to AWS Glue?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">AWS Glue provides functionalities that are similar to various services within the Google Cloud ecosystem, including Dataplex, BigQuery&#x2019;s&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@thana.b.jpy/which-google-cloud-service-is-equivalent-to-aws-glue-f83cf8323505?source=rss-e2b9c59ca5ec------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@thana.b.jpy/which-google-cloud-service-is-equivalent-to-aws-glue-f83cf8323505?source=rss-e2b9c59ca5ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/f83cf8323505</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[google-cloud]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[aws-glue]]></category>
            <dc:creator><![CDATA[Thana B.]]></dc:creator>
            <pubDate>Wed, 01 May 2024 12:53:46 GMT</pubDate>
            <atom:updated>2024-05-01T13:11:44.148Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Why You Should Choose Causal Machine Learning Over General/Simple Machine Learning for Analyzing…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@thana.b.jpy/why-you-should-choose-causal-machine-learning-over-general-simple-machine-learning-for-analyzing-fb8eafc038c4?source=rss-e2b9c59ca5ec------2"><img src="https://cdn-images-1.medium.com/max/2600/0*64mooUAl_RupDazl" width="5184"></a></p><p class="medium-feed-snippet">In the world of data analysis, machine learning has emerged as a powerful tool for making sense of complex patterns and trends. However&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@thana.b.jpy/why-you-should-choose-causal-machine-learning-over-general-simple-machine-learning-for-analyzing-fb8eafc038c4?source=rss-e2b9c59ca5ec------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@thana.b.jpy/why-you-should-choose-causal-machine-learning-over-general-simple-machine-learning-for-analyzing-fb8eafc038c4?source=rss-e2b9c59ca5ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb8eafc038c4</guid>
            <category><![CDATA[causal-inference]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[causal-effect]]></category>
            <category><![CDATA[causal-machine-learning]]></category>
            <dc:creator><![CDATA[Thana B.]]></dc:creator>
            <pubDate>Mon, 29 Apr 2024 00:32:56 GMT</pubDate>
            <atom:updated>2024-04-29T00:32:56.647Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Optimizing CompletenDimension Table Updates: Handling Null Attributes]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@thana.b.jpy/optimizing-completendimension-table-updates-handling-null-attributes-be321b2fb807?source=rss-e2b9c59ca5ec------2"><img src="https://cdn-images-1.medium.com/max/2600/0*MoEZfiKwvcdYBHgC" width="3999"></a></p><p class="medium-feed-snippet">In the world of data management, dimension tables play a crucial role in organizing and structuring data to support business intelligence&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@thana.b.jpy/optimizing-completendimension-table-updates-handling-null-attributes-be321b2fb807?source=rss-e2b9c59ca5ec------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@thana.b.jpy/optimizing-completendimension-table-updates-handling-null-attributes-be321b2fb807?source=rss-e2b9c59ca5ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/be321b2fb807</guid>
            <category><![CDATA[data-warehouse]]></category>
            <dc:creator><![CDATA[Thana B.]]></dc:creator>
            <pubDate>Mon, 22 Apr 2024 01:06:08 GMT</pubDate>
            <atom:updated>2024-04-22T01:06:55.481Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Quick Overview of BigQuery Materialized Views: Effortless Solution to Incremental Loads]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@thana.b.jpy/introduction-to-bigquery-materialized-views-effortless-solution-to-incremental-loads-237701743e79?source=rss-e2b9c59ca5ec------2"><img src="https://cdn-images-1.medium.com/max/2600/0*qpztSzEJ6FC7Yvzr" width="4592"></a></p><p class="medium-feed-snippet">Materialized View = Auto Incrementally Update Table</p><p class="medium-feed-link"><a href="https://medium.com/@thana.b.jpy/introduction-to-bigquery-materialized-views-effortless-solution-to-incremental-loads-237701743e79?source=rss-e2b9c59ca5ec------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@thana.b.jpy/introduction-to-bigquery-materialized-views-effortless-solution-to-incremental-loads-237701743e79?source=rss-e2b9c59ca5ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/237701743e79</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[materializedviews]]></category>
            <category><![CDATA[google-cloud]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[incremental]]></category>
            <dc:creator><![CDATA[Thana B.]]></dc:creator>
            <pubDate>Sat, 13 Apr 2024 21:50:57 GMT</pubDate>
            <atom:updated>2024-05-14T12:34:26.483Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Design Data Lake on AWS S3]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-link"><a href="https://medium.com/@thana.b.jpy/designing-an-efficient-data-lake-on-aws-s3-best-practices-and-folder-structures-7aad04375fe1?source=rss-e2b9c59ca5ec------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@thana.b.jpy/designing-an-efficient-data-lake-on-aws-s3-best-practices-and-folder-structures-7aad04375fe1?source=rss-e2b9c59ca5ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/7aad04375fe1</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-lake]]></category>
            <category><![CDATA[s3]]></category>
            <dc:creator><![CDATA[Thana B.]]></dc:creator>
            <pubDate>Tue, 02 Apr 2024 02:24:54 GMT</pubDate>
            <atom:updated>2024-05-12T09:28:53.046Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[CausalRandomForestRegressor Explained]]></title>
            <link>https://medium.com/@thana.b.jpy/causalrandomforestregressor-explained-e73c5e352fd4?source=rss-e2b9c59ca5ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/e73c5e352fd4</guid>
            <category><![CDATA[causal-inference]]></category>
            <dc:creator><![CDATA[Thana B.]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 12:39:01 GMT</pubDate>
            <atom:updated>2024-01-08T12:39:01.539Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding the Foundation of Causal Inference</h3><p>Causal inference remains a crucial aspect in analyzing the effects of treatments or policies, particularly in situations where randomized control trials are not feasible. Like the CausalTreeRegressor, the CausalRandomForestRegressor is grounded in the counterfactual framework, considering what might have happened under different treatment scenarios.</p><h3>Building the Forest for Broader Insights</h3><p>The CausalRandomForestRegressor extends the concept of the CausalTreeRegressor by constructing multiple causal trees, each representing a different subset of the data and features. This ensemble method enhances the stability and accuracy of the treatment effect estimates.</p><p><strong>1. Building the Forest:</strong><br> — Random subsets of the data and features are used to build multiple causal trees.<br> — Each tree in the forest represents a different perspective, contributing to a more comprehensive view of the treatment’s effects.</p><p><strong>2. Estimating Local Average Treatment Effects (LATEs):</strong><br> — Within each leaf node of every tree, the local average treatment effect (LATE) is estimated by comparing the outcomes of treated and control units.<br> — These LATEs focus on specific subpopulations within the data, revealing more about the treatment’s varying impacts.</p><p><strong>3. Aggregating LATE Estimates:</strong><br> — Instead of calculating an average treatment effect (ATE) for each tree, the CausalRandomForestRegressor averages (often weighted) the LATEs from all leaf nodes across all trees.<br> — The aggregated LATE offers a nuanced understanding of how treatment effects differ across various subgroups, potentially highlighting areas where interventions might be more or less effective.</p><p><strong>Conclusion</strong></p><p>The CausalRandomForestRegressor represents a significant advancement in causal analysis, particularly for complex observational data where the treatment effects may vary across different subgroups. By leveraging multiple causal trees and focusing on LATEs within individual leaf nodes, this method offers a more detailed and nuanced understanding of treatment effects, making it an invaluable tool for researchers and policymakers alike.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e73c5e352fd4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>