From the course: Advanced SQL for Query Tuning and Performance Optimization
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Challenge: Partitioning a table - SQL Tutorial
From the course: Advanced SQL for Query Tuning and Performance Optimization
Challenge: Partitioning a table
(upbeat music) - [Instructor] Let's consider partitioning a table by a time range. Let's imagine we create a table called sensor metrics, which has several attributes including a sensor ID, a measurement date, temperature, humidity, and pressure. Also, we want to partition the by range using measure date. Here are some definitions of partitions. Now, as you look at these, I want you to consider what might be a problem with the definitions that we have here.
Contents
-
-
-
-
-
-
-
Horizontal vs. vertical partitioning2m 47s
-
(Locked)
Partition by range1m 40s
-
(Locked)
Partition by range example5m 36s
-
(Locked)
Partition by list1m 27s
-
(Locked)
Partition by list example5m 37s
-
(Locked)
Partition by hash1m 55s
-
(Locked)
Partition by hash example4m 35s
-
(Locked)
Challenge: Partitioning a table36s
-
(Locked)
Solution: Partitioning a table28s
-
-
-
-
-