When troubleshooting a server with very high I / O latency, I notice that of the queries that make SELECT max(x) FROM t WHERE y = ? , a lot of I / O requests.
My index is btree (x, y) .
I notice that in terms of querying Index Index Backback to get the maximum value. This is bad? Should I worry about this and maybe add another index (vice versa)? Or is there a better way to create an index suitable for this type of query?
postgresql query-optimization
ibz
source share