Lines Matching refs:nOut
207 LogEst nOut /* Number of outputs for the new entry */ in whereOrInsert() argument
221 p->nOut = nOut; in whereOrInsert()
232 if( p->nOut>nOut ) p->nOut = nOut; in whereOrInsert()
1743 pLoop->nOut -= nAdjust; in whereRangeSkipScanEst()
1746 nLower, nUpper, nAdjust*-1, pLoop->nOut)); in whereRangeSkipScanEst()
1809 int nOut = pLoop->nOut; in whereRangeScanEst() local
1886 nOut--; in whereRangeScanEst()
1903 nOut--; in whereRangeScanEst()
1920 if( nNew<nOut ){ in whereRangeScanEst()
1921 nOut = nNew; in whereRangeScanEst()
1924 (u32)iLower, (u32)iUpper, nOut)); in whereRangeScanEst()
1938 nNew = whereRangeAdjust(pLower, nOut); in whereRangeScanEst()
1951 nOut -= (pLower!=0) + (pUpper!=0); in whereRangeScanEst()
1953 if( nNew<nOut ) nOut = nNew; in whereRangeScanEst()
1955 if( pLoop->nOut>nOut ){ in whereRangeScanEst()
1957 pLoop->nOut, nOut)); in whereRangeScanEst()
1960 pLoop->nOut = (LogEst)nOut; in whereRangeScanEst()
2179 sqlite3DebugPrintf(" cost %d,%d,%d\n", p->rSetup, p->rRun, p->nOut); in sqlite3WhereLoopPrint()
2325 if( pX->rRun>pY->rRun && pX->nOut>pY->nOut ) return 0; in whereLoopCheaperProperSubset()
2364 pTemplate->rRun, pTemplate->nOut, in whereLoopAdjustCost()
2366 MIN(p->nOut - 1, pTemplate->nOut))); in whereLoopAdjustCost()
2368 pTemplate->nOut = MIN(p->nOut - 1, pTemplate->nOut); in whereLoopAdjustCost()
2373 pTemplate->rRun, pTemplate->nOut, in whereLoopAdjustCost()
2375 MAX(p->nOut + 1, pTemplate->nOut))); in whereLoopAdjustCost()
2377 pTemplate->nOut = MAX(p->nOut + 1, pTemplate->nOut); in whereLoopAdjustCost()
2439 && p->nOut<=pTemplate->nOut /* (2c) */ in whereLoopFindLesser()
2451 && p->nOut>=pTemplate->nOut /* (2b) */ in whereLoopFindLesser()
2510 pTemplate->nOut); in whereLoopInsert()
2664 pLoop->nOut += pTerm->truthProb; in whereLoopOutputAdjust()
2668 pLoop->nOut--; in whereLoopOutputAdjust()
2688 if( pLoop->nOut > nRow-iReduce ){ in whereLoopOutputAdjust()
2689 pLoop->nOut = nRow - iReduce; in whereLoopOutputAdjust()
2837 saved_nOut = pNew->nOut; in whereLoopAddBtreeIndex()
3014 assert( pNew->nOut==saved_nOut ); in whereLoopAddBtreeIndex()
3023 assert( pNew->nOut==saved_nOut ); in whereLoopAddBtreeIndex()
3027 pNew->nOut += pTerm->truthProb; in whereLoopAddBtreeIndex()
3028 pNew->nOut -= nIn; in whereLoopAddBtreeIndex()
3031 tRowcnt nOut = 0; in whereLoopAddBtreeIndex() local
3043 rc = whereEqualScanEst(pParse, pBuilder, pExpr->pRight, &nOut); in whereLoopAddBtreeIndex()
3045 rc = whereInScanEst(pParse, pBuilder, pExpr->x.pList, &nOut); in whereLoopAddBtreeIndex()
3049 if( nOut ){ in whereLoopAddBtreeIndex()
3050 pNew->nOut = sqlite3LogEst(nOut); in whereLoopAddBtreeIndex()
3055 && pNew->nOut+10 > pProbe->aiRowLogEst[0] in whereLoopAddBtreeIndex()
3072 if( pNew->nOut>saved_nOut ) pNew->nOut = saved_nOut; in whereLoopAddBtreeIndex()
3073 pNew->nOut -= nIn; in whereLoopAddBtreeIndex()
3076 if( nOut==0 ) in whereLoopAddBtreeIndex()
3079 pNew->nOut += (pProbe->aiRowLogEst[nEq] - pProbe->aiRowLogEst[nEq-1]); in whereLoopAddBtreeIndex()
3084 pNew->nOut += 10; in whereLoopAddBtreeIndex()
3095 rCostIdx = pNew->nOut + 1 + (15*pProbe->szIdxRow)/pSrc->pTab->szTabRow; in whereLoopAddBtreeIndex()
3098 pNew->rRun = sqlite3LogEstAdd(pNew->rRun, pNew->nOut + 16); in whereLoopAddBtreeIndex()
3102 nOutUnadjusted = pNew->nOut; in whereLoopAddBtreeIndex()
3104 pNew->nOut += nInMul + nIn; in whereLoopAddBtreeIndex()
3109 pNew->nOut = saved_nOut; in whereLoopAddBtreeIndex()
3111 pNew->nOut = nOutUnadjusted; in whereLoopAddBtreeIndex()
3121 pNew->nOut = saved_nOut; in whereLoopAddBtreeIndex()
3132 pNew->nOut = saved_nOut; in whereLoopAddBtreeIndex()
3161 pNew->nOut -= nIter; in whereLoopAddBtreeIndex()
3166 pNew->nOut = saved_nOut; in whereLoopAddBtreeIndex()
3479 pNew->nOut = 43; assert( 43==sqlite3LogEst(20) ); in whereLoopAddBtree()
3480 pNew->rRun = sqlite3LogEstAdd(rLogSize,pNew->nOut); in whereLoopAddBtree()
3511 pNew->nOut = rSize; in whereLoopAddBtree()
3546 pNew->nOut = rSize; in whereLoopAddBtree()
3617 pNew->nOut = rSize; in whereLoopAddBtree()
3828 pNew->nOut = sqlite3LogEst(pIdxInfo->estimatedRows); in whereLoopAddVirtualOne()
4217 sqlite3LogEstAdd(sPrev.a[i].nOut, sCur.a[j].nOut)); in whereLoopAddOr()
4242 pNew->nOut = sSum.a[i].nOut; in whereLoopAddOr()
4870 LogEst nOut; /* Rows visited by (pFrom+pWLoop) */ in wherePathSolver() local
4892 nOut = pFrom->nRow + pWLoop->nOut; in wherePathSolver()
4928 nOut += -30; in wherePathSolver()
4961 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted, in wherePathSolver()
4980 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted, in wherePathSolver()
4995 && (pTo->nRow<nOut in wherePathSolver()
4996 || (pTo->nRow==nOut && pTo->rUnsorted<=rUnsorted) in wherePathSolver()
5004 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted, in wherePathSolver()
5022 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted, in wherePathSolver()
5033 pTo->nRow = nOut; in wherePathSolver()
5246 pLoop->nOut = (LogEst)1; in whereShortCut()
5434 nSearch = pWInfo->a[0].pWLoop->nOut; in whereCheckIfBloomFilterIsUseful()
5458 nSearch += pLoop->nOut; in whereCheckIfBloomFilterIsUseful()