Translate

Showing posts with label Design. Show all posts
Showing posts with label Design. Show all posts

Wednesday, April 28, 2021

Things you Should Avoid when Designing a Data Warehouse

We always look at the practices that we follow during the data warehouse design. However, we don't look at what are the things we should avoid during the data warehouse design. This article is looking at those points. 

We looked at a few of the data warehouse concepts before in Microsoft Technologies. First of all, you need to look at the infrastructure planning for a data warehouse. During the data warehouse design, it is important to include surrogate keys to dimension tables. Date dimensions is a special dimension that is used in data warehouse modelling. Historical data is an important aspect in a data warehouse that is used in Slowly Changing Dimensions (SCD).

Saturday, October 24, 2020

Data Modeling Tools - Draw.IO

If you are involving in Data Models, it handy to use a modelling tool. If you are a SQL Server favoured permission, you might be using Database diagram option in the SQL Server. However, there are tailor-made tools for data modelling such as erwin Data Modeler, ER/Studio or Draw.IO.

This article brings you 19 different tools that can be used. Draw.IO is one of the preferred tools as it is free can be shared between users/designers much easier. Nowadays, it is not only one person needs to worry about the design but many other stakeholders.

in Draw.IO you can save your models at any places as below. 

At https://app.diagrams.net/ you can create your models. 


Saturday, January 26, 2019

Infrastructure Planning for a SQL Server Data Warehouse

A SQL Server data warehouse has its own characteristics and behavioral properties which makes a data warehouse unique. In this sense, a data warehouse infrastructure needs to be planned differently to that of a standard SQL Server OLTP database system.  In this tip we look at some things you should think about when planning for a data warehouse.

Read more at https://www.mssqltips.com/sqlservertip/5872/infrastructure-planning-for-a-sql-server-data-warehouse/

Saturday, April 6, 2013

BIT Column Indexes

There are two myths around BIT column indexes.

Myth #1. Cannot create indexes on BIT columns.

Not sure how this was evolved. But this not absolutely false. Let us try it.

USE tempdb
GO

CREATE TABLE
Employee
(ID INT IDENTITY PRIMARY KEY CLUSTERED,
Name Varchar(50),
Status BIT
)

CREATE INDEX idx_employee_status ON Employee(Status)

Above statement is successful and you can create the index is created.


image


I verified this in SQL Server 2000 SP4 and it was successful.

Myth #2. BIT Column indexes are not useful.


Above argument has a base. BIT column can have possible three values, 0, 1 and NULL. Therefore index selectivity is low.  For example, consider the above table which has 10 million rows and status will say whether these are active or not.  In large table, active records will be very less so active = 0X1 will be highly selective.