double diskCost = numBlocks * pluginCostModel.getSequentialBlockReadCost(this);
double diskCost = numBlocks * pluginCost.getSequentialBlockReadCost(primaryTableGroupScan); double diskCostIndex = numBlocksIndex * pluginCost.getSequentialBlockReadCost(primaryTableGroupScan);
double numBlocks = Math.ceil(((avgRowSize * rowsFromDisk)/pluginCostModel.getBlockSize(this))); numBlocks = Math.min(totalBlocks, numBlocks); double diskCost = numBlocks * pluginCostModel.getSequentialBlockReadCost(this); logger.debug("index_plan_info: JsonIndexGroupScan:{} - indexName:{}: rowCount:{}, avgRowSize:{}, blocks:{}, totalBlocks:{}, rowsFromDisk {}, diskCost:{}", System.identityHashCode(this), scanSpec.getIndexDesc().getIndexName(), rowCount, avgRowSize, numBlocks, totalBlocks, rowsFromDisk, diskCost);
double diskCost = numBlocks * pluginCostModel.getSequentialBlockReadCost(this);
double diskCost = numBlocks * pluginCost.getSequentialBlockReadCost(primaryTableGroupScan); double diskCostIndex = numBlocksIndex * pluginCost.getSequentialBlockReadCost(primaryTableGroupScan);
double numBlocks = Math.ceil(((avgRowSize * rowsFromDisk)/pluginCostModel.getBlockSize(this))); numBlocks = Math.min(totalBlocks, numBlocks); double diskCost = numBlocks * pluginCostModel.getSequentialBlockReadCost(this); logger.debug("index_plan_info: JsonIndexGroupScan:{} - indexName:{}: rowCount:{}, avgRowSize:{}, blocks:{}, totalBlocks:{}, rowsFromDisk {}, diskCost:{}", System.identityHashCode(this), scanSpec.getIndexDesc().getIndexName(), rowCount, avgRowSize, numBlocks, totalBlocks, rowsFromDisk, diskCost);
double diskCostIndex = numBlocksIndex * costBase.getSequentialBlockReadCost(primaryTableGroupScan); totDiskCost += diskCostIndex;