aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <>2024-01-01 17:48:02 +0000
committerdrh <>2024-01-01 17:48:02 +0000
commit4ccf707c6ebd294f1ecf6e9f304bd083fbc3a71d (patch)
tree2f10eef71da620ee91e338843e5e6cfbe4e8453e /src/sqliteInt.h
parent307f326ba3d448c55abd04e241d46af903667653 (diff)
downloadsqlite-4ccf707c6ebd294f1ecf6e9f304bd083fbc3a71d.tar.gz
sqlite-4ccf707c6ebd294f1ecf6e9f304bd083fbc3a71d.zip
Extra steps taken to avoid using low-quality indexes in a query plan.
This branch accomplishes the same end as the nearby enhanced-stat1 branch, but with much less change and hence less risk. FossilOrigin-Name: c030e646262fee43a59b45fdc1630d972f8bf88ac3c142b6bdaf4cbb36695a4f
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 75ac749c0..79a36e060 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -2766,6 +2766,7 @@ struct Index {
unsigned isCovering:1; /* True if this is a covering index */
unsigned noSkipScan:1; /* Do not try to use skip-scan if true */
unsigned hasStat1:1; /* aiRowLogEst values come from sqlite_stat1 */
+ unsigned bLowQual:1; /* sqlite_stat1 says this is a low-quality index */
unsigned bNoQuery:1; /* Do not use this index to optimize queries */
unsigned bAscKeyBug:1; /* True if the bba7b69f9849b5bf bug applies */
unsigned bHasVCol:1; /* Index references one or more VIRTUAL columns */