Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
giovannibonetti
· 3y ago · 0 comments
Partial indexes solve exactly this problem. You add a WHERE condition that restricts the index to a subset of the whole table.
Comments
[–]
frenchyatwork
3y ago
Partial indexes are still slower, the database needs to scan the index, and then look for the data, and data is less likely to appear in the same pages.