Lines Matching refs:LogEst

14926 typedef INT16_TYPE LogEst;  typedef
17083 SQLITE_PRIVATE void sqlite3VdbeScanStatus(Vdbe*, int, int, int, LogEst, const char*);
18404 LogEst nRowLogEst; /* Estimated rows in table - from sqlite_stat1 table */
18405 LogEst szTabRow; /* Estimated size of each table row in bytes */
18407 LogEst costMult; /* Cost multiplier for using this table */
18736 LogEst *aiRowLogEst; /* From ANALYZE: Est. rows selected by each column */
18746 LogEst szIdxRow; /* Estimated average row size in bytes */
19502 LogEst nSelectRow; /* Estimated number of result rows */
19848 LogEst nQueryLoop; /* Est number of iterations of a query (10*log2(N)) */
20401 LogEst nRowEst; /* Estimated number of rows in the table */
20984 SQLITE_PRIVATE LogEst sqlite3WhereOutputRowCount(WhereInfo*);
21196 SQLITE_PRIVATE LogEst sqlite3LogEst(u64);
21197 SQLITE_PRIVATE LogEst sqlite3LogEstAdd(LogEst,LogEst);
21198 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double);
21199 SQLITE_PRIVATE u64 sqlite3LogEstToInt(LogEst);
23524 LogEst nEst; /* Estimated output rows per loop */
36618 SQLITE_PRIVATE LogEst sqlite3LogEstAdd(LogEst a, LogEst b){ in sqlite3LogEstAdd()
36645 SQLITE_PRIVATE LogEst sqlite3LogEst(u64 x){ in sqlite3LogEst()
36646 static LogEst a[] = { 0, 2, 3, 5, 6, 7, 8, 9 }; in sqlite3LogEst()
36647 LogEst y = 40; in sqlite3LogEst()
36668 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double x){ in sqlite3LogEstFromDouble()
36670 LogEst e; in sqlite3LogEstFromDouble()
36682 SQLITE_PRIVATE u64 sqlite3LogEstToInt(LogEst x){ in sqlite3LogEstToInt()
86030 LogEst nEst, /* Estimated number of output rows */
92817 LogEst x = pScan->nEst;
119979 LogEst *aLog, /* Or, if aOut==0, here */
123557 nByte = (sizeof(char*) + sizeof(LogEst) + sizeof(i16) + 1)*N;
123563 memcpy(zExtra, pIdx->aiRowLogEst, sizeof(LogEst)*(pIdx->nKeyCol+1));
123564 pIdx->aiRowLogEst = (LogEst*)zExtra;
123565 zExtra += sizeof(LogEst)*N;
125238 ROUND8(sizeof(LogEst)*(nCol+1) + /* Index.aiRowLogEst */
125245 p->aiRowLogEst = (LogEst*)pExtra; pExtra += sizeof(LogEst)*(nCol+1);
125903 static const LogEst aVal[] = { 33, 32, 30, 28, 26 };
125904 LogEst *a = pIdx->aiRowLogEst;
125905 LogEst x;
125932 memcpy(&a[1], aVal, nCopy*sizeof(LogEst));
141219 LogEst szThreshold; /* Size threshold above which reanalysis needed */
141295 const LogEst iRange = 33; /* 10x size change */
156926 LogEst rSetup; /* One-time setup cost (ex: create transient index) */
156927 LogEst rRun; /* Cost of running each loop */
156928 LogEst nOut; /* Estimated number of output rows */
156964 LogEst rRun; /* Cost of running this subquery */
156965 LogEst nOut; /* Number of outputs for this subquery */
156999 LogEst nRow; /* Estimated number of rows generated by this path */
157000 LogEst rCost; /* Total cost of this path */
157001 LogEst rUnsorted; /* Total cost of this path ignoring sorting costs */
157060 LogEst truthProb; /* Probability of truth for this expression */
157266 LogEst iLimit; /* LIMIT if wctrlFlags has WHERE_USE_LIMIT */
157275 LogEst nRowOut; /* Estimated number of output rows */
162166 SQLITE_PRIVATE LogEst sqlite3WhereOutputRowCount(WhereInfo *pWInfo){
162323 LogEst rRun, /* Run-cost of the new entry */
162324 LogEst nOut /* Number of outputs for the new entry */
162812 static LogEst estLog(LogEst N){
163901 static LogEst whereRangeAdjust(WhereTerm *pTerm, LogEst nNew){
163902 LogEst nRet = nNew;
164086 LogEst nNew;
164237 pLoop->nOut = (LogEst)nOut;
164941 LogEst nRow /* Number of rows in the entire table */
164946 LogEst iReduce = 0; /* pLoop->nOut should not exceed nRow-iReduce */
165106 LogEst nInMul /* log(Number of iterations due to IN) */
165122 LogEst saved_nOut; /* Original value of pNew->nOut */
165124 LogEst rSize; /* Number of rows in the table */
165125 LogEst rLogSize; /* Logarithm of table size */
165171 LogEst rCostIdx;
165172 LogEst nOutUnadjusted; /* nOut before IN() and WHERE adjustments */
165237 LogEst M, logK, x;
165503 LogEst nIter;
165880 LogEst aiRowEstPk[2]; /* The aiRowLogEst[] value for the sPk index */
165888 LogEst rSize; /* number of rows in the table */
165946 LogEst rLogSize; /* Logarithm of the number of rows in the table */
166114 LogEst nLookup = rSize + 16; /* Base cost: N*3 */
167269 static LogEst whereSortingCost(
167271 LogEst nRow, /* Estimated number of rows to sort */
167296 LogEst rSortCost, nCol;
167341 static int wherePathSolver(WhereInfo *pWInfo, LogEst nRowEst){
167349 LogEst mxCost = 0; /* Maximum cost of a set of paths */
167350 LogEst mxUnsorted = 0; /* Maximum unsorted cost of a set of path */
167358 LogEst *aSortCost = 0; /* Sorting and partial sorting costs */
167385 nSpace += sizeof(LogEst) * nOrderBy;
167402 aSortCost = (LogEst*)pX;
167403 memset(aSortCost, 0, sizeof(LogEst) * nOrderBy);
167433 LogEst nOut; /* Rows visited by (pFrom+pWLoop) */
167434 LogEst rCost; /* Cost of path (pFrom+pWLoop) */
167435 LogEst rUnsorted; /* Unsorted cost of (pFrom+pWLoop) */
167881 pLoop->nOut = (LogEst)1;
168084 LogEst nSearch = 0;
184372 LogEst rLogEst = sqlite3LogEstFromDouble(rIn);