Lines Matching refs:rCost
4871 LogEst rCost; /* Cost of path (pFrom+pWLoop) */ in wherePathSolver() local
4913 rCost = sqlite3LogEstAdd(rUnsorted, aSortCost[isOrdered]) + 5; in wherePathSolver()
4918 rUnsorted, rCost)); in wherePathSolver()
4920 rCost = rUnsorted; in wherePathSolver()
4927 rCost += -10; in wherePathSolver()
4953 && (rCost>mxCost || (rCost==mxCost && rUnsorted>=mxUnsorted)) in wherePathSolver()
4961 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted, in wherePathSolver()
4980 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted, in wherePathSolver()
4993 if( pTo->rCost<rCost in wherePathSolver()
4994 || (pTo->rCost==rCost in wherePathSolver()
5004 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted, in wherePathSolver()
5007 wherePathName(pTo, iLoop+1, 0), pTo->rCost, pTo->nRow, in wherePathSolver()
5012 testcase( pTo->rCost==rCost ); in wherePathSolver()
5015 testcase( pTo->rCost==rCost+1 ); in wherePathSolver()
5022 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted, in wherePathSolver()
5025 wherePathName(pTo, iLoop+1, 0), pTo->rCost, pTo->nRow, in wherePathSolver()
5034 pTo->rCost = rCost; in wherePathSolver()
5041 mxCost = aTo[0].rCost; in wherePathSolver()
5044 if( pTo->rCost>mxCost in wherePathSolver()
5045 || (pTo->rCost==mxCost && pTo->rUnsorted>mxUnsorted) in wherePathSolver()
5047 mxCost = pTo->rCost; in wherePathSolver()
5061 wherePathName(pTo, iLoop+1, 0), pTo->rCost, pTo->nRow, in wherePathSolver()
5088 if( pFrom->rCost>aFrom[ii].rCost ) pFrom = &aFrom[ii]; in wherePathSolver()