我無法理解EXPLAIN
很簡單的查詢:瞭解簡單的PostgreSQL的EXPLAIN
select * from store order by id desc limit 1;
QUERY PLAN Limit (cost=0.00..0.03 rows=1 width=31) -> Index Scan Backward using store_pkey on store (cost=0.00..8593.28 rows=250000 width=31)
爲什麼頂級節點(限制)花費比嵌套(索引掃描)還低?我從文件中看到它應該是累計成本,即8593.28 + 0.03