Lines Matching refs:LogEst
14365 typedef INT16_TYPE LogEst; typedef
15730 SQLITE_PRIVATE void sqlite3VdbeScanStatus(Vdbe*, int, int, int, LogEst, const char*);
17474 LogEst nRowLogEst; /* Estimated rows in table - from sqlite_stat1 table */
17475 LogEst szTabRow; /* Estimated size of each table row in bytes */
17477 LogEst costMult; /* Cost multiplier for using this table */
17752 LogEst *aiRowLogEst; /* From ANALYZE: Est. rows selected by each column */
17762 LogEst szIdxRow; /* Estimated average row size in bytes */
18413 LogEst nSelectRow; /* Estimated number of result rows */
19598 SQLITE_PRIVATE LogEst sqlite3WhereOutputRowCount(WhereInfo*);
19793 SQLITE_PRIVATE LogEst sqlite3LogEst(u64);
19794 SQLITE_PRIVATE LogEst sqlite3LogEstAdd(LogEst,LogEst);
19796 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double);
19801 SQLITE_PRIVATE u64 sqlite3LogEstToInt(LogEst);
21007 LogEst nEst; /* Estimated output rows per loop */
32592 SQLITE_PRIVATE LogEst sqlite3LogEstAdd(LogEst a, LogEst b){
32619 SQLITE_PRIVATE LogEst sqlite3LogEst(u64 x){
32620 static LogEst a[] = { 0, 2, 3, 5, 6, 7, 8, 9 };
32621 LogEst y = 40;
32643 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double x){
32645 LogEst e;
32664 SQLITE_PRIVATE u64 sqlite3LogEstToInt(LogEst x){
78555 LogEst nEst, /* Estimated number of output rows */
84787 LogEst x = pScan->nEst;
108685 LogEst *aLog, /* Or, if aOut==0, here */
113451 ROUND8(sizeof(LogEst)*(nCol+1) + /* Index.aiRowLogEst */
113458 p->aiRowLogEst = (LogEst*)pExtra; pExtra += sizeof(LogEst)*(nCol+1);
114099 LogEst aVal[] = { 33, 32, 30, 28, 26 };
114100 LogEst *a = pIdx->aiRowLogEst;
114116 memcpy(&a[1], aVal, nCopy*sizeof(LogEst));
127390 LogEst szThreshold; /* Size threshold above which reanalysis is needd */
140257 LogEst rSetup; /* One-time setup cost (ex: create transient index) */
140258 LogEst rRun; /* Cost of running each loop */
140259 LogEst nOut; /* Estimated number of output rows */
140293 LogEst rRun; /* Cost of running this subquery */
140294 LogEst nOut; /* Number of outputs for this subquery */
140328 LogEst nRow; /* Estimated number of rows generated by this path */
140329 LogEst rCost; /* Total cost of this path */
140330 LogEst rUnsorted; /* Total cost of this path ignoring sorting costs */
140389 LogEst truthProb; /* Probability of truth for this expression */
140612 LogEst iLimit; /* LIMIT if wctrlFlags has WHERE_USE_LIMIT */
140621 LogEst nRowOut; /* Estimated number of output rows */
144872 SQLITE_PRIVATE LogEst sqlite3WhereOutputRowCount(WhereInfo *pWInfo){
144999 LogEst rRun, /* Run-cost of the new entry */
145000 LogEst nOut /* Number of outputs for the new entry */
145385 static LogEst estLog(LogEst N){
146107 static LogEst whereRangeAdjust(WhereTerm *pTerm, LogEst nNew){
146108 LogEst nRet = nNew;
146292 LogEst nNew;
146442 pLoop->nOut = (LogEst)nOut;
147096 LogEst nRow /* Number of rows in the entire table */
147101 LogEst iReduce = 0; /* pLoop->nOut should not exceed nRow-iReduce */
147238 LogEst nInMul /* log(Number of iterations due to IN) */
147254 LogEst saved_nOut; /* Original value of pNew->nOut */
147256 LogEst rSize; /* Number of rows in the table */
147257 LogEst rLogSize; /* Logarithm of table size */
147293 LogEst rCostIdx;
147294 LogEst nOutUnadjusted; /* nOut before IN() and WHERE adjustments */
147359 LogEst M, logK, safetyMargin;
147589 LogEst nIter;
147722 LogEst aiRowEstPk[2]; /* The aiRowLogEst[] value for the sPk index */
147730 LogEst rSize; /* number of rows in the table */
147731 LogEst rLogSize; /* Logarithm of the number of rows in the table */
147903 LogEst nLookup = rSize + 16; /* Base cost: N*3 */
148852 static LogEst whereSortingCost(
148854 LogEst nRow,
148871 LogEst rScale, rSortCost;
148897 static int wherePathSolver(WhereInfo *pWInfo, LogEst nRowEst){
148906 LogEst mxCost = 0; /* Maximum cost of a set of paths */
148907 LogEst mxUnsorted = 0; /* Maximum unsorted cost of a set of path */
148915 LogEst *aSortCost = 0; /* Sorting and partial sorting costs */
148942 nSpace += sizeof(LogEst) * nOrderBy;
148959 aSortCost = (LogEst*)pX;
148960 memset(aSortCost, 0, sizeof(LogEst) * nOrderBy);
148990 LogEst nOut; /* Rows visited by (pFrom+pWLoop) */
148991 LogEst rCost; /* Cost of path (pFrom+pWLoop) */
148992 LogEst rUnsorted; /* Unsorted cost of (pFrom+pWLoop) */
149345 pLoop->nOut = (LogEst)1;