SQL-Based Workload Performance Analysis and Cost Governance Framework for Snowflake | IJCSE Volume 13 – Issue 6 | IJCSE-V13I6P64

IJCSE
International Journal of Computer Science Engineering Techniques
ISSN 2455-135X Β· Peer-Reviewed Β· Open Access
πŸ“š Volume 13, Issue 6
πŸ“… December 1, 2026
πŸ“„ Pages 539–541
πŸ”– ID: IJCSE-V13I6P64

SQL-Based Workload Performance Analysis and Cost Governance Framework for Snowflake

Author(s)

Niraj Nilkanth Mane, Sushilkumar N. Holambe

Abstract

Cloud data warehouses require monitoring methods that consider query execution behaviour alongside compute consumption. This paper presents a SQL-based framework implemented in Snowflake to collect query-level telemetry, derive workload indicators, summarize warehouse credit usage, and produce transparent cost-review flags. The implementation uses the MTECH_WH virtual warehouse, the FINOPS_DB database, and the EXPERIMENTS schema. A consistent aggregation query runs against the ORDERS table in the TPCH_SF1 and TPCH_SF10 sample schemas. Query metadata are collected from Snowflake query history and transformed into execution-time, compilation-time, scan-volume, and output-row indicators. Warehouse metering records are aggregated by usage interval and compared with a project-defined 0.10-credit review threshold. The validated comparison cohort comprises three successful SF1 executions and three successful SF10 executions. Mean execution times are 109 ms and 228 ms, respectively; mean scanned data are 40.32 MiB and 425.70 MiB. Two separate warehouse metering intervals show 0.099622 and 0.178819 credits. Since these intervals are captured on a different date from the workload runs, they are not attributed to individual queries. The small experiment is descriptive and does not establish general performance behaviour or guaranteed cost savings.

Keywords

cloud data warehouse, cost governance, query history, Snowflake, TPC-H

Conclusion

This paper implemented a SQL-only Snowflake workflow for query-history analysis, warehouse-credit monitoring, and advisory flags. Across three executions per scale, SF10 showed higher mean scan volume and execution time than SF1 for the selected aggregation query. This small, single-query experiment is descriptive and cannot establish general performance behaviour, per-query cost, or realized savings. Future work should expand query patterns, repetitions, experimental controls, and aligned metering windows.

References

[1] Snowflake Inc., β€œQUERY_HISTORY, QUERY_HISTORY_BY_*,” Snowflake Documentation, https://docs.snowflake.com/en/sql-reference/functions/query_history.
[2] Snowflake Inc., β€œWAREHOUSE_METERING_HISTORY,” Snowflake Documentation, https://docs.snowflake.com/en/sql-reference/functions/warehouse_metering_history.
[3] Snowflake Inc., β€œSample data: TPC-H,” Snowflake Documentation, https://docs.snowflake.com/en/user-guide/sample-data-tpch.
[4] A. Gounaris, Z. Karampaglis, A. Naskos, and Y. Manolopoulos, β€œA bi-objective cost model for optimizing database queries in a multi-cloud environment,” Journal of Innovation in Digital Ecosystems, vol. 1, nos. 1–2, pp. 12–25, 2014, doi: 10.1016/j.jides.2015.02.002.
[5] T. Dokeroglu, S. A. Sert, and M. S. Cinar, β€œEvolutionary multiobjective query workload optimization of cloud data warehouses,” The Scientific World Journal, vol. 2014, Art. 435254, 2014, doi: 10.1155/2014/435254.

πŸ“‹ How to Cite This Paper

Niraj Nilkanth Mane, Sushilkumar N. Holambe (2026). SQL-Based Workload Performance Analysis and Cost Governance Framework for Snowflake. International Journal of Computer Science Engineering Techniques, 13(6), 539–541. ISSN: 2455-135X. DOI: https://doi.org/10.5281/zenodo.24707780
Β© 2026 International Journal of Computer Science Engineering Techniques (IJCSE). All rights reserved. Β· ijcsejournal.org
Submit Your Paper