From the course: Advanced SQL for Application Development
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
Avoiding index locks
From the course: Advanced SQL for Application Development
Avoiding index locks
- [Instructor] Now, another issue we can run into in production that's related to indexing, is something called an index Lock. Now, an index Lock can occur when we need to rebuild an index. Now you may wonder why we'd ever need to rebuild and index. Well in theory we shouldn't, however in practice sometimes there are errors in the index, like an index may become corrupted, because of a software bug or something that causes the data in the index to become invalid. And so it needs to be corrected and the most effective and reliable way to do that, is by rebuilding an index. But even if it's not an error, you may learn things about the, sort of the characteristics about how your database is being used, and you may decide after some period of time that you want to adjust maybe some of the storage parameters, in your create index clause. Well if that's the case you going to need to rebuild the index. Also there are some unusual…
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)
-
-
-
-
-