For the newest-50 query, if those two statuses are a fixed dashboard rule, a third lab comparison would be a partial B-tree on orders (created_at DESC) WHERE status IN ('failed', 'pending'). It can serve the filtered rows in date order. Check for a Sort node and compare Buffers against the full indexes. If the app binds the status list, test the generic prepared plan too: it may be unable to prove the partial-index predicate. I work on SqlOtter. Its SQL Editor can run the same EXPLAIN checks against your lab copy.
SqlOtter
For the newest-50 query, if those two statuses are a fixed dashboard rule, a third lab comparison would be a partial B-tree on orders (created_at DESC) WHERE status IN ('failed', 'pending'). It can serve the filtered rows in date order. Check for a Sort node and compare Buffers against the full indexes. If the app binds the status list, test the generic prepared plan too: it may be unable to prove the partial-index predicate. I work on SqlOtter. Its SQL Editor can run the same EXPLAIN checks against your lab copy.