gpt4 book ai didi

sql - 在 pgadmin EXPLAIN ANALYZE 中,排他性与包容性

转载 作者:行者123 更新时间:2023-12-02 19:29:55 26 4
gpt4 key购买 nike

如下所示,我尝试根据 Pgadmin 的 EXPLAIN ANALYZE 函数优化我的查询。有经验的人可以告诉我 Timings 中 INCLUSIVE 和 EXCLUSIVE 之间的区别吗?为什么 EXCLUSIVE 可以是负数?谢谢

enter image description here

最佳答案

这看起来类似于 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.

关于sql - 在 pgadmin EXPLAIN ANALYZE 中,排他性与包容性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61983077/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com