mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Do not use a Bloom filter if any outer loop lacks STAT1 data, since without
STAT1 data, the query planner cannot make an accurate determination of whether or not a Bloom filter will be useful. This fixes the problem reported by [forum:/forumpost/56de336385|forum post 56de336385]. FossilOrigin-Name: e6ab96bd0b9efc51fd703bf7e92b079943ad9a3b92183d434adc11fb7d238afb
This commit is contained in:
@ -287,6 +287,8 @@ do_eqp_test 7.2 {
|
||||
|
||||
do_execsql_test 7.3 {
|
||||
CREATE TABLE t3(x);
|
||||
INSERT INTO t3(x) VALUES(1);
|
||||
CREATE INDEX t3x ON t3(x);
|
||||
|
||||
CREATE TABLE t4(x, y, z);
|
||||
CREATE INDEX t4xy ON t4(x, y);
|
||||
@ -296,6 +298,8 @@ do_execsql_test 7.3 {
|
||||
INSERT INTO t4 SELECT i/10, i, i FROM s;
|
||||
|
||||
ANALYZE;
|
||||
UPDATE sqlite_stat1 SET stat='1000000 10 1' WHERE idx='t3x';
|
||||
ANALYZE sqlite_schema;
|
||||
}
|
||||
|
||||
do_eqp_test 7.4 {
|
||||
|
Reference in New Issue
Block a user