Lines Matching refs:LogEst
13953 typedef INT16_TYPE LogEst; typedef
15638 SQLITE_PRIVATE void sqlite3VdbeScanStatus(Vdbe*, int, int, int, LogEst, const char*);
17198 LogEst nRowLogEst; /* Estimated rows in table - from sqlite_stat1 table */
17199 LogEst szTabRow; /* Estimated size of each table row in bytes */
17201 LogEst costMult; /* Cost multiplier for using this table */
17505 LogEst *aiRowLogEst; /* From ANALYZE: Est. rows selected by each column */
17515 LogEst szIdxRow; /* Estimated average row size in bytes */
18206 LogEst nSelectRow; /* Estimated number of result rows */
19023 LogEst nRowEst; /* Estimated number of rows in the table */
19519 SQLITE_PRIVATE LogEst sqlite3WhereOutputRowCount(WhereInfo*);
19722 SQLITE_PRIVATE LogEst sqlite3LogEst(u64);
19723 SQLITE_PRIVATE LogEst sqlite3LogEstAdd(LogEst,LogEst);
19725 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double);
19730 SQLITE_PRIVATE u64 sqlite3LogEstToInt(LogEst);
22036 LogEst nEst; /* Estimated output rows per loop */
33569 SQLITE_PRIVATE LogEst sqlite3LogEstAdd(LogEst a, LogEst b){
33596 SQLITE_PRIVATE LogEst sqlite3LogEst(u64 x){
33597 static LogEst a[] = { 0, 2, 3, 5, 6, 7, 8, 9 };
33598 LogEst y = 40;
33620 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double x){
33622 LogEst e;
33641 SQLITE_PRIVATE u64 sqlite3LogEstToInt(LogEst x){
80201 LogEst nEst, /* Estimated number of output rows */
86467 LogEst x = pScan->nEst;
111687 LogEst *aLog, /* Or, if aOut==0, here */
115215 nByte = (sizeof(char*) + sizeof(LogEst) + sizeof(i16) + 1)*N;
115221 memcpy(zExtra, pIdx->aiRowLogEst, sizeof(LogEst)*(pIdx->nKeyCol+1));
115222 pIdx->aiRowLogEst = (LogEst*)zExtra;
115223 zExtra += sizeof(LogEst)*N;
116870 ROUND8(sizeof(LogEst)*(nCol+1) + /* Index.aiRowLogEst */
116877 p->aiRowLogEst = (LogEst*)pExtra; pExtra += sizeof(LogEst)*(nCol+1);
117532 static const LogEst aVal[] = { 33, 32, 30, 28, 26 };
117533 LogEst *a = pIdx->aiRowLogEst;
117534 LogEst x;
117561 memcpy(&a[1], aVal, nCopy*sizeof(LogEst));
131712 LogEst szThreshold; /* Size threshold above which reanalysis is needd */
145954 LogEst rSetup; /* One-time setup cost (ex: create transient index) */
145955 LogEst rRun; /* Cost of running each loop */
145956 LogEst nOut; /* Estimated number of output rows */
145990 LogEst rRun; /* Cost of running this subquery */
145991 LogEst nOut; /* Number of outputs for this subquery */
146025 LogEst nRow; /* Estimated number of rows generated by this path */
146026 LogEst rCost; /* Total cost of this path */
146027 LogEst rUnsorted; /* Total cost of this path ignoring sorting costs */
146086 LogEst truthProb; /* Probability of truth for this expression */
146307 LogEst iLimit; /* LIMIT if wctrlFlags has WHERE_USE_LIMIT */
146316 LogEst nRowOut; /* Estimated number of output rows */
150680 SQLITE_PRIVATE LogEst sqlite3WhereOutputRowCount(WhereInfo *pWInfo){
150837 LogEst rRun, /* Run-cost of the new entry */
150838 LogEst nOut /* Number of outputs for the new entry */
151253 static LogEst estLog(LogEst N){
151984 static LogEst whereRangeAdjust(WhereTerm *pTerm, LogEst nNew){
151985 LogEst nRet = nNew;
152169 LogEst nNew;
152319 pLoop->nOut = (LogEst)nOut;
152988 LogEst nRow /* Number of rows in the entire table */
152993 LogEst iReduce = 0; /* pLoop->nOut should not exceed nRow-iReduce */
153133 LogEst nInMul /* log(Number of iterations due to IN) */
153149 LogEst saved_nOut; /* Original value of pNew->nOut */
153151 LogEst rSize; /* Number of rows in the table */
153152 LogEst rLogSize; /* Logarithm of table size */
153190 LogEst rCostIdx;
153191 LogEst nOutUnadjusted; /* nOut before IN() and WHERE adjustments */
153256 LogEst M, logK, x;
153499 LogEst nIter;
153634 LogEst aiRowEstPk[2]; /* The aiRowLogEst[] value for the sPk index */
153642 LogEst rSize; /* number of rows in the table */
153699 LogEst rLogSize; /* Logarithm of the number of rows in the table */
153833 LogEst nLookup = rSize + 16; /* Base cost: N*3 */
154797 static LogEst whereSortingCost(
154799 LogEst nRow,
154817 LogEst rScale, rSortCost;
154850 static int wherePathSolver(WhereInfo *pWInfo, LogEst nRowEst){
154859 LogEst mxCost = 0; /* Maximum cost of a set of paths */
154860 LogEst mxUnsorted = 0; /* Maximum unsorted cost of a set of path */
154868 LogEst *aSortCost = 0; /* Sorting and partial sorting costs */
154895 nSpace += sizeof(LogEst) * nOrderBy;
154912 aSortCost = (LogEst*)pX;
154913 memset(aSortCost, 0, sizeof(LogEst) * nOrderBy);
154943 LogEst nOut; /* Rows visited by (pFrom+pWLoop) */
154944 LogEst rCost; /* Cost of path (pFrom+pWLoop) */
154945 LogEst rUnsorted; /* Unsorted cost of (pFrom+pWLoop) */
155306 pLoop->nOut = (LogEst)1;