Clarification to a comment in where.c. No code changes.
FossilOrigin-Name: 04507c176330a06b09dcafa35ec0ca7498f5ace7
This commit is contained in:
+2
-4
@@ -5105,10 +5105,8 @@ WhereInfo *sqlite3WhereBegin(
|
||||
** strategies were found by the first iteration. This second iteration
|
||||
** is used to search for the lowest cost scan overall.
|
||||
**
|
||||
** Previous versions of SQLite performed only the second iteration -
|
||||
** the next outermost loop was always that with the lowest overall
|
||||
** cost. However, this meant that SQLite could select the wrong plan
|
||||
** for scripts such as the following:
|
||||
** Without the optimal scan step (the first iteration) a suboptimal
|
||||
** plan might be chosen for queries like this:
|
||||
**
|
||||
** CREATE TABLE t1(a, b);
|
||||
** CREATE TABLE t2(c, d);
|
||||
|
||||
Reference in New Issue
Block a user