aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-11-16 02:49:15 +0000
committerdrh <drh@noemail.net>2010-11-16 02:49:15 +0000
commit95aa47b10a6ff9e920ee82b1dcde8c8ed73c69c2 (patch)
tree9605a6df054b4f999533db6d21fea19693810a40 /src/sqliteInt.h
parent04098e60858effdd49bce4c7550787a61fc39b00 (diff)
downloadsqlite-95aa47b10a6ff9e920ee82b1dcde8c8ed73c69c2.tar.gz
sqlite-95aa47b10a6ff9e920ee82b1dcde8c8ed73c69c2.zip
Use the estimated number of rows computed for subqueries in the cost
computations for outer queries. FossilOrigin-Name: 56bbc539246a6dc9f1ae1edb898db7a4f6f6d322
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index b9eb650d8..c02a0e448 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1947,6 +1947,7 @@ struct WhereInfo {
int nLevel; /* Number of nested loop */
struct WhereClause *pWC; /* Decomposition of the WHERE clause */
double savedNQueryLoop; /* pParse->nQueryLoop outside the WHERE loop */
+ double nRowOut; /* Estimated number of output rows */
WhereLevel a[1]; /* Information about each nest loop in WHERE */
};
@@ -2022,6 +2023,7 @@ struct Select {
Expr *pOffset; /* OFFSET expression. NULL means not used. */
int iLimit, iOffset; /* Memory registers holding LIMIT & OFFSET counters */
int addrOpenEphm[3]; /* OP_OpenEphem opcodes related to this select */
+ double nSelectRow; /* Estimated number of result rows */
};
/*