Lines Matching refs:LogEst

13907 typedef INT16_TYPE LogEst;  typedef
15271 SQLITE_PRIVATE void sqlite3VdbeScanStatus(Vdbe*, int, int, int, LogEst, const char*);
16896 LogEst nRowLogEst; /* Estimated rows in table - from sqlite_stat1 table */
16897 LogEst szTabRow; /* Estimated size of each table row in bytes */
16899 LogEst costMult; /* Cost multiplier for using this table */
17157 LogEst *aiRowLogEst; /* From ANALYZE: Est. rows selected by each column */
17167 LogEst szIdxRow; /* Estimated average row size in bytes */
17765 LogEst nSelectRow; /* Estimated number of result rows */
18912 SQLITE_PRIVATE LogEst sqlite3WhereOutputRowCount(WhereInfo*);
19100 SQLITE_PRIVATE LogEst sqlite3LogEst(u64);
19101 SQLITE_PRIVATE LogEst sqlite3LogEstAdd(LogEst,LogEst);
19103 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double);
19108 SQLITE_PRIVATE u64 sqlite3LogEstToInt(LogEst);
20288 LogEst nEst; /* Estimated output rows per loop */
31654 SQLITE_PRIVATE LogEst sqlite3LogEstAdd(LogEst a, LogEst b){
31681 SQLITE_PRIVATE LogEst sqlite3LogEst(u64 x){
31682 static LogEst a[] = { 0, 2, 3, 5, 6, 7, 8, 9 };
31683 LogEst y = 40;
31705 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double x){
31707 LogEst e;
31726 SQLITE_PRIVATE u64 sqlite3LogEstToInt(LogEst x){
77262 LogEst nEst, /* Estimated number of output rows */
83241 LogEst x = pScan->nEst;
105451 LogEst *aLog, /* Or, if aOut==0, here */
109874 ROUND8(sizeof(LogEst)*(nCol+1) + /* Index.aiRowLogEst */
109881 p->aiRowLogEst = (LogEst*)pExtra; pExtra += sizeof(LogEst)*(nCol+1);
110493 LogEst aVal[] = { 33, 32, 30, 28, 26 };
110494 LogEst *a = pIdx->aiRowLogEst;
110510 memcpy(&a[1], aVal, nCopy*sizeof(LogEst));
123168 LogEst szThreshold; /* Size threshold above which reanalysis is needd */
135695 LogEst rSetup; /* One-time setup cost (ex: create transient index) */
135696 LogEst rRun; /* Cost of running each loop */
135697 LogEst nOut; /* Estimated number of output rows */
135731 LogEst rRun; /* Cost of running this subquery */
135732 LogEst nOut; /* Number of outputs for this subquery */
135766 LogEst nRow; /* Estimated number of rows generated by this path */
135767 LogEst rCost; /* Total cost of this path */
135768 LogEst rUnsorted; /* Total cost of this path ignoring sorting costs */
135827 LogEst truthProb; /* Probability of truth for this expression */
136022 LogEst iLimit; /* LIMIT if wctrlFlags has WHERE_USE_LIMIT */
136038 LogEst nRowOut; /* Estimated number of output rows */
140084 SQLITE_PRIVATE LogEst sqlite3WhereOutputRowCount(WhereInfo *pWInfo){
140203 LogEst rRun, /* Run-cost of the new entry */
140204 LogEst nOut /* Number of outputs for the new entry */
140589 static LogEst estLog(LogEst N){
141322 static LogEst whereRangeAdjust(WhereTerm *pTerm, LogEst nNew){
141323 LogEst nRet = nNew;
141506 LogEst nNew;
141656 pLoop->nOut = (LogEst)nOut;
142300 LogEst nRow /* Number of rows in the entire table */
142305 LogEst iReduce = 0; /* pLoop->nOut should not exceed nRow-iReduce */
142435 LogEst nInMul /* log(Number of iterations due to IN) */
142451 LogEst saved_nOut; /* Original value of pNew->nOut */
142453 LogEst rSize; /* Number of rows in the table */
142454 LogEst rLogSize; /* Logarithm of table size */
142489 LogEst rCostIdx;
142490 LogEst nOutUnadjusted; /* nOut before IN() and WHERE adjustments */
142557 LogEst M, logK, safetyMargin;
142763 LogEst nIter;
142889 LogEst aiRowEstPk[2]; /* The aiRowLogEst[] value for the sPk index */
142897 LogEst rSize; /* number of rows in the table */
142898 LogEst rLogSize; /* Logarithm of the number of rows in the table */
143067 LogEst nLookup = rSize + 16; /* Base cost: N*3 */
143986 static LogEst whereSortingCost(
143988 LogEst nRow,
144005 LogEst rScale, rSortCost;
144031 static int wherePathSolver(WhereInfo *pWInfo, LogEst nRowEst){
144040 LogEst mxCost = 0; /* Maximum cost of a set of paths */
144041 LogEst mxUnsorted = 0; /* Maximum unsorted cost of a set of path */
144049 LogEst *aSortCost = 0; /* Sorting and partial sorting costs */
144076 nSpace += sizeof(LogEst) * nOrderBy;
144093 aSortCost = (LogEst*)pX;
144094 memset(aSortCost, 0, sizeof(LogEst) * nOrderBy);
144124 LogEst nOut; /* Rows visited by (pFrom+pWLoop) */
144125 LogEst rCost; /* Cost of path (pFrom+pWLoop) */
144126 LogEst rUnsorted; /* Unsorted cost of (pFrom+pWLoop) */
144479 pLoop->nOut = (LogEst)1;