Lines Matching refs:nRow
79500 int nRow; /* Stop when row count reaches this */
79515 nRow = p->nOp;
79524 nRow += apSub[i]->nOp;
79530 if( i>=nRow ){
79574 nRow += aOp[i].p4.pProgram->nOp;
107514 tRowcnt nRow; /* Number of rows visited so far */
107675 p->nRow = 0;
107948 if( p->nRow==0 ){
107971 p->nRow++;
108001 if( p->nLimit && p->nRow>(tRowcnt)p->nLimit*(p->nSkipAhead+1) ){
108095 p->nSkipAhead ? (u64)p->nEst : (u64)p->nRow);
108099 u64 iVal = (p->nRow + nDistinct - 1) / nDistinct;
108861 tRowcnt nRow; /* Number of rows in index */
108866 nRow = pFinal->anLt[iCol];
108870 nRow = pIdx->aiRowEst[0];
108873 pIdx->nRowEst0 = nRow;
108888 if( nDist100>nSum100 && sumEq<nRow ){
108889 avgEq = ((i64)100 * (nRow - sumEq))/(nDist100 - nSum100);
131327 int nRow = 1;
131341 nRow += bShowAll;
131343 ExplainQueryPlan((pParse, 0, "SCAN %d CONSTANT ROW%s", nRow,
131344 nRow==1 ? "" : "S"));
131348 p->nSelectRow = nRow;
135673 u32 nRow; /* Number of rows in the result */
135693 if( p->nRow==0 && argv!=0 ){
135709 if( p->nRow==0 ){
135739 p->nRow++;
135777 res.nRow = 0;
135820 if( pnRow ) *pnRow = res.nRow;
140328 LogEst nRow; /* Estimated number of rows generated by this path */
147096 LogEst nRow /* Number of rows in the entire table */
147143 if( pLoop->nOut > nRow-iReduce ) pLoop->nOut = nRow - iReduce;
148854 LogEst nRow,
148874 rSortCost = nRow + rScale + 16;
148878 if( (pWInfo->wctrlFlags & WHERE_USE_LIMIT)!=0 && pWInfo->iLimit<nRow ){
148879 nRow = pWInfo->iLimit;
148881 rSortCost += estLog(nRow);
148970 aFrom[0].nRow = MIN(pParse->nQueryLoop, 48); assert( 48==sqlite3LogEst(28) );
148999 if( (pWLoop->wsFlags & WHERE_AUTO_INDEX)!=0 && pFrom->nRow<3 ){
149010 rUnsorted = sqlite3LogEstAdd(pWLoop->rSetup,pWLoop->rRun + pFrom->nRow);
149012 nOut = pFrom->nRow + pWLoop->nOut;
149106 && (pTo->nRow<nOut
149107 || (pTo->nRow==nOut && pTo->rUnsorted<=rUnsorted)
149118 wherePathName(pTo, iLoop+1, 0), pTo->rCost, pTo->nRow,
149136 wherePathName(pTo, iLoop+1, 0), pTo->rCost, pTo->nRow,
149144 pTo->nRow = nOut;
149153 mxUnsorted = aTo[0].nRow;
149172 wherePathName(pTo, iLoop+1, 0), pTo->rCost, pTo->nRow,
149266 pWInfo->nRowOut = pFrom->nRow;
167616 static void fts3SetEstimatedRows(sqlite3_index_info *pIdxInfo, i64 nRow){
167619 pIdxInfo->estimatedRows = nRow;
189140 i64 nRow; /* Estimated rows returned by this scan */
189214 nRow = pRtree->nRowEst >> (iIdx/2);
189215 pIdxInfo->estimatedCost = (double)6.0 * (double)nRow;
189216 pIdxInfo->estimatedRows = nRow;
190576 i64 nRow = 0;
190591 if( sqlite3_step(p)==SQLITE_ROW ) nRow = sqlite3_column_int64(p, 0);
190598 if( nRow==0 ){
190601 pRtree->nRowEst = MAX(nRow, RTREE_MIN_ROWEST);
195177 int nRow;
197672 pRet->nRow = sqlite3_column_int(pStmt, 1);
197994 p->nStep = (pState ? pState->nRow : 0);
198753 p->nStep = pState->nRow;
210487 sqlite3_int64 nRow = 0; /* Number of rows in table */
210506 if( rc==SQLITE_OK ) rc = pApi->xRowCount(pFts, &nRow);
210507 assert( rc!=SQLITE_OK || nRow>0 );
210509 if( rc==SQLITE_OK ) p->avgdl = (double)nToken / (double)nRow;
210529 double idf = log( (nRow - nHit + 0.5) / (nHit + 0.5) );
225912 i64 nRow = 0;
225913 rc = fts5StorageCount(p, "content", &nRow);
225914 if( rc==SQLITE_OK && nRow!=p->nTotalRow ) rc = FTS5_CORRUPT;
225917 i64 nRow = 0;
225918 rc = fts5StorageCount(p, "docsize", &nRow);
225919 if( rc==SQLITE_OK && nRow!=p->nTotalRow ) rc = FTS5_CORRUPT;