Lines Matching refs:LogEst
15311 typedef INT16_TYPE LogEst; typedef
17516 SQLITE_PRIVATE void sqlite3VdbeScanStatus(Vdbe*, int, int, int, LogEst, const char*);
18808 LogEst nRowLogEst; /* Estimated rows in table - from sqlite_stat1 table */
18809 LogEst szTabRow; /* Estimated size of each table row in bytes */
18811 LogEst costMult; /* Cost multiplier for using this table */
19148 LogEst *aiRowLogEst; /* From ANALYZE: Est. rows selected by each column */
19158 LogEst szIdxRow; /* Estimated average row size in bytes */
19959 LogEst nSelectRow; /* Estimated number of result rows */
20254 LogEst nQueryLoop; /* Est number of iterations of a query (10*log2(N)) */
20872 LogEst nRowEst; /* Estimated number of rows in the table */
21453 SQLITE_PRIVATE LogEst sqlite3WhereOutputRowCount(WhereInfo*);
21668 SQLITE_PRIVATE LogEst sqlite3LogEst(u64);
21669 SQLITE_PRIVATE LogEst sqlite3LogEstAdd(LogEst,LogEst);
21670 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double);
21671 SQLITE_PRIVATE u64 sqlite3LogEstToInt(LogEst);
24015 LogEst nEst; /* Estimated output rows per loop */
37199 SQLITE_PRIVATE LogEst sqlite3LogEstAdd(LogEst a, LogEst b){ in sqlite3LogEstAdd()
37226 SQLITE_PRIVATE LogEst sqlite3LogEst(u64 x){ in sqlite3LogEst()
37227 static LogEst a[] = { 0, 2, 3, 5, 6, 7, 8, 9 }; in sqlite3LogEst()
37228 LogEst y = 40; in sqlite3LogEst()
37249 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double x){ in sqlite3LogEstFromDouble()
37251 LogEst e; in sqlite3LogEstFromDouble()
37263 SQLITE_PRIVATE u64 sqlite3LogEstToInt(LogEst x){ in sqlite3LogEstToInt()
87090 LogEst nEst, /* Estimated number of output rows */
93955 LogEst x = pScan->nEst;
121624 LogEst *aLog, /* Or, if aOut==0, here */
125189 nByte = (sizeof(char*) + sizeof(LogEst) + sizeof(i16) + 1)*(u64)N;
125195 memcpy(zExtra, pIdx->aiRowLogEst, sizeof(LogEst)*(pIdx->nKeyCol+1));
125196 pIdx->aiRowLogEst = (LogEst*)zExtra;
125197 zExtra += sizeof(LogEst)*N;
126875 ROUND8(sizeof(LogEst)*(nCol+1) + /* Index.aiRowLogEst */
126882 p->aiRowLogEst = (LogEst*)pExtra; pExtra += sizeof(LogEst)*(nCol+1);
127538 static const LogEst aVal[] = { 33, 32, 30, 28, 26 };
127539 LogEst *a = pIdx->aiRowLogEst;
127540 LogEst x;
127567 memcpy(&a[1], aVal, nCopy*sizeof(LogEst));
143162 LogEst szThreshold; /* Size threshold above which reanalysis needed */
143238 const LogEst iRange = 33; /* 10x size change */
159091 LogEst rSetup; /* One-time setup cost (ex: create transient index) */
159092 LogEst rRun; /* Cost of running each loop */
159093 LogEst nOut; /* Estimated number of output rows */
159121 LogEst rStarDelta; /* Cost delta due to star-schema heuristic. Not
159135 LogEst rRun; /* Cost of running this subquery */
159136 LogEst nOut; /* Number of outputs for this subquery */
159170 LogEst nRow; /* Estimated number of rows generated by this path */
159171 LogEst rCost; /* Total cost of this path */
159172 LogEst rUnsort; /* Total cost of this path ignoring sorting costs */
159231 LogEst truthProb; /* Probability of truth for this expression */
159437 LogEst iLimit; /* LIMIT if wctrlFlags has WHERE_USE_LIMIT */
159448 LogEst nRowOut; /* Estimated number of output rows */
159450 LogEst rTotalCost; /* Total cost of the solution */
164522 SQLITE_PRIVATE LogEst sqlite3WhereOutputRowCount(WhereInfo *pWInfo){
164679 LogEst rRun, /* Run-cost of the new entry */
164680 LogEst nOut /* Number of outputs for the new entry */
165168 static LogEst estLog(LogEst N){
166376 static LogEst whereRangeAdjust(WhereTerm *pTerm, LogEst nNew){
166377 LogEst nRet = nNew;
166561 LogEst nNew;
166712 pLoop->nOut = (LogEst)nOut;
167426 LogEst nRow /* Number of rows in the entire table */
167431 LogEst iReduce = 0; /* pLoop->nOut should not exceed nRow-iReduce */
167591 LogEst nInMul /* log(Number of iterations due to IN) */
167607 LogEst saved_nOut; /* Original value of pNew->nOut */
167609 LogEst rSize; /* Number of rows in the table */
167610 LogEst rLogSize; /* Logarithm of table size */
167653 LogEst rCostIdx;
167654 LogEst nOutUnadjusted; /* nOut before IN() and WHERE adjustments */
167733 LogEst M, logK, x;
167999 LogEst nIter;
168376 LogEst aiRowEstPk[2]; /* The aiRowLogEst[] value for the sPk index */
168384 LogEst rSize; /* number of rows in the table */
168441 LogEst rLogSize; /* Logarithm of the number of rows in the table */
168615 LogEst nLookup = rSize + 16; /* Base cost: N*3 */
169864 static LogEst whereSortingCost(
169866 LogEst nRow, /* Estimated number of rows to sort */
169891 LogEst rSortCost, nCol;
170017 LogEst mxRun; /* Maximum SCAN cost of a fact table */
170146 static int wherePathSolver(WhereInfo *pWInfo, LogEst nRowEst){
170154 LogEst mxCost = 0; /* Maximum cost of a set of paths */
170155 LogEst mxUnsort = 0; /* Maximum unsorted cost of a set of path */
170163 LogEst *aSortCost = 0; /* Sorting and partial sorting costs */
170204 nSpace += sizeof(LogEst) * nOrderBy;
170221 aSortCost = (LogEst*)pX;
170222 memset(aSortCost, 0, sizeof(LogEst) * nOrderBy);
170252 LogEst nOut; /* Rows visited by (pFrom+pWLoop) */
170253 LogEst rCost; /* Cost of path (pFrom+pWLoop) */
170254 LogEst rUnsort; /* Unsorted cost of (pFrom+pWLoop) */
170436 LogEst rMin, rFloor = 0;
170721 pLoop->nOut = (LogEst)1;
170928 LogEst nSearch = 0;
187292 LogEst rLogEst = sqlite3LogEstFromDouble(rIn);