In the last article the performance impact of joins was shown. This one will demonstrate cases where denormalized joins are a bit faster, as will the third article with larger data volumes. The fourth article, the most interesting one, will show where a denormalized data model can be 50 times faster than a normalized data model.
Here are the tables that will be involved in the sql. The normalized ProductSmall table has a 100 million rows and is about 0.67 gig.
create table ProductSmall (
productSmallId int(11) not null,
productSmallName varchar(32) not null,
productGroupId int(11) not null,
primary key (productSmallId),
key idx_ProductSmall_productGroup (productGroupId),
constraint con_ProductSmall_productGroup
…[Read more]