From the course: Designing Highly Scalable and Highly Available SQL Databases
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Denormalizing for analytical queries
From the course: Designing Highly Scalable and Highly Available SQL Databases
Denormalizing for analytical queries
- [Instructor] In earlier videos we talked about how the data model we choose can influence performance, especially in a scalable database. And at that point, we were looking at event sourcing and CQRS. I want to look again at this issue of how the changes or differences in data models can affect performance. And in particular, I want to talk about normalization and denormalization. Now, traditionally in relational databases, one of the things we do is we go through a process called normalization, and we do this to avoid data anomalies. So what we don't want is to run queries that give us the wrong answer and that can happen if we don't follow certain rules or if we don't follow certain rules and are careful not to institute other measures to avoid data anomalies. Now, there are multiple levels of normalization. Probably the most most commonly used is third normal form. And I won't go into all the details about…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Transactional vs. analytical queries5m 41s
-
Indexing for transactional queries10m 11s
-
Materialized views for transactional queries3m 51s
-
Using read replicas to improve query performance2m 55s
-
Understanding write-ahead logging5m 6s
-
Denormalizing for analytical queries4m 18s
-
Aggregation and sampling for analytical queries5m 45s
-
Challenge: Optimize a data model for an analytical queries25s
-
Solution: Optimize a data model for an analytical queries35s
-
-