☆
3
Postgres ignores my index on ORDER BY with LIMIT
Query selects recent posts WHERE status='approved' ORDER BY created_at DESC LIMIT 20. I have an index on created_at and one on status. Planner still does a sequential scan on a 2M row table.
3 replies