DWHPro Insights

Insights

327 technical articles on Teradata, Snowflake, Databricks, SQL tuning and data warehouse architecture — written from production experience, not vendor decks.

Optimizing Performance in Teradata with DIAGNOSTIC HELPSTATS ON FOR SESSION Command Widely read

Illustration of a stopwatch dial on an orange paint-splash background

What is the DIAGNOSTIC HELPSTATS ON FOR SESSION Command in Teradata? Gathering statistics is a crucial aspect of optimizing performance. Collecting statistics requires resources, and it matters whether they are used only once in the ETL process or cover multiple queries’ workloads simultaneously. Fortunately, Teradata’s recent versions can be configured so that the “COLLECT STATISTIC” …

Read more

A Guide to Using Teradata TO_CHAR Function for Type Conversions and Handling Statistics Widely read

Illustration of a glossy orange database cylinder with data fragments across its surface

The Teradata TO_CHAR Function Utilize the Teradata TO_CHAR function to: This is an example of a numeric expression argument, which can be any of the following data types: BYTEINT, SMALLINT, INTEGER, BIGINT, DECIMAL/NUMERIC, FLOAT/REAL/DOUBLE PRECISION, or NUMBER. The format string, which must be of type CHAR or VARCHAR, represents the second argument (Further information on …

Read more

5 Tips for Optimizing Teradata SQL Queries: Avoiding Joins, Functions, Union, and Group By Widely read

Illustration of a glossy orange database cylinder with data fragments across its surface

1. Avoid multiple Joins to the same table The shown MAX/CASE rewrite is grouped aggregation, not a window operation. It can collapse duplicate calls and retain unmatched subscribers that the original WHERE rejected; it is not an equivalent replacement without additional cardinality and match assumptions. This example showcases how to apply an ordered analytical function …

Read more

Understanding the Downsides of Data Lakes: Challenges and Pitfalls to Consider

Illustration of three stacked database units of differing heights inside a circle

Introduction Data lakes have gained significant popularity in recent years as organizations seek more flexible and scalable solutions to store and process their ever-growing volumes of data. While data lakes offer numerous advantages over traditional data storage and processing systems, they also have their fair share of challenges and pitfalls. In this critical article, we …

Read more

Track and Optimize Query Performance with Teradata DBQLOGTBL System Table Popular

Illustration of a person in a suit standing beside a database cylinder

Teradata DBQLOGTBL is a system table in the Teradata database management system that stores log data for requests captured by configured DBQL rules. It is a valuable resource for tracking and analyzing query performance, as it contains information about the resources used by each query and the duration of the query. DBQLOGTBL is located in …

Read more

Teradata Native Object Store on AWS, Microsoft Azure, and Google Cloud

Illustration of three stacked database units of differing heights inside a circle

Teradata Vantage has also made its move into the public cloud. Teradata Vantage is now available in AWS, Microsoft Azure, and Google Cloud. It is worth noting that the same Teradata software runs on these three major cloud providers. This makes it relatively easy to run Teradata on-premise and in these 3 different public clouds …

Read more

Maximizing Performance with Teradata Sparse Maps: An Introduction

Illustration of three stacked database storage units of differing heights against abstract chart shapes

Introduction to Teradata Sparse Maps The Teradata hashing architecture and how AMPs are used to split tables for maximum parallelism evenly have been unchanged since the beginning. What is new is the ability to create your hash maps. Hash maps, as we usually know them, are also called contiguous maps. If you are not familiar …

Read more