From the course: Advanced SQL for Application Development
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Challenge: Define a B-tree and a hash index
From the course: Advanced SQL for Application Development
Challenge: Define a B-tree and a hash index
(chill music) - [Instructor] Now that concludes our discussion of indexes, so it's time for a challenge. This is a two-parter. First, create a b-tree index on the last and first names in the customers table. And then also create a hash index on the product name in the products table. Now we haven't seen an example of how to create a hash index, but you can either use the postgres documentation, or take a guess, based on the structure of how you create a b-tree index. We'll have the solution in the next video.
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)
Overview of index types2m 26s
-
(Locked)
Using B-tree indexes and range scans2m 6s
-
Using hash indexes and equality operations1m 32s
-
(Locked)
Covering indexes2m 23s
-
(Locked)
Indexes and bulk data loading2m 18s
-
(Locked)
Avoiding index locks3m 3s
-
(Locked)
Challenge: Define a B-tree and a hash index37s
-
(Locked)
Solution: Defining B-tree and hash indexes57s
-
(Locked)
-
-
-
-
-