The query is slow because the only index it can use, orders_created_at_idx on created_at, does not filter on the WHERE clauses (customer_id = 48213 and status = 'pending'); instead, PostgreSQL scans the index backward and then removes over a million rows using the filter, as…





评论
00 条评论分享你使用这个 Ree 的体验,或给创作者提个建议。
登录后发表评论
评论会公开显示你的昵称。
还没有评论
来分享第一条使用体验吧。