November 2019
Beginner to intermediate
470 pages
11h 59m
English
There are even more indexing-related features that can be added. In PostgreSQL, there is the concept of operator classes, which we discussed in Chapter 3, Making Use of Indexes.
The contrib module offers two extensions (namely, btree_gist and btree_gin) so that we can add B-tree functionality to GiST and GIN indexes. Why is this so useful? GiST indexes offer various features that are not supported by B-trees. One of those features is the ability to perform a k-nearest neighbor (KNN) search.
Why is this relevant? Imagine that somebody is looking for data that was added yesterday, around noon. So, when was that? In some cases, it may be hard to come up with boundaries, for example, if somebody is looking for ...
Read now
Unlock full access