Put equality columns first and range/sort columns after: CREATE INDEX ON events (org_id, created_at DESC). Postgres jumps straight to org_id and scans created_at in order without sorting. An index on (created_at, org_id) cannot narrow by org_id efficiently. Add INCLUDE (title) for an Index-Only Scan when the visibility map allows.
Follow-up Interview Question · Why does LIKE '%foo' bypass a normal B-tree index, while LIKE 'foo%' can use one (with text_pattern_ops/C locale)?