{"id":2773,"date":"2019-07-16T15:00:05","date_gmt":"2019-07-16T15:00:05","guid":{"rendered":"https:\/\/nenadnoveljic.com\/blog\/?p=2773"},"modified":"2020-10-08T14:27:41","modified_gmt":"2020-10-08T14:27:41","slug":"io-sort-cost-calculation-2","status":"publish","type":"post","link":"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/","title":{"rendered":"IO Sort Cost Calculation (2)"},"content":{"rendered":"<p>In <a href=\"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation\/\">my previous blog post<\/a> I described the IO costing for sort operation. It turned out that the calculation functions are central and used in other scenarios as well, like full table scan (FTS); as such, they are definitely worth giving it a second look.<\/p>\n<p>So I did a similar low-level analysis for FTS and deduced more generic formulae.<\/p>\n<p>Expectedly, <i>scaled IO cost<\/i> depends on the number of blocks:<\/p>\n<p><a name=\"id1228938364\"><\/a><\/p>\n<p class=\"ql-left-displayed-equation\" style=\"line-height: 132px;\"><span class=\"ql-right-eqno\"> (1) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nenadnoveljic.com\/blog\/wp-content\/ql-cache\/quicklatex.com-8f8ecd7a54f7e3cf8ceb2322cd36308b_l3.png\" height=\"132\" width=\"306\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#92;&#98;&#101;&#103;&#105;&#110;&#123;&#115;&#112;&#108;&#105;&#116;&#125; &#92;&#99;&#97;&#110;&#99;&#101;&#108;&#123;&#32;&#115;&#99;&#97;&#108;&#101;&#100;&#92;&#32;&#105;&#111;&#92;&#32;&#99;&#111;&#115;&#116;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#98;&#108;&#111;&#99;&#107;&#115;&#32;&#43;&#32;&#49;&#125;&#123;&#105;&#111;&#92;&#32;&#115;&#99;&#97;&#108;&#101;&#92;&#32;&#102;&#97;&#99;&#116;&#111;&#114;&#125;&#32;&#43;&#32;&#49;&#32;&#125;&#32;&#92;&#92;&#32;&#92;&#92; &#115;&#99;&#97;&#108;&#101;&#100;&#92;&#32;&#105;&#111;&#92;&#32;&#99;&#111;&#115;&#116;&#32;&#61;&#32;&#92;&#66;&#105;&#103;&#103;&#32;&#92;&#108;&#102;&#108;&#111;&#111;&#114;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#98;&#108;&#111;&#99;&#107;&#115;&#32;&#43;&#32;&#49;&#125;&#123;&#105;&#111;&#92;&#32;&#115;&#99;&#97;&#108;&#101;&#92;&#32;&#102;&#97;&#99;&#116;&#111;&#114;&#125;&#32;&#92;&#66;&#105;&#103;&#103;&#32;&#92;&#114;&#102;&#108;&#111;&#111;&#114;&#32;&#43;&#32;&#49; &#92;&#101;&#110;&#100;&#123;&#115;&#112;&#108;&#105;&#116;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>Both <i>+1<\/i> are really just the safeguards against multiplication\/division by zero, which would lead the whole cost calculation astray. But, as normally, blocks &gt;&gt; 1 and cost &gt;&gt;1, the equation <a href=\"#id1228938364\">1<\/a> can be approximated as follows:<\/p>\n<p><a name=\"id2566287811\"><\/a><\/p>\n<p class=\"ql-left-displayed-equation\" style=\"line-height: 41px;\"><span class=\"ql-right-eqno\"> (2) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nenadnoveljic.com\/blog\/wp-content\/ql-cache\/quicklatex.com-74ec67db5b703ed5843dbbc6a6c71cff_l3.png\" height=\"41\" width=\"248\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#115;&#99;&#97;&#108;&#101;&#100;&#92;&#32;&#105;&#111;&#92;&#32;&#99;&#111;&#115;&#116;&#32;&#92;&#97;&#112;&#112;&#114;&#111;&#120;&#32;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#98;&#108;&#111;&#99;&#107;&#115;&#32;&#125;&#123;&#32;&#105;&#111;&#92;&#32;&#115;&#99;&#97;&#108;&#101;&#92;&#32;&#102;&#97;&#99;&#116;&#111;&#114;&#32;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>where<\/p>\n<p><a name=\"id1532393657\"><\/a><\/p>\n<p class=\"ql-left-displayed-equation\" style=\"line-height: 49px;\"><span class=\"ql-right-eqno\"> (3) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nenadnoveljic.com\/blog\/wp-content\/ql-cache\/quicklatex.com-740ac0ce462dc8e34f44586d54b9bc6c_l3.png\" height=\"49\" width=\"474\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#105;&#111;&#92;&#32;&#115;&#99;&#97;&#108;&#101;&#92;&#32;&#102;&#97;&#99;&#116;&#111;&#114;&#32;&#61;&#32;&#77;&#66;&#82;&#67;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#32;&#73;&#79;&#83;&#69;&#69;&#75;&#84;&#73;&#77;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#98;&#108;&#111;&#99;&#107;&#92;&#32;&#115;&#105;&#122;&#101;&#125;&#123;&#73;&#79;&#84;&#70;&#82;&#83;&#80;&#69;&#69;&#68;&#125;&#32;&#125;&#123;&#32;&#73;&#79;&#83;&#69;&#69;&#75;&#84;&#73;&#77;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#77;&#66;&#82;&#67;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#98;&#108;&#111;&#99;&#107;&#92;&#32;&#115;&#105;&#122;&#101;&#125;&#32;&#123;&#73;&#79;&#84;&#70;&#82;&#83;&#80;&#69;&#69;&#68;&#125;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>In the equation above, we can recognize the single-block read time (SREADTIM) in the numerator and multi-block read time (MREADTIM) in the denominator.<\/p>\n<p><a name=\"id3615075073\"><\/a><\/p>\n<p class=\"ql-left-displayed-equation\" style=\"line-height: 37px;\"><span class=\"ql-right-eqno\"> (4) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nenadnoveljic.com\/blog\/wp-content\/ql-cache\/quicklatex.com-2dd66187899c99971cf8654ee2734f31_l3.png\" height=\"37\" width=\"410\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#83;&#82;&#69;&#65;&#68;&#84;&#73;&#77;&#32;&#61;&#32;&#73;&#79;&#83;&#69;&#69;&#75;&#84;&#73;&#77;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#98;&#108;&#111;&#99;&#107;&#32;&#115;&#105;&#122;&#101;&#125;&#123;&#73;&#79;&#84;&#70;&#82;&#83;&#80;&#69;&#69;&#68;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p><a name=\"id1537930299\"><\/a><\/p>\n<p class=\"ql-left-displayed-equation\" style=\"line-height: 37px;\"><span class=\"ql-right-eqno\"> (5) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nenadnoveljic.com\/blog\/wp-content\/ql-cache\/quicklatex.com-1690eb934f448647310a453d6d50fd63_l3.png\" height=\"37\" width=\"436\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#77;&#82;&#69;&#65;&#68;&#84;&#73;&#77;&#32;&#61;&#32;&#73;&#79;&#83;&#69;&#69;&#75;&#84;&#73;&#77;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#32;&#77;&#66;&#82;&#67;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#98;&#108;&#111;&#99;&#107;&#92;&#32;&#115;&#105;&#122;&#101;&#32;&#125;&#123;&#32;&#73;&#79;&#84;&#70;&#82;&#83;&#80;&#69;&#69;&#68;&#32;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>Consequently, <i>io scale factor<\/i> can be expressed by the means of SREAD and MREADTIM:<\/p>\n<p><a name=\"id868703447\"><\/a><\/p>\n<p class=\"ql-left-displayed-equation\" style=\"line-height: 37px;\"><span class=\"ql-right-eqno\"> (6) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nenadnoveljic.com\/blog\/wp-content\/ql-cache\/quicklatex.com-4164c1760843c8c8cf7dddc0fb203fc2_l3.png\" height=\"37\" width=\"333\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#105;&#111;&#92;&#32;&#115;&#99;&#97;&#108;&#101;&#92;&#32;&#102;&#97;&#99;&#116;&#111;&#114;&#32;&#32;&#61;&#32;&#77;&#66;&#82;&#67;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#83;&#82;&#69;&#65;&#68;&#84;&#73;&#77;&#125;&#123;&#77;&#82;&#69;&#65;&#68;&#84;&#73;&#77;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>Everything gets perfectly clear after combining the equations <a href=\"#id2566287811\">2<\/a> and <a href=\"#id868703447\">6<\/a>, i.e. expressing also <i>scaled io cost<\/i> as a function of SREADTIME and MREADTIM:<\/p>\n<p><a name=\"id2052666311\"><\/a><\/p>\n<p class=\"ql-left-displayed-equation\" style=\"line-height: 37px;\"><span class=\"ql-right-eqno\"> (7) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nenadnoveljic.com\/blog\/wp-content\/ql-cache\/quicklatex.com-20673beb1deefdd8dcba542e1366e0c0_l3.png\" height=\"37\" width=\"323\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#115;&#99;&#97;&#108;&#101;&#100;&#92;&#32;&#105;&#111;&#92;&#32;&#99;&#111;&#115;&#116;&#32;&#92;&#97;&#112;&#112;&#114;&#111;&#120;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#77;&#66;&#82;&#67;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#77;&#82;&#69;&#65;&#68;&#84;&#73;&#77;&#125;&#123;&#83;&#82;&#69;&#65;&#68;&#84;&#73;&#77;&#69;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>That&#8217;s a well known formula documented in <a href=\"https:\/\/www.apress.com\/de\/book\/9781430239543\">[Lewis 2006]<\/a>. Simply put, the cost calculated in the equation <a href=\"#id2052666311\">7<\/a> is the total multi-block read time divided by a single-block read time. Or, in other words, to paraphrase <a href=\"https:\/\/jonathanlewis.wordpress.com\/\">Jonathan Lewis<\/a>: &#8220;the cost is total predicted time, expressed in units of the single-block read time&#8221;.<\/p>\n<p>After having sorted out the general formula, I revisited the IO sort cost calculation. Predictably, the <i>io scale factor<\/i> calculation is just a variant of the general calculation with a special value for MBRC:<\/p>\n<p class=\"ql-left-displayed-equation\" style=\"line-height: 37px;\"><span class=\"ql-right-eqno\"> (8) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nenadnoveljic.com\/blog\/wp-content\/ql-cache\/quicklatex.com-d98d40126a576f22d0eed04b58323254_l3.png\" height=\"37\" width=\"164\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#77;&#66;&#82;&#67;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#54;&#53;&#53;&#51;&#54;&#125;&#123;&#98;&#108;&#111;&#99;&#107;&#92;&#32;&#115;&#105;&#122;&#101;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>This means that the optimizer always foresees 64k IOs for sort. Consequently, the MBRC is simply the number of blocks that fit in 64k.<\/p>\n<p>For FTS, the total IO cost equals <i>scaled io cost<\/i>.<\/p>\n<p><a name=\"id2061076046\"><\/a><\/p>\n<p class=\"ql-left-displayed-equation\" style=\"line-height: 13px;\"><span class=\"ql-right-eqno\"> (9) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nenadnoveljic.com\/blog\/wp-content\/ql-cache\/quicklatex.com-8a2bcf64e23b9f1c9e81cde023590662_l3.png\" height=\"13\" width=\"283\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#84;&#111;&#116;&#97;&#108;&#92;&#32;&#73;&#79;&#92;&#32;&#70;&#84;&#83;&#92;&#32;&#99;&#111;&#115;&#116;&#32;&#61;&#32;&#115;&#99;&#97;&#108;&#101;&#100;&#92;&#32;&#105;&#111;&#92;&#32;&#99;&#111;&#115;&#116; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>But for sort, the total IO cost contains other components as well:<\/p>\n<p><a name=\"id4222118594\"><\/a><\/p>\n<p class=\"ql-left-displayed-equation\" style=\"line-height: 15px;\"><span class=\"ql-right-eqno\"> (10) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nenadnoveljic.com\/blog\/wp-content\/ql-cache\/quicklatex.com-aa2443a73e9cdfebc0f1bc0e8b25043e_l3.png\" height=\"15\" width=\"370\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#84;&#111;&#116;&#97;&#108;&#92;&#32;&#73;&#79;&#92;&#32;&#83;&#111;&#114;&#116;&#92;&#32;&#99;&#111;&#115;&#116;&#32;&#61;&#32;&#98;&#108;&#111;&#99;&#107;&#115;&#32;&#43;&#32;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#115;&#99;&#97;&#108;&#101;&#100;&#92;&#32;&#105;&#111;&#92;&#32;&#99;&#111;&#115;&#116; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>Multiplying <i>scaled IO cost<\/i> by two might mean that the data has to be read twice.<\/p>\n<p>But what&#8217;s the rationale behind adding <i>blocks<\/i>? I don&#8217;t know. Both summands are expressed in different units anyway. I mean <i>scaled io cost<\/i> is measured in &#8220;single-block read time&#8221;, and <i>blocks<\/i> don&#8217;t have any units at all. And precisely this oddity is the reason why the sort cost significantly changes with the block size.<\/p>\n<p>Related blog post:<\/p>\n<p><a href=\"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation\/\">IO Sort Cost Calculation<\/a><\/p>\n<p>References:<\/p>\n<p><a href=\"https:\/\/www.apress.com\/gp\/book\/9781590596364\">[Lewis 2006]<\/a> <a href=\"https:\/\/jonathanlewis.wordpress.com\/\">Jonathan Lewis<\/a>. (2006). Cost-Based Oracle Fundamentals<\/p>\n<h1>Updates on October 8, 2020<\/h1>\n<p><i>floor<\/i> on the fraction was missing in the formula for io_scale_factor. This became apparent when I tried to apply it to <a href=\"https:\/\/jonathanlewis.wordpress.com\/2020\/10\/06\/index-ffs-cost-2\/#comments\">Jonathan Lewis&#8217; model for investigating an index FFS cost anomaly<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Interpreting formulae; comparison to full table scan calculation <a href=\"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/\" class=\"more-link\">Continue Reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[11,5,32],"tags":[],"class_list":["post-2773","post","type-post","status-publish","format-standard","hentry","category-cost-based-optimizer","category-oracle","category-sort"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>IO Sort Cost Calculation (2) - All-round Database Topics<\/title>\n<meta name=\"description\" content=\"Interpreting formulae; comparison to full table scan calculation\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"IO Sort Cost Calculation (2) - All-round Database Topics\" \/>\n<meta property=\"og:description\" content=\"Interpreting formulae; comparison to full table scan calculation\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/\" \/>\n<meta property=\"og:site_name\" content=\"All-round Database Topics\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-16T15:00:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-08T14:27:41+00:00\" \/>\n<meta name=\"author\" content=\"Nenad Noveljic\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@NenadNoveljic\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nenad Noveljic\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/io-sort-cost-calculation-2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/io-sort-cost-calculation-2\\\/\"},\"author\":{\"name\":\"Nenad Noveljic\",\"@id\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/#\\\/schema\\\/person\\\/51458d9dd86dbbdd19f5add451d44efa\"},\"headline\":\"IO Sort Cost Calculation (2)\",\"datePublished\":\"2019-07-16T15:00:05+00:00\",\"dateModified\":\"2020-10-08T14:27:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/io-sort-cost-calculation-2\\\/\"},\"wordCount\":618,\"commentCount\":0,\"articleSection\":[\"cost based optimizer\",\"Oracle\",\"sort\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/io-sort-cost-calculation-2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/io-sort-cost-calculation-2\\\/\",\"url\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/io-sort-cost-calculation-2\\\/\",\"name\":\"IO Sort Cost Calculation (2) - All-round Database Topics\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/#website\"},\"datePublished\":\"2019-07-16T15:00:05+00:00\",\"dateModified\":\"2020-10-08T14:27:41+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/#\\\/schema\\\/person\\\/51458d9dd86dbbdd19f5add451d44efa\"},\"description\":\"Interpreting formulae; comparison to full table scan calculation\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/io-sort-cost-calculation-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/io-sort-cost-calculation-2\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/io-sort-cost-calculation-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"IO Sort Cost Calculation (2)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/\",\"name\":\"All-round Database Topics\",\"description\":\"Nenad Noveljic\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/#\\\/schema\\\/person\\\/51458d9dd86dbbdd19f5add451d44efa\",\"name\":\"Nenad Noveljic\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a97b796613ea48ec8a7b79c8ffe1c685dcffc920c68121f6238d5caab5070670?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a97b796613ea48ec8a7b79c8ffe1c685dcffc920c68121f6238d5caab5070670?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a97b796613ea48ec8a7b79c8ffe1c685dcffc920c68121f6238d5caab5070670?s=96&d=mm&r=g\",\"caption\":\"Nenad Noveljic\"},\"sameAs\":[\"nenad-noveljic-9b746a6\",\"https:\\\/\\\/x.com\\\/NenadNoveljic\"],\"url\":\"https:\\\/\\\/nenadnoveljic.com\\\/blog\\\/author\\\/nenad\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"IO Sort Cost Calculation (2) - All-round Database Topics","description":"Interpreting formulae; comparison to full table scan calculation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/","og_locale":"en_US","og_type":"article","og_title":"IO Sort Cost Calculation (2) - All-round Database Topics","og_description":"Interpreting formulae; comparison to full table scan calculation","og_url":"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/","og_site_name":"All-round Database Topics","article_published_time":"2019-07-16T15:00:05+00:00","article_modified_time":"2020-10-08T14:27:41+00:00","author":"Nenad Noveljic","twitter_card":"summary_large_image","twitter_creator":"@NenadNoveljic","twitter_misc":{"Written by":"Nenad Noveljic","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/#article","isPartOf":{"@id":"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/"},"author":{"name":"Nenad Noveljic","@id":"https:\/\/nenadnoveljic.com\/blog\/#\/schema\/person\/51458d9dd86dbbdd19f5add451d44efa"},"headline":"IO Sort Cost Calculation (2)","datePublished":"2019-07-16T15:00:05+00:00","dateModified":"2020-10-08T14:27:41+00:00","mainEntityOfPage":{"@id":"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/"},"wordCount":618,"commentCount":0,"articleSection":["cost based optimizer","Oracle","sort"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/","url":"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/","name":"IO Sort Cost Calculation (2) - All-round Database Topics","isPartOf":{"@id":"https:\/\/nenadnoveljic.com\/blog\/#website"},"datePublished":"2019-07-16T15:00:05+00:00","dateModified":"2020-10-08T14:27:41+00:00","author":{"@id":"https:\/\/nenadnoveljic.com\/blog\/#\/schema\/person\/51458d9dd86dbbdd19f5add451d44efa"},"description":"Interpreting formulae; comparison to full table scan calculation","breadcrumb":{"@id":"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/nenadnoveljic.com\/blog\/io-sort-cost-calculation-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nenadnoveljic.com\/blog\/"},{"@type":"ListItem","position":2,"name":"IO Sort Cost Calculation (2)"}]},{"@type":"WebSite","@id":"https:\/\/nenadnoveljic.com\/blog\/#website","url":"https:\/\/nenadnoveljic.com\/blog\/","name":"All-round Database Topics","description":"Nenad Noveljic","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nenadnoveljic.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/nenadnoveljic.com\/blog\/#\/schema\/person\/51458d9dd86dbbdd19f5add451d44efa","name":"Nenad Noveljic","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a97b796613ea48ec8a7b79c8ffe1c685dcffc920c68121f6238d5caab5070670?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a97b796613ea48ec8a7b79c8ffe1c685dcffc920c68121f6238d5caab5070670?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a97b796613ea48ec8a7b79c8ffe1c685dcffc920c68121f6238d5caab5070670?s=96&d=mm&r=g","caption":"Nenad Noveljic"},"sameAs":["nenad-noveljic-9b746a6","https:\/\/x.com\/NenadNoveljic"],"url":"https:\/\/nenadnoveljic.com\/blog\/author\/nenad\/"}]}},"_links":{"self":[{"href":"https:\/\/nenadnoveljic.com\/blog\/wp-json\/wp\/v2\/posts\/2773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nenadnoveljic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nenadnoveljic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nenadnoveljic.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nenadnoveljic.com\/blog\/wp-json\/wp\/v2\/comments?post=2773"}],"version-history":[{"count":1,"href":"https:\/\/nenadnoveljic.com\/blog\/wp-json\/wp\/v2\/posts\/2773\/revisions"}],"predecessor-version":[{"id":3581,"href":"https:\/\/nenadnoveljic.com\/blog\/wp-json\/wp\/v2\/posts\/2773\/revisions\/3581"}],"wp:attachment":[{"href":"https:\/\/nenadnoveljic.com\/blog\/wp-json\/wp\/v2\/media?parent=2773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nenadnoveljic.com\/blog\/wp-json\/wp\/v2\/categories?post=2773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nenadnoveljic.com\/blog\/wp-json\/wp\/v2\/tags?post=2773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}