1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +03:00

Try to take into account the cost of inner loops when selecting which table

of a join to use for the outer loop.

FossilOrigin-Name: 942556342a332b04a11169bb04f387d741ef9488
This commit is contained in:
drh
2012-11-09 17:59:26 +00:00
parent 70cb28fc0e
commit 782d68a4cd
7 changed files with 265 additions and 59 deletions

View File

@@ -1967,6 +1967,7 @@ struct WhereLevel {
} in; /* Used when plan.wsFlags&WHERE_IN_ABLE */
Index *pCovidx; /* Possible covering index for WHERE_MULTI_OR */
} u;
double rOptCost; /* "Optimal" cost for this level */
/* The following field is really not part of the current level. But
** we need a place to cache virtual table index information for each