<?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 David Eller on Medium]]></title>
        <description><![CDATA[Stories by David Eller on Medium]]></description>
        <link>https://medium.com/@david.eller?source=rss-62817da6c3c9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TBdt2bVGq4Dyz_a5YvccsQ.png</url>
            <title>Stories by David Eller on Medium</title>
            <link>https://medium.com/@david.eller?source=rss-62817da6c3c9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:25:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@david.eller/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[Power BI Price Increase: How This Impacts Your Data Platform’s TCO and Optimization Opportunities]]></title>
            <link>https://medium.com/indiciumtech/power-bi-price-increase-how-this-impacts-your-data-platforms-tco-and-optimization-opportunities-bcd8a08484e4?source=rss-62817da6c3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcd8a08484e4</guid>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[dataviz]]></category>
            <category><![CDATA[data-platforms]]></category>
            <category><![CDATA[finops]]></category>
            <dc:creator><![CDATA[David Eller]]></dc:creator>
            <pubDate>Thu, 10 Apr 2025 17:58:09 GMT</pubDate>
            <atom:updated>2025-04-10T17:58:09.509Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i6UYUvFbXn23x-KbV1ZRsA.png" /></figure><p>Microsoft recently announced significant price increases for Power BI, effective from April 1, 2025. Power BI Pro will see a 40% increase, from $10 to $14 per user/month, while Power BI Premium per User (PPU) will increase from $20 to $24 per user/month. This adjustment may directly impact companies’ data budgets and requires careful analysis on how to manage the costs associated with these changes.</p><h3>Direct Impact on Power BI</h3><p>With the price increase per user, the main way to mitigate the financial impact is to conduct a <strong>detailed audit</strong> to assess who truly needs a Power BI Pro or Premium license. Since the cost is calculated <strong>per user</strong>, reducing the number of licensed users can lead to significant savings for organizations. Additionally, for companies with large volumes of users and reports, migrating to<strong> Power BI Premium Per Capacity, currently part of Microsoft Fabric</strong>, could be an interesting alternative.</p><p>If you are considering migrating to <strong>Power BI Premium Per Capacity</strong>, which offers licensing based on capacity (not per user), it’s worth conducting a<strong> detailed evaluation</strong> to determine whether this change makes sense for your scenario. In this case, optimizing queries and dashboard performance becomes essential, as, by adopting capacity-based licensing, costs will be more directly related to data volume and processing resource usage.</p><h3>Recommended Actions to Mitigate the Price Increase Impact</h3><p>Given that the Power BI price increase is<strong> user-based</strong>, the main strategy to mitigate the financial impact is to optimize the number of required licenses. Below are some actions you can take:</p><h3>1. License and User Audit</h3><p>Conduct a detailed review to assess who truly needs Power BI Pro or Premium licenses.</p><h3>2. Migration to Power BI Premium Per Capacity</h3><p>For organizations with a large number of users or those needing advanced sharing and collaboration features, evaluating migration to <strong>Power BI Premium Per Capacity/Microsoft Fabric</strong> can be an interesting solution. This migration requires careful analysis of data usage, the number of users accessing shared content, and infrastructure performance.</p><h3>3. Query and Dashboard Optimization (for migration to Capacity)</h3><p>If <a href="https://medium.com/indiciumtech/how-to-perform-a-bulk-dashboard-migration-in-power-bi-39aaa4677f4c">migrating to Power BI Premium Per Capacity/Microsoft Fabric is a good option</a>, optimizing queries and dashboard performance becomes crucial. With capacity-based licensing, costs are more directly related to data volume and processing resource usage. Improving query performance and eliminating unnecessary data can help reduce resource consumption and, consequently, control costs.</p><h3>4. Training and Capacity Building</h3><p>Investing in training for teams on how to use Power BI more efficiently can reduce the need for additional licenses, improve productivity, and ensure that licenses are used optimally.</p><h3>Holistic View: Optimizing the Data Platform’s TCO</h3><p>In addition to the Power BI licensing costs, it is essential to take a <strong>holistic approach</strong> to optimize the <strong>TCO of the entire data platform</strong>. The Power BI price increase serves as a reminder to reassess the cost of all parts of the data infrastructure.</p><h3>TCO Components for Data Platforms:</h3><ol><li><strong>Licensing for Tools and Software</strong>: Including Power BI and other BI solutions and data tools.</li><li><strong>Infrastructure</strong>: Costs associated with servers, cloud, networks, and other technologies required to support and process large volumes of data.</li><li><strong>Team and Support</strong>: Costs for engineers, data scientists, and other professionals involved in maintaining and using the platform.</li><li><strong>Maintenance and Development Processes</strong>: Time and resources required to keep data updated and platforms running, as well as to develop new models and data products.</li><li><strong>Monitoring and Performance</strong>: Tools and processes necessary to ensure that data is accessible efficiently and that the platform performs adequately.</li></ol><h3>How to Optimize the Total TCO of the Data Platform</h3><p>To reduce the impact of the Power BI price increase and optimize the TCO of the data platform as a whole, consider the following actions:</p><h3>1. Infrastructure Cost Reduction:</h3><ul><li><strong>Optimization of Models and Queries</strong>: Although query optimization does not directly affect licensing costs, it can result in significant savings in processing and storage resources, which affects the overall use of the platform.‍‍</li><li><strong>‍Optimization of Pipelines and Performance</strong>: Improving the efficiency of data pipelines can reduce excessive resource usage and lower operational costs.</li></ul><h3>2. Implementation of FinOps (Financial Operations):</h3><ul><li><strong>Resource Rightsizing</strong>: Adjust the resources used (rightsizing) to ensure that each area uses the minimum necessary, ensuring <strong>budget accuracy</strong> of up to <strong>90%</strong>.</li><li><strong>Cost Allocation Strategies</strong>: Implement a cost allocation strategy based on actual resource usage, ensuring a more efficient distribution of costs across different areas of the company.</li></ul><h3>3. Maintenance Effort Reduction:</h3><ul><li><strong>Implementation of End-to-End Observability</strong>: With monitoring tools and alerts, you can reduce maintenance costs, decrease the number of open tickets, and ensure greater efficiency, resulting in up to 40% reduction in maintenance effort.</li></ul><h3>4. Reduction in Data Product Development Time:</h3><ul><li><strong>Use of AI-Assisted Tools</strong>: The use of AI-assisted development tools, such as drag-and-drop or AI-assisted code, can reduce development time by up to 35%, freeing up resources for new projects and innovation.</li></ul><h3>Action Plan: Continuous TCO Optimization in the Context of Power BI</h3><p>Adopting a continuous TCO optimization plan involves specific actions that ensure your data platform remains efficient and that you make the most of the resources you’ve acquired. In the case of <strong>Power BI</strong>, the focus should be on license management and, if migrating to capacity-based licensing, optimizing infrastructure and queries. Here are the steps to optimize continuously:</p><h3>1. Cost Evaluation and Optimization Opportunities</h3><p>Conduct a detailed analysis to evaluate who truly needs Power BI Pro or Premium licenses. This includes auditing users to adjust licenses, whether by moving them to more affordable options or considering migrating to Power BI Premium Per Capacity. If migration is chosen, it’s important to evaluate current data usage, the number of users accessing shared content, and infrastructure performance.</p><h3>2. Implementation of Cost Reduction Strategies</h3><p>For companies that opt for migration to <strong>Power BI Premium Per Capacity/Microsoft Fabric</strong>, optimizing queries, reducing unnecessary data, and improving dashboard performance become crucial. By optimizing infrastructure and data pipelines, you will reduce the impact on operational costs and maximize the use of contracted capacity. This helps ensure that processing resources are used efficiently, without overload.</p><h3>3. Establishment of Continuous Improvement Routines:</h3><p>To ensure<strong> continuous TCO optimization</strong>, it’s crucial to create a cycle of continuous <strong>monitoring</strong>. This includes regularly checking license usage, query performance, and cost-benefit analysis. Additionally, regular training for data teams ensures that <strong>FinOps best practices </strong>are followed, focusing on efficient use of resources and long-term cost reduction.</p><h3>Take Control of Your Data Costs Today</h3><p>Don’t let the <strong>Power BI</strong> price increase impact your data budget. Adopt a strategic approach to optimize your data platform and free up budget for new projects and innovation. Contact us for a <a href="https://www.indicium.tech/contact">free TCO assessment</a> and discover how we can help you <strong>reduce infrastructure costs, optimize data pipelines</strong>, and <strong>improve operational efficiency </strong>with our modular and integrated solution.</p><p><strong>Ready to optimize your data platform and reduce costs?</strong> Speak with one of our experts today and take the first step toward more efficient data management!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcd8a08484e4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indiciumtech/power-bi-price-increase-how-this-impacts-your-data-platforms-tco-and-optimization-opportunities-bcd8a08484e4">Power BI Price Increase: How This Impacts Your Data Platform’s TCO and Optimization Opportunities</a> was originally published in <a href="https://medium.com/indiciumtech">Indicium AI Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Data Mesh in Practice]]></title>
            <link>https://medium.com/indiciumtech/building-a-data-mesh-in-practice-5e63f71ef9ae?source=rss-62817da6c3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e63f71ef9ae</guid>
            <category><![CDATA[data-architecture]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[dbt]]></category>
            <category><![CDATA[data-mesh]]></category>
            <category><![CDATA[modern-data-stack]]></category>
            <dc:creator><![CDATA[David Eller]]></dc:creator>
            <pubDate>Fri, 28 Mar 2025 20:05:55 GMT</pubDate>
            <atom:updated>2025-04-08T13:07:44.285Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D6dTUe0qJizl61C6xcAJCw.png" /></figure><p><strong>1. Why (or why not) should a business create a data mesh? Which value does it add, or which challenges does it solve?</strong></p><p>Adopting a <strong>data mesh </strong>can bring significant value to a business by enabling decentralized data ownership, allowing teams with the deepest domain expertise to manage and govern their own data. This shift reduces bottlenecks, improves agility, and ensures that decision-making is based on the most relevant and up-to-date insights. It also alleviates common challenges seen in centralized data architectures, such as slow access to data, overburdened data teams, and rigid pipelines that fail to scale with business needs.</p><p>However, <strong>data mesh</strong> is not a one-size-fits-all solution. It requires a cultural and organizational shift beyond technology alone. Companies that embrace cross-functional collaboration, agile decision-making, and data-driven processes are more likely to benefit from its adoption. Conversely, businesses with rigid structures, highly centralized control, or resistance to change may struggle to implement it effectively, encountering more friction than value.</p><p>Ultimately, a <strong>data mesh</strong> is most valuable for organizations that prioritize adaptability, scalability, and business-driven data strategies. Its success depends not just on architecture but also on whether the company is prepared to evolve its processes, governance, and culture to fully leverage the benefits of decentralization.</p><p><strong>2. What are common challenges businesses face when creating a data mesh?</strong></p><p>Implementing a <strong>data mesh</strong> presents several challenges that go beyond technology, spanning financial, technical, and cultural dimensions. One of the biggest hurdles is organizational resistance to decentralization. Many businesses are accustomed to a centralized data team, and shifting ownership to domain teams requires a cultural shift that some may resist, either due to lack of expertise or concerns about added responsibilities. This decentralization also introduces the risk of inconsistent data standards across teams, making governance a critical but complex challenge. Without clear guidelines, teams may develop data products in silos, leading to interoperability issues and data quality inconsistencies.</p><p>From a technical perspective, implementing a <strong>data mesh</strong> requires robust infrastructure to support discoverability, interoperability, and self-serve capabilities. Many organizations struggle with setting up scalable data architectures that balance autonomy with governance. Ensuring proper access control, metadata management, and lineage tracking is crucial but can be difficult to enforce in a distributed environment. Additionally, integrating legacy systems with a decentralized data approach can be costly and complex, requiring significant investment in modernization.</p><p>Financially, a<strong> data mesh</strong> is not a low-cost initiative. While it promises long-term efficiency, the upfront costs of training teams, implementing new governance frameworks, and investing in the necessary technology stack can be substantial. Companies that do not plan their transition carefully may experience inefficiencies, redundant efforts, and escalating costs.</p><p>Ultimately, the success of a data mesh depends on an organization’s ability to align culture, processes, and technology. Businesses that lack a strong <strong>data-driven culture</strong> or fail to establish clear ownership and governance frameworks may find that the challenges outweigh the benefits. However, for those willing to invest in structured implementation and continuous adaptation, a<strong> data mesh</strong> can lead to more scalable, agile, and value-driven data practices.</p><p><strong>3. What are some actionable strategies for overcoming those challenges?</strong></p><p>Overcoming the challenges of implementing a <strong>data mesh</strong> requires both strategic alignment and practical execution. At a high level, businesses need to shift from a centralized data management model to a decentralized, domain-driven approach, where data ownership is embedded within business teams. However, this must be balanced with a federated governance model that ensures interoperability, security, and data quality across the organization. Without clear guidelines and support, decentralization can lead to silos rather than agility.</p><p>To make this shift operational, organizations should assign data product owners in each domain, responsible for maintaining and documenting their data. These teams need training and support from a central data enablement team or center of excellence (CoE) to standardize best practices. A self-service data platform should be established, providing domain teams with access to automated ingestion pipelines, pre-configured governance policies, and tools like data catalogs and automated data lineage tracking to ensure discoverability and quality control. Security and compliance must be maintained through role-based access controls (RBAC) and identity and access management (IAM) policies.</p><p>Financially, companies should take an incremental approach, starting with a pilot implementation in a high-impact domain to showcase quick wins—such as faster decision-making, reduced data bottlenecks, or increased efficiency. Rather than enforcing adoption, organizations should provide clear incentives for domain teams to take ownership of their data by demonstrating tangible business impact.</p><p>Ultimately, the success of a data mesh depends on continuous iteration. Businesses should track adoption metrics, monitor the effectiveness of governance policies, and refine their approach based on real-world feedback. Instead of treating it as a one-time transformation, data mesh should be embedded into the company’s long-term data strategy, ensuring teams have both the autonomy and the structure needed to succeed.</p><p>When, and when not, to use open source <strong>dbt</strong>.</p><p><strong>1. What are the advantages of dbt? Why should a company use it?</strong></p><p>A company should use <strong>dbt </strong>because it accelerates data transformation, empowers both business and data teams with autonomy, and ensures governance without sacrificing agility. By allowing transformations to be defined directly in SQL, dbt reduces dependency on data engineers, enabling analysts to create and refine data models independently. This leads to faster insights, shorter development cycles, and improved collaboration across teams. Additionally, dbt enforces best practices like version control, automated testing, and modular modeling, ensuring data pipelines are reliable, reusable, and well-documented.</p><p>One of its key advantages is its SQL-first approach, making transformations accessible without complex scripting. Features like automated data quality checks, dependency management, and data lineage tracking provide transparency and reliability. Its Git-based version control and CI/CD integration enable structured collaboration, ensuring changes are tested before deployment. <strong>dbt </strong>stands out because it strikes the right balance between autonomy for business users and technical robustness for IT teams. Business users gain the ability to define and iterate on data models without bottlenecks, while IT maintains governance, security, and scalability, ensuring consistency across the organization.</p><p><strong>dbt </strong>is also evolving, with features like AI-powered copilot, drag-and-drop transformations, and expanded multicloud support currently on the roadmap. These enhancements aim to further simplify development, improve usability, and expand <strong>dbt’s flexibility </strong>across different cloud environments, making it even more accessible to a wider range of users. Its strong ecosystem of integrations and pre-built packages reduces development effort, while native support for cloud <strong>data warehouses</strong> (Snowflake, BigQuery, Databricks, Redshift) ensures seamless adoption in modern ELT architectures.</p><p>Ultimately, dbt provides speed, flexibility, and governance, making it a powerful choice for companies looking to modernize their data transformation workflows while maintaining control and empowering teams to operate independently within a structured framework.</p><p><strong>2. What are dbt&#39;s limitations relative to other open source and/or proprietary data tools or platforms?</strong></p><p>One of dbt’s main limitations is that it only handles the &quot;T&quot; (transformation) in <strong>ELT</strong>, meaning it doesn’t manage data ingestion or loading. While this requires integrating separate tools for ingestion and orchestration, it also aligns with the <strong>Modern Data Stack (MDS) </strong>approach, which promotes a modular architecture where specialized tools handle different parts of the pipeline. This flexibility allows organizations to choose the best tools for their needs but also means additional setup and maintenance.</p><p>Another consideration is dbt’s focus on SQL - based transformations, with limited native support for distributed processing frameworks like <strong>PySpark</strong>. While this can be a constraint for organizations requiring large-scale, non-SQL processing, the trade-off is that SQL and Python are the dominant languages for analytics, making dbt more accessible to most data teams. The addition of Python models also expands its capabilities, though they are still evolving.</p><p>For workflow management and orchestration, <strong>dbt </strong>is efficient for medium to complex projects, handling dependency tracking and incremental processing well. However, for very large and highly complex workflows, organizations may need external orchestration tools like <strong>Airflow</strong>, <strong>Dagster</strong>, or <strong>Prefect </strong>to manage advanced scheduling, event-driven processes, or cross-environment workflows.</p><p>In terms of multicloud and hybrid execution, dbt currently integrates well with major cloud data warehouses but has limited support for multi-environment execution. Expanding its multicloud capabilities is on the roadmap, meaning future iterations may improve its adaptability across different cloud ecosystems.</p><p>While dbt has some limitations, especially for large-scale and highly complex architectures, its modularity, strong <strong>SQL</strong>/<strong>Python </strong>fit, and integration with other tools make it a solid choice for many data transformation needs.</p><p><strong>3. What are some common use cases for dbt?</strong></p><p><strong>dbt </strong>is primarily used to <strong>democratize data transformation with governance</strong>, making it easier for companies to build data products and foster a <strong>data-driven culture</strong>. It aligns well with data mesh principles, allowing domain teams to manage their own data models while maintaining consistency and control. By using a SQL-based approach, dbt enables business and analytics teams to take ownership of data transformations, reducing dependency on data engineers while ensuring standardized, well-governed datasets.</p><p>A key application of <strong>dbt </strong>is data modeling and standardization, where companies use it to clean raw data, define business logic, and create structured, analytics-ready datasets. This helps ensure that metrics and reports remain consistent across different teams. Another common use case is building a metrics layer, enabling organizations to define aggregated views and key business indicators (e.g., revenue by region, customer lifetime value, churn rate), improving efficiency and reducing the computational load on BI tools.</p><p><strong>dbt </strong>is also widely used for data quality monitoring, leveraging built-in tests for uniqueness, null values, referential integrity, and business rules. By detecting issues early, dbt helps prevent inaccurate data from reaching dashboards and reports. Additionally, dbt supports self-serve analytics, preparing well-documented, reusable data models that allow analysts and business users to work more independently, reducing bottlenecks in data access and transformation.</p><p>Overall, dbt is most valuable for companies operating in cloud-native, SQL-driven environments, where teams need scalable, governed data transformations that balance autonomy and control, enabling more efficient, consistent, and business-aligned analytics.</p><p><strong>4. Are there examples of use cases where dbt is not a good choice?</strong></p><p>One key limitation is that dbt is built for batch processing within cloud data warehouses, meaning it is not suitable for real-time or streaming data processing. Companies needing event-driven transformations or low-latency data updates may be better off using tools like <strong>Apache Flink</strong>, <strong>Kafka Streams</strong>, or <strong>Materialize </strong>to handle continuous data flows.</p><p>Additionally, dbt is not a full orchestration tool. While it efficiently manages dependencies and incremental processing, it lacks advanced scheduling, conditional logic, and event-driven workflows. For highly complex, multi-step pipelines, companies often integrate dbt with <strong>Apache Airflow</strong>, <strong>Dagster</strong>, or <strong>Prefect </strong>to achieve more flexible orchestration.</p><p>For multi-cloud and hybrid environments, <strong>dbt </strong>currently has limited interoperability across platforms, as it primarily runs within cloud data warehouses. However, expanding multicloud support is on the roadmap, which means future enhancements may improve its ability to operate across different cloud ecosystems and connect to broader data platforms.</p><p>Another current limitation is that dbt transformations are SQL-based, meaning users must have SQL knowledge to work effectively with it. While this aligns with the skill sets of many data professionals, it can be a barrier for non-technical users. To address this, dbt has drag-and-drop transformation features and AI-assisted modeling on its roadmap, which could lower the technical barrier and make data transformation more accessible in the future.</p><p>In summary, dbt is best suited for batch transformations within cloud <strong>data warehouses</strong>, but it may not be ideal for real-time processing, complex orchestration, multi-cloud architectures, or non-SQL users—at least until its roadmap expands these capabilities.</p><p><strong>5. Are there situations where businesses might need to use dbt in conjunction with other data tools/platforms? If so, which ones?</strong></p><p>dbt is always used in conjunction with other tools because it is a core component of the <strong>Modern Data Stack (MDS)</strong> but focuses solely on data transformation. To build a complete and scalable data platform, businesses need to integrate dbt with other layers of the <strong>MDS</strong>.</p><p>At the foundation, data warehouses and lakehouses serve as the central storage and processing layer. dbt runs directly within these environments, working alongside platforms like <strong>Databricks</strong>, <strong>Snowflake </strong>and <strong>BigQuery </strong>to transform and structure raw data into analytics-ready models.</p><p>For data ingestion (EL), dbt requires tools like <strong>Airbyte</strong>, <strong>Fivetran</strong>, or <strong>Stitch </strong>to extract data from various sources and load it into the warehouse or lakehouse.</p><p>For orchestration, <strong>dbt’s dependency</strong> management works well for many workflows, but larger-scale operations often require <strong>Apache Airflow</strong>, <strong>Dagster</strong>, or Prefect to handle scheduling, conditional execution, and event-driven pipelines.</p><p>For BI and analytics, dbt prepares structured datasets that feed into <strong>Power BI</strong>, <strong>Looker</strong>, <strong>Tableau</strong>, ensuring that reports and dashboards rely on consistent, governed data models.</p><p>For machine learning and advanced analytics, while dbt can prepare structured datasets, more complex ML workflows are typically handled in <strong>Databricks</strong>, <strong>Snowpark</strong>, or <strong>Vertex AI</strong>, where feature engineering and model training occur.</p><p>Ultimately, <strong>dbt </strong>is a key enabler of the <strong>MDS</strong>, sitting at the transformation layer but relying on a full ecosystem of ingestion, storage, orchestration, observability, analytics, and operational tools to deliver a scalable, governed, and efficient data platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e63f71ef9ae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indiciumtech/building-a-data-mesh-in-practice-5e63f71ef9ae">Building a Data Mesh in Practice</a> was originally published in <a href="https://medium.com/indiciumtech">Indicium AI Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding BigQuery billing and optimizing it]]></title>
            <link>https://medium.com/indiciumtech/understanding-bigquery-billing-and-optimizing-it-bc6b483df9cc?source=rss-62817da6c3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc6b483df9cc</guid>
            <category><![CDATA[billing]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[best-practices]]></category>
            <dc:creator><![CDATA[David Eller]]></dc:creator>
            <pubDate>Mon, 23 Jan 2023 19:27:03 GMT</pubDate>
            <atom:updated>2023-01-25T16:13:10.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*cSAn2R704qXYcT3YiFWQ2Q.jpeg" /></figure><p>Google BigQuery is a fully managed, serverless data warehouse that enables super-fast SQL queries using the processing power of Google’s infrastructure. A powerful tool for data analytics, but it can also be a significant expense for businesses. If you’re not careful about how you use the service, you could find yourself with a surprisingly high bill at the end of the month.</p><p>Understanding how BigQuery billing works can be a bit confusing at first and this post will help you understand the details behind it and give you some extra tips on how to reduce your BigQuery costs and get more value out of the service.</p><h3><strong>BigQuery Pricing</strong></h3><p>The 2 most important lines of costs in BigQuery are: Storage and Analysis. Note that BigQuery also charges for other operations such as BigQuery Omni, BigQuery ML, BI Engine and streaming reads and writes. In this post, we’ll focus on the main lines: storage and analysis.</p><p>An important thing to note is that BigQuery prices (and for most cloud services) depend upon the location! In this post, we’ll consider the US region and prices on January 10, 2023!</p><h4><strong><em>1. Storage pricing</em></strong></h4><p>Storage pricing is related to how much data you store into BigQuery. The more data you store, the more you’ll pay.</p><p>They are divided in 2 factors:</p><p><strong>1.1 Storage Time:</strong></p><p><em>1.1.1 Active Storage: </em>includes any table or table partition that has been modified in the last 90 days</p><p><em>1.1.2 Long Term Storage: </em>includes any table or table partition that has not been modified for 90 consecutive days. The price of storage for that table automatically drops by approximately 50%. There is no difference in performance, durability, or availability between active and long-term storage.</p><p>*Modified meaning executing one of these actions in a table or partition of a table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HlT-ZbAqjPLtwhB3" /></figure><p>Note that operations such as:</p><ul><li>Querying a table</li><li>Creating a view that queries a table</li><li>Exporting data from a table</li><li>Copying a table (to another destination table)</li><li>Patching or updating a <a href="https://cloud.google.com/bigquery/docs/reference/rest/v2/tables">table resource</a></li></ul><p>Won’t reset the timer.</p><p><strong>1.2 Byte Type:</strong></p><p><em>1.2.1 Logical bytes:</em> logical bytes are uncompressed and half of the price of physical bytes. They are the default unit of consumption for storage and this type of unit of consumption also includes time travel bytes.</p><p><em>1.2.2 Physical bytes:</em> physical bytes are compressed. They represent the actual size of memory in disk and they cost double the amount of logical bytes. You can <a href="https://cloud.google.com/bigquery/docs/updating-datasets#update_storage_billing_models">switch from logical bytes to physical</a> but once doing that, you can’t go back.</p><p>Now that you know the 2 factors that influence BigQuery storage pricing, here is a summary of it’s values and combinations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RuAzQ16yay88iC8L" /></figure><p>So, let’s head to:</p><h4><strong><em>2. Analysis pricing</em></strong></h4><p>Analysis pricing refers to the cost to process queries. This includes mostly SQL queries (in BigQuery console or data visualization tool) but also user-defined functions, scripts, and certain data manipulation language (DML) and data definition language (DDL) statements that scan tables.</p><p>BigQuery offers 2 pricing models:</p><p><strong>2.1 On-demand pricing:</strong> this is a pay-as-you-go pricing model. BigQuery charges for the number of bytes processed by each query and the first 1TB for month is free. In this pricing model, you can use up to 2000 concurrent slots.</p><p><strong>2.2 Flat rate pricing:</strong> unlike on-demand pricing, flat rate pricing charges for renting computing capacity, or slots as BigQuery calls it. You can commit to rent computing capacity over different periods of time and the longer you commit, the lower are the prices. The plans are:</p><p><em>2.2.1 Flex slots:</em> You commit to an initial 60 seconds.</p><p><em>2.2.2 Monthly:</em> You commit to an initial 30 days.</p><p><em>2.2.3 Annual:</em> You commit to 365 days.</p><p>Bigquery allows you to combine both models of pricing, for example, using flat rate pricing for predictable jobs and on-demand for other use cases.</p><p>The prices are:</p><p><strong>On demand:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6at2JxlzUW5FfOIF" /></figure><p><strong>Flat rate flex slots:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*COLaj4G_99487bcP" /></figure><p><strong>Flat rate monthly:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aNl3i6KyeKgVt3nv" /></figure><p><strong>Flat rate annually:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8mhvhDBhxox_y2Ed" /></figure><p>Now that you know everything about BigQuery pricing, let’s move on tips on how to optimize then.</p><h3><strong>Optimizing BigQuery Billing</strong></h3><p><strong>Avoid “select *” expressions!</strong> A way to reduce your costs is to only query the data that you need. If you have a large table with a lot of columns, but you only need to query a few of them, you can save money by only selecting the columns that you need in your query. This will reduce the amount of data that is scanned, which will turn to reduce your costs. You can also use filters to further reduce the amount of data that is scanned. For example, if you only need to query data for a specific time period or for a specific group of users, you can use a WHERE clause to filter the data accordingly.</p><p><strong>Use aggregated tables: </strong>Evaluating the table&#39;s granularity is a good practice when developing models in a Data Warehouse. Transactional data is very often grouped in dimensions to be analyzed in dashboards and rarely consumed in its most granular form. For instance, if you have an order table and each row in the table is an order, consider, for example, grouping by day and calculating the main metrics as counting distinct orders, summing the gross value, summing net value etc.</p><p><strong>Use data samples for developing</strong>: It’s counter intuitive but using the “limit” when querying in BigQuery won’t reduce the amount of data that is scanned in a job! If you want to save processing and money, you can use the <a href="https://cloud.google.com/bigquery/docs/table-sampling">sample function</a>. This is very helpful when developing and exploring data! You can also check this <a href="https://medium.com/indiciumtech/sampling-data-with-dbt-and-bigquery-a-strategy-to-reduce-costs-ef059b9e2144">blog post</a> if you’re working with dbt and BigQuery.</p><p><strong>Use the appropriate data types:</strong> One of the easiest ways to reduce your BigQuery costs is to use the appropriate data types for your columns. Each data type has a different storage size, so using a data type that requires less storage can significantly reduce the amount of data that is stored and processed in a query, which will in turn reduce your costs. For example, if you have a column that only contains integers, you should use the INTEGER data type instead of the STRING data type. Similarly, if you have a column that only contains Boolean values (true/false), you should use the BOOLEAN data type instead of the STRING data type. You can check all data types available in BigQuery <a href="https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types">here</a>.</p><p><strong>Use partitioned and clustered tables:</strong> If you have a large table that you query frequently, you can save money by <a href="https://www.google.com/search?q=partition+bigquery&amp;oq=partition+bigquery&amp;aqs=chrome..69i57j46i131i433i512j0i433i512l2j0i512l5j69i59.2064j0j4&amp;sourceid=chrome&amp;ie=UTF-8">partitioning</a> and <a href="https://cloud.google.com/bigquery/docs/clustered-tables?hl=pt-br">clustering</a> the table. Partitioning allows you to divide the table into smaller pieces, called partitions, based on a specific column or set of columns. When you query a partitioned table, you can specify which partitions you want to include in the query, which can be more efficient and cost-effective than querying the entire table. For example, if you have a table that contains data for multiple years and you only need to query data for the current year, you can specify the partition for the current year in your query and only those rows will be scanned, rather than the entire table.</p><p><strong>Use _TABLE_SUFIX_ when querying tables with wildcard functions: </strong>Although partitioning and clustering table is more efficient than sharding (check this <a href="http://Partitioning versus sharding">link</a> by BigQuery), if you use sharding strategy, make sure you use _TABLE_SUFFIX to filter the amount of data scanned.</p><p><strong>Use cached results:</strong> If you have a query that you run frequently, you can save money by using the query cache. The query cache stores the results of queries in memory, allowing you to retrieve the results more quickly the next time the query is run. This can be particularly useful for queries that take a long time to run or that are resource-intensive, as it can significantly reduce the amount of time and resources required to run the query. Cached results are activated by default in BigQuery but it’s necessary to follow a list of conditions so BigQuery uses the cached result. You can check more on these conditions <a href="https://cloud.google.com/bigquery/docs/cached-results">here</a>.</p><p><strong>Optimize your queries</strong>: Another way to reduce your costs is to optimize your queries. There are several ways you can do this, such as using nested and repeated fields, avoiding self joins and cartesian joins. Checkout the <a href="https://cloud.google.com/bigquery/docs/cached-results?hl=pt-br#cache-exceptions">best practices</a> listed by BigQuery.</p><p><strong>Consider using alternative storage options</strong>: If you have a large amount of data that you need to store, but you don’t need to query it frequently, you may want to consider using alternative storage options such as Cloud Storage or Cloud Bigtable. These options can be less expensive than BigQuery for storing large amounts of data that don’t need to be queried often.</p><p><strong>Use flat-rate pricing</strong>: If you have a predictable workload and you know that you will be using BigQuery on a regular basis, you may want to consider switching to flat-rate pricing. With flat-rate pricing, you pay a fixed fee for a certain amount of query processing capacity, which can be more cost-effective than paying for on-demand.</p><p><strong>Set expiration time for you tables:</strong> It&#39;s possible to set a custom expiration time for tables and datasets in BigQuery and it can be used when only recent data is necessary or in development datasets, for example.</p><p><strong>Use custom quotas</strong>: BigQuery lets you be creative when applying <a href="https://cloud.google.com/bigquery/docs/best-practices-costs">quotas</a>. You can set many custom quotas in BigQuery, such as how many bytes a user can query per day, how many bytes can be scanned in a project per day, the maximum size of a table in BigQuery and even force users to only be able to query in a table if they use a filter in a partitioned field!</p><p>By following these tips, you can significantly reduce your BigQuery costs and get more value out of the service. Remember to regularly review your usage and costs to ensure that you are using BigQuery in the most cost-effective way possible.</p><p>References:</p><ul><li><a href="https://cloud.google.com/bigquery/pricing?hl=en#storage">BigQuery</a></li><li><a href="https://cloud.google.com/bigquery/docs/datasets-intro#dataset_storage_billing_models">Introduction to datasets | BigQuery | Google Cloud</a></li><li><a href="https://cloud.google.com/bigquery/docs/updating-datasets#update_storage_billing_models">Updating dataset properties | BigQuery | Google Cloud</a></li><li><a href="https://cloud.google.com/bigquery/docs/information-schema-table-storage#calculating_storage_billing">TABLE_STORAGE view | BigQuery | Google Cloud</a></li><li><a href="https://cloud.google.com/bigquery/docs/best-practices-performance-patterns">Avoiding SQL anti-patterns | BigQuery | Google Cloud</a></li><li><a href="https://cloud.google.com/bigquery/docs/cached-results">Using cached query results | BigQuery | Google Cloud</a></li><li><a href="https://cloud.google.com/bigquery/docs/table-sampling">Table sampling | BigQuery | Google Cloud</a></li><li><a href="https://cloud.google.com/bigquery/docs/querying-wildcard-tables?hl=pt-br">Como consultar várias tabelas usando uma tabela curinga | BigQuery | Google Cloud</a></li><li><a href="https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types">Data types | BigQuery | Google Cloud</a></li><li><a href="https://cloud.google.com/skus/?filter=bigquery%20storage&amp;currency=USD">SKUs | Google Cloud</a></li><li><a href="https://cloud.google.com/bigquery/docs/managing-tables">Manage tables | BigQuery | Google Cloud</a></li><li><a href="https://cloud.google.com/bigquery/docs/best-practices-storage">Optimize storage in BigQuery | Google Cloud</a></li><li><a href="https://cloud.google.com/bigquery/docs/partitioned-tables#dt_partition_shard">Introduction to partitioned tables | BigQuery | Google Cloud</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc6b483df9cc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indiciumtech/understanding-bigquery-billing-and-optimizing-it-bc6b483df9cc">Understanding BigQuery billing and optimizing it</a> was originally published in <a href="https://medium.com/indiciumtech">Indicium AI Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>