<?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 TY Data Benders on Medium]]></title>
        <description><![CDATA[Stories by TY Data Benders on Medium]]></description>
        <link>https://medium.com/@databendersty?source=rss-d12c75d8a261------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*RKci0ZfOOZN-nCbG</url>
            <title>Stories by TY Data Benders on Medium</title>
            <link>https://medium.com/@databendersty?source=rss-d12c75d8a261------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:01:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@databendersty/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[Looker Migration in Trendyol]]></title>
            <link>https://medium.com/trendyol-tech/looker-migration-in-trendyol-2605427072c4?source=rss-d12c75d8a261------2</link>
            <guid isPermaLink="false">https://medium.com/p/2605427072c4</guid>
            <dc:creator><![CDATA[TY Data Benders]]></dc:creator>
            <pubDate>Mon, 03 Jan 2022 20:19:21 GMT</pubDate>
            <atom:updated>2022-01-03T20:19:21.740Z</atom:updated>
            <content:encoded><![CDATA[<p>Written by <a href="https://hande-kocbey.medium.com/">Hande Koçbey</a> <a href="https://medium.com/@semrauzumcu">Semra Uludağ</a></p><p>There are a number of <a href="https://en.wikipedia.org/wiki/Business_intelligence_software"><strong>BI solutions</strong></a> available and each with varying features. The task of picking the best-fitted one can be overwhelming.</p><p>This is the story of our decision-making process and migration project which is still continuing.</p><p>The <strong>main criteria</strong> are as follows which we considered during POC phase:</p><ul><li>Our existing infrastructure</li><li>Our company size</li><li>Our data analytics needs</li><li>Our data visualization needs</li><li>What type of access we will need (on-prem vs cloud)</li><li>Integration capabilities of BI tools</li></ul><p>We classified the results in two categories: technical and business needs.</p><p><strong>Technical Advantages of Looker;</strong></p><ol><li><strong>New integration opportunities</strong>: Integrations through APIs, SDKs, and developer tools.</li><li><strong>Browser-Based Development:</strong> Elimination the need for desktop client software installation and maintenance.</li><li><strong>Source Code Version Control: </strong>Looker uses GitHub and other Git providers such as GitLab, Bitbucket, or any Git server for LookML source-file management.</li><li><strong>Web-based Experience: </strong>Web-based experience allows us for link-based sharing of contents.</li><li><strong>Trusted Data Model: </strong>Looker’s business logic layer is separate from underlying data. This enables immediate changes to the data model and instant propagation of downstream updates.</li><li><strong>In-Product Live Support: </strong>There is an <strong>online chat</strong> feature on the web to get instant support.</li><li><strong>Performance: </strong>Looker’s architecture takes advantage of modern cloud databases’ native scalability and performance.</li></ol><p><strong>Business Advantages of Looker;</strong></p><ol><li><strong>Slack Integration:</strong> Looker provides notification <strong>integration with Slack</strong> application.</li><li><strong>Sending Alerts: </strong>Sending alerts by setting the relevant conditions on the dashboards without the need of any third party tool.</li><li><strong>Creating and Publishing Reports and Dashboards: </strong>Looker provides a platform for business users to<strong> </strong>create their<strong> own Dashboards</strong> and <strong>Looks</strong> by using modeled Explores. Co-working on the same dashboard is possible.</li></ol><p>After picking Looker as our new BI tool, we analyzed the asset which we will develop in Looker and the migration strategies to expedite process accordingly.</p><h3>Migration Statistics &amp; Strategies</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*mhl5Qn8qK7ck0u54S_mgrA.png" /></figure><p>Our main migration strategies are as follows:</p><ul><li>Analyzing the usage statistics of the reports and <strong>elimination</strong> <strong>the unnecessary reports</strong> accordingly.</li><li>Creating base explores over <strong>frequently used join conditions</strong>. In this way, we have optimized the development and maintenance costs for explores with the same join conditions.</li><li><strong>Auto-generation </strong>of<strong> </strong>base views.</li><li>Creating <strong>security model</strong> from the very beginning of the project. We grouped our Explores according to whom we will serve the data.</li><li>Creating team-based shared branches to experience <strong>less conflict </strong>and providing a <strong>co-development environment.</strong></li><li>Increasing the knowledge level of the team who will develop LookML with <strong>internal training sessions.</strong></li><li>Increasing the knowledge level of the team who will use Looker Reports and Dashboards by recording <strong>training videos</strong> with Trendyol data and uploading them to our internal Learning Management System.</li><li>Creating a <strong>UAT checklist</strong> to ensure that everyone performs the same steps during acceptance tests.</li></ul><h3>Migration Strategies: Project Model</h3><p>Firstly, we created the hierarchical <strong>project model including a single Looker model file. </strong>Project hierarchy helps to solve <strong>authorization management, data governance </strong>and<strong> connection management topics.</strong></p><p>To get rid of the clutter of explore files, because it made it difficult to read, we created business domain-based file structures. We created <strong>domain-based explore files</strong> and referenced them in our model.</p><p>We used <strong>derived tables</strong>, where Looker made it possible to write custom queries.</p><p>Looker has a concept for increasing reusability: the <strong>Extension</strong>. To ensure that certain metrics are calculated only once, we used <strong>base and extended files.</strong></p><h3>Migration Strategies: Base Views</h3><p>Code generation is a good way to expedite development process and to increase code quality.</p><p>We checked the community to create base view files according to our code development standards. The lookml-gen was close to our needs. We contributed to the lookml-gen library by developing the following scenario.</p><ol><li>By combining source to target mapping documents and data warehouse tables, we created the name, type, description, and labels of the dimension fields of view files. We assigned value format information according to the naming of the numeric field types (such as id, count, total).</li><li>If there are fields in the table that we need in ETL and do not mean anything to the end-user, we hided them.</li><li>We created a merge request via source code management tool API to create/update our view files automatically.</li></ol><h3>Migration Strategies: Base Explores</h3><p>Analyzing the frequently used join conditions and creating base explores for them is a good way to optimize the development and maintenance costs for explore files.</p><p>A Python script was developed to analyze and rank reports and data sources according to frequently used join conditions. For example; if a join condition containing 5 fields occurs in 2 data sources, but its subset of 4 join conditions occurs in 8 data sources, we prefer to create it.</p><h3>Migration Strategies: LookML Development Guideline</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GXYOZFUcAeyzRNKc" /></figure><p>As a large scale of LookML development team, we have created a guideline in terms of having certain standards. Some of our standards are as follows:</p><ol><li>Model files should start with a standard comment set that summarizes its purpose. It must conform to the <strong>parameter structure</strong>.<strong> Unused explores </strong>should be deleted. It is always a more accurate technique to specify domain names rather than using <strong>wildcards</strong>.</li><li>Explores should start with the <strong>minimum and joins</strong> should be enriched as needed. And the <strong>most granular table </strong>should be used as fact. Using as <strong>many_to_one relationships</strong> as possible to improve query performance. <strong>Avoiding using SQL functions</strong> in join conditions as they decrease performance.</li><li><strong>Unnecessary fields</strong> for reporting are deleted from the view file. In View, the <strong>group measures variants</strong> by type. There should always be a <strong>view description.</strong></li><li>Compared to SQL-based derived tables, models using <strong>native derived tables</strong> are much easier to read and understand. If possible, use NDT instead of SQL-based derived table. <strong>Union all and order by should not be used</strong> for performance reasons. In order to provide <strong>symmetrical aggregation</strong>, primary keys had to be defined properly.</li><li>Field names are clear and should <strong>not be similar or identical</strong>. If a field type is a number, we should use <strong>value_format. </strong>To improve end user experience, grouping fields is a good practice.</li></ol><h3>Migration Strategies: Security Model</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SiTtpbiftNprghy5FOTvkg.png" /></figure><p>Our security model is created in four levels.</p><p><strong>Explore access</strong> for the authorizations that we specify who can access the explore files that we have created based on the business domain. We do this through LookML.<br><strong>Content access</strong> to define who can access Looks and how. We do this through files.<br><strong>Field-Level accesses</strong> are used to authorization of fields within an explore to manage sensitive information.<br><strong>Row-Level accesses</strong> are used to filter data based on users’ attributes.</p><h3>Development Cycle of Migration</h3><p>It will be valid to highlight to two steps in our CI; CodyGuard Lint Tool and <a href="https://www.spectacles.dev/">Spectacles</a>.</p><ul><li>We developed our <strong>custom lint tool</strong> -CodyGuard- to validate view, explore and model files according to our development guideline. This is not only expedite our code review process but also increase our <strong>code quality</strong>.</li><li>As Looker’s built-in validator doesn’t check for <strong>SQL errors</strong> (only LookML syntax errors), it’s crucial to find SQL errors before end users faces them. We integrated <strong>Spectacles</strong> to find SQL errors. We <strong>validate</strong> our LookML codes, Looks and Dashboards before every merge requests.</li></ul><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2605427072c4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trendyol-tech/looker-migration-in-trendyol-2605427072c4">Looker Migration in Trendyol</a> was originally published in <a href="https://medium.com/trendyol-tech">Trendyol Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>