Skip to content

Commit

Permalink
Merge pull request #1672 from oohira/patch-1
Browse files Browse the repository at this point in the history
LIMITに関する誤訳の修正
  • Loading branch information
KenichiroTanaka authored May 16, 2020
2 parents be422d7 + 1611321 commit c15283e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/src/sgml/perform.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000 LIMIT 2
これは上と同じ問い合わせですが、すべての行を取り出す必要がないため<literal>LIMIT</literal>を付けています。
プランナはどうすべきかについて考えを変えました。
インデックススキャンノードの総コストと総行数があたかも実行完了したかのように表示されていることに注意してください。
しかしLimitノードが、これらの内5行のみを取り出した後で停止することが想定されています
しかしLimitノードが、これらの行の1/5だけを取り出した後で停止することが想定されています
そのため総コストは1/5程度のみとなり、これが問い合わせの実際の推定コストとなります。
この計画は、以前の計画にLimitノードを追加することより好まれます。
Limitはビットマップスキャンの起動コストを払うことを避けることができないためです。
Expand Down

0 comments on commit c15283e

Please sign in to comment.