Lines Matching refs:nRow
81143 int nRow; /* Stop when row count reaches this */
81158 nRow = p->nOp;
81167 nRow += apSub[i]->nOp;
81173 if( i>=nRow ){
81217 nRow += aOp[i].p4.pProgram->nOp;
110511 tRowcnt nRow; /* Number of rows visited so far */
110671 p->nRow = 0;
110944 if( p->nRow==0 ){
110967 p->nRow++;
110997 if( p->nLimit && p->nRow>(tRowcnt)p->nLimit*(p->nSkipAhead+1) ){
111086 p->nSkipAhead ? (u64)p->nEst : (u64)p->nRow);
111089 u64 iVal = (p->nRow + nDistinct - 1) / nDistinct;
111863 tRowcnt nRow; /* Number of rows in index */
111868 nRow = pFinal->anLt[iCol];
111872 nRow = pIdx->aiRowEst[0];
111875 pIdx->nRowEst0 = nRow;
111890 if( nDist100>nSum100 && sumEq<nRow ){
111891 avgEq = ((i64)100 * (nRow - sumEq))/(nDist100 - nSum100);
135886 int nRow = 1;
135900 nRow += bShowAll;
135902 ExplainQueryPlan((pParse, 0, "SCAN %d CONSTANT ROW%s", nRow,
135903 nRow==1 ? "" : "S"));
135907 p->nSelectRow = nRow;
140814 u32 nRow; /* Number of rows in the result */
140834 if( p->nRow==0 && argv!=0 ){
140850 if( p->nRow==0 ){
140880 p->nRow++;
140918 res.nRow = 0;
140961 if( pnRow ) *pnRow = res.nRow;
146025 LogEst nRow; /* Estimated number of rows generated by this path */
152988 LogEst nRow /* Number of rows in the entire table */
153035 if( pLoop->nOut > nRow-iReduce ) pLoop->nOut = nRow - iReduce;
154799 LogEst nRow,
154820 rSortCost = nRow + rScale + 16;
154827 if( (pWInfo->wctrlFlags & WHERE_USE_LIMIT)!=0 && pWInfo->iLimit<nRow ){
154828 nRow = pWInfo->iLimit;
154832 if( nRow>10 ){ nRow -= 10; assert( 10==sqlite3LogEst(2) ); }
154834 rSortCost += estLog(nRow);
154923 aFrom[0].nRow = MIN(pParse->nQueryLoop, 48); assert( 48==sqlite3LogEst(28) );
154952 if( (pWLoop->wsFlags & WHERE_AUTO_INDEX)!=0 && pFrom->nRow<3 ){
154963 rUnsorted = sqlite3LogEstAdd(pWLoop->rSetup,pWLoop->rRun + pFrom->nRow);
154965 nOut = pFrom->nRow + pWLoop->nOut;
155059 && (pTo->nRow<nOut
155060 || (pTo->nRow==nOut && pTo->rUnsorted<=rUnsorted)
155071 wherePathName(pTo, iLoop+1, 0), pTo->rCost, pTo->nRow,
155089 wherePathName(pTo, iLoop+1, 0), pTo->rCost, pTo->nRow,
155097 pTo->nRow = nOut;
155106 mxUnsorted = aTo[0].nRow;
155125 wherePathName(pTo, iLoop+1, 0), pTo->rCost, pTo->nRow,
155224 pWInfo->nRowOut = pFrom->nRow;
174216 static void fts3SetEstimatedRows(sqlite3_index_info *pIdxInfo, i64 nRow){
174219 pIdxInfo->estimatedRows = nRow;
195935 i64 nRow; /* Estimated rows returned by this scan */
196009 nRow = pRtree->nRowEst >> (iIdx/2);
196010 pIdxInfo->estimatedCost = (double)6.0 * (double)nRow;
196011 pIdxInfo->estimatedRows = nRow;
197385 i64 nRow = RTREE_MIN_ROWEST;
197400 if( sqlite3_step(p)==SQLITE_ROW ) nRow = sqlite3_column_int64(p, 0);
197405 pRtree->nRowEst = MAX(nRow, RTREE_MIN_ROWEST);
202006 int nRow;
204505 pRet->nRow = sqlite3_column_int(pStmt, 1);
204833 p->nStep = (pState ? pState->nRow : 0);
205622 p->nStep = pState->nRow;
217772 sqlite3_int64 nRow = 0; /* Number of rows in table */
217791 if( rc==SQLITE_OK ) rc = pApi->xRowCount(pFts, &nRow);
217792 assert( rc!=SQLITE_OK || nRow>0 );
217794 if( rc==SQLITE_OK ) p->avgdl = (double)nToken / (double)nRow;
217814 double idf = log( (nRow - nHit + 0.5) / (nHit + 0.5) );
233637 i64 nRow = 0;
233638 rc = fts5StorageCount(p, "content", &nRow);
233639 if( rc==SQLITE_OK && nRow!=p->nTotalRow ) rc = FTS5_CORRUPT;
233642 i64 nRow = 0;
233643 rc = fts5StorageCount(p, "docsize", &nRow);
233644 if( rc==SQLITE_OK && nRow!=p->nTotalRow ) rc = FTS5_CORRUPT;