Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Execution Plan Cost

What does this mean?

cost=0.11..288531.38

Does that mean the cost is between 0.11 and 288,531.38? That’s a huge range…too big to be useful, so just want to be sure.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

This isn’t a range. As the docs explain:

The numbers that are quoted in parentheses are (left to right):

  • Estimated start-up cost. This is the time expended before the output phase can begin, e.g., time to do the sorting in a sort node.
  • Estimated total cost. This is stated on the assumption that the plan node is run to completion, i.e., all available rows are retrieved. In practice a node’s parent node might stop short of reading all available rows….
  • Estimated number of rows output by this plan node. Again, the node is assumed to be run to completion.
  • Estimated average width of rows output by this plan node (in bytes).

That means the operator with cost 0.11..288531.38 has a small startup cost but a high overall cost.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading