Postgres as far as I know uses B-tree by default.
You can switch sort order I think for this as well, so "most recent" becomes more efficient.
Multi-column indexes also work, if you are just searching for first column postgres can still use multi-column index.
Postgres as far as I know uses B-tree by default.
You can switch sort order I think for this as well, so "most recent" becomes more efficient.
Multi-column indexes also work, if you are just searching for first column postgres can still use multi-column index.