在 pgadmin EXPLAIN ANALYZE 中,排他性与包容性
In pgadmin EXPLAIN ANALYSE , exclusive vs inclusive
如下所示,我尝试根据 Pgadmin 的 EXPLAIN ANALYZE 功能优化我的查询。有经验的人可以告诉我 Timings 中 INCLUSIVE 和 EXCLUSIVE 之间的区别吗?为什么 EXCLUSIVE 可以是负数?谢谢
这看起来类似于 https://explain.depesz.com/help 说:
独家:
This is the total amount of time PostgreSQL spent evaluating this node, without time spent in its subnodes. If the node has been
executed many times (for example because of a Nested Loop plan), this
time will be correctly multiplied.
包含:
This is just like Exclusive, but it doesn't exclude time of subnodes.
So, by definition the top node will have Inclusive time equal to the
total time of the query.
如下所示,我尝试根据 Pgadmin 的 EXPLAIN ANALYZE 功能优化我的查询。有经验的人可以告诉我 Timings 中 INCLUSIVE 和 EXCLUSIVE 之间的区别吗?为什么 EXCLUSIVE 可以是负数?谢谢
这看起来类似于 https://explain.depesz.com/help 说:
独家:
This is the total amount of time PostgreSQL spent evaluating this node, without time spent in its subnodes. If the node has been executed many times (for example because of a Nested Loop plan), this time will be correctly multiplied.
包含:
This is just like Exclusive, but it doesn't exclude time of subnodes. So, by definition the top node will have Inclusive time equal to the total time of the query.