Deploy heuristics (well-commented) to better estimate how much unindexed terms

in the WHERE clause filter the number of output rows from a single table.

FossilOrigin-Name: 221659945c3f78d3b6789bfe8fdeb8d3ee1fa038
This commit is contained in:
drh
2014-11-22 18:50:44 +00:00
parent a3898250d4
commit 7a1bca7e74
4 changed files with 48 additions and 22 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ do_scanstatus_test 4.2.2 {
nLoop 1 nVisit 1 nEst 1.0 zName sqlite_autoindex_p1_1
zExplain {SEARCH TABLE p1 USING INDEX sqlite_autoindex_p1_1 (x=?)}
nLoop 1 nVisit 3 nEst 524288.0 zName c1 zExplain {SCAN TABLE c1}
nLoop 1 nVisit 3 nEst 262144.0 zName c1 zExplain {SCAN TABLE c1}
}
#-------------------------------------------------------------------------