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.
Using read replicas to improve query performance
From the course: Designing Highly Scalable and Highly Available SQL Databases
Using read replicas to improve query performance
- [Instructor] Read replicas are an important tool in our sort of toolbox when it comes to scalable databases. So let's take a look at what they do. Now typically when we have, let's just say a modest size database. We have probably a single server maybe beefed up pretty well. You know maybe eight cores, 32 gigs of RAM, and we can handle a pretty decent workload with that. And by workload, what I mean is write operations, like for example, the red arrows are data coming into the primary, black arrows are data going out in the form of query results. And a single node can handle that particular load. Now there may be times where either we have really disproportionate amount of reads or our server just can't scale up to handle say a growing workload. And so what we really like to do is somehow like, split up the workload a little bit between a couple of nodes or maybe multiple nodes. Well, one way to do this is to add…
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
-
-
-
-
-
-
(Locked)
Transactional vs. analytical queries5m 41s
-
(Locked)
Indexing for transactional queries10m 11s
-
(Locked)
Materialized views for transactional queries3m 51s
-
(Locked)
Using read replicas to improve query performance2m 55s
-
(Locked)
Understanding write-ahead logging5m 6s
-
(Locked)
Denormalizing for analytical queries4m 18s
-
(Locked)
Aggregation and sampling for analytical queries5m 45s
-
(Locked)
Challenge: Optimize a data model for an analytical queries25s
-
(Locked)
Solution: Optimize a data model for an analytical queries35s
-
(Locked)
-