0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

pgAdmin4で実行計画の時間を色で表示する。

Posted at

概要

実行計画の時間に色がついて、ボトルネックがわかりやすいかもしれない

環境

pgAdmin4 9.0

サンプルデータ

サンプルクエリ(適当)

SELECT
	*
FROM
	RENTAL R
	JOIN PAYMENT P ON R.RENTAL_ID = P.RENTAL_ID
	JOIN CUSTOMER C ON R.CUSTOMER_ID = C.CUSTOMER_ID
WHERE
	R.RETURN_DATE IS NULL

手順

TimingをチェックONして、
Explain Analyzeボタンを押す.(sqlが実行される。)

image.png

Explainをクリックする
Analysisをクリックする

image.png

実行計画の時間が色で表示される。

設定

Query Tool Explain Show timing?
でデフォルトを変えられる。
image.png

以上!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?