How I Reduced Snowflake Processing by 30%
Optimizing warehouse usage and query performance for enterprise scale through materialization and cluster tuning.
Exploring the intersection of data architecture, AI, and business value. Building scalable solutions for the modern data stack.
Optimizing warehouse usage and query performance for enterprise scale through materialization and cluster tuning.
A deep dive into dynamic Row-Level Security patterns for multi-tenant global organizations.
How to leverage LLMs to automate DAX creation and SQL query generation without compromising quality.
In a large-scale enterprise environment, computing costs can spiral out of control if proper data models and materialization techniques are not implemented. During my previous role, we had queries parsing millions of rows for daily dashboards resulting in significant latency and high credit consumption on Snowflake.
Result: Query latency dropped by an average of 45 seconds, and operational compute dropped by 30% within the first month.
Row-Level Security (RLS) is pivotal when delivering a central dashboard across a Fortune 500 company where regional managers should only view their specific territories. Static RLS is simple, but fails to map against a rapidly changing organizational hierarchy of over 1,200 users.
Instead of hardcoding roles, I established a dynamic RLS mapping table connected to our Azure
Active Directory (Entra ID). By utilizing the USERPRINCIPALNAME() DAX function,
we seamlessly map the logged-in user to their organizational privileges stored mapped in
Snowflake.
This approach eliminated the need to maintain 50+ different dashboard views, merging them into a single, compliant, and scalable model.
As AI tools like GitHub Copilot and ChatGPT become standard practice, translating business requirements into complex DAX logic or Snowflake SQL has radically shifted. But a tool is only as good as the prompt.
ALLEXCEPT phrasing.Through dedicated Prompt Engineering, our BI team's development velocity for ad-hoc requests increased by roughly 25%.