Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
where.c
44a0367
Merge the latest trunk enhancements and fixes into the empty-table-optimizations branch.
by drh
· 12 days ago
4fe1ac8
Simplifications to the row-value IN operator logic. Do not let the query
by drh
· 12 days ago
redundant-idx-columns
4aacd1e
Back out the fix at [ba7d5bad32ad6aac] because it does not always work and because
by drh
· 12 days ago
1b62720
Improve the early-termination optimization so that it works in queries
by drh
· 2 weeks ago
aa54d7a
Merge in the exists-to-join optimization that has been modified
by drh
· 2 weeks ago
eb27359
Fix VDBE coverage
by drh
· 2 weeks ago
33f3273
Early exit if one of the inner loops of a 3-way or larger join is an
by drh
· 2 weeks ago
3d21dcc
More aggressive optimization of addrHalt for RIGHT JOIN.
by drh
· 3 weeks ago
ba56f70
Compute WhereLevel.addrBrk and .addrHalt early so that those labels can be
by drh
· 3 weeks ago
d3a13f7
Improved debugging output for the transitive constraint optimization.
by drh
· 5 weeks ago
b3bcf48
Do not use a partial index if the truth of the WHERE clause does not depend
by drh
· 7 weeks ago
silly-partial-indexes
691b44a
Back out the "low-quality index" query planner hack of check-in
by drh
· 9 weeks ago
0243ca8
Correctly handle the case of a multi-column UNIQUE constraint that contains
by drh
· 3 months ago
483e118
Improved estimate on the number of output rows in a recursive common table expression
by drh
· 3 months ago
cebf06c
Make use of the flexible-array feature of C99, when available, to try to
by drh
· 4 months ago
cc803b2
The number of declared columns in an index is limited to SQLITE_LIMIT_COLUMN.
by drh
· 5 months ago
d8c37bb
Remove an ALWAYS() in the star-query heuristic that is sometimes false if you
by drh
· 6 months ago
2228567
Further comment improvements in the star-query heuristic. Add an ALWAYS()
by drh
· 6 months ago
fe54b7a
Small size and complexity reduction on the star-query heuristic. Improved
by drh
· 6 months ago
fb9e8e4
Revise the strategy used by the star-query heuristic: Instead of decreasing
by drh
· 6 months ago
0186ee1
Improvments to debug output on the star-query heuristic.
by drh
· 6 months ago
dea434e
Avoid calling computeMxChoice() after an OOM as some assert()s can fail
by drh
· 6 months ago
bc7e41c
Remove an incorrect ALWAYS() added in check-in [7cfbe14d199bb631].
by drh
· 6 months ago
d37412b
The debugging output for WhereLoop objects now shows cost
by drh
· 6 months ago
star-query-heuristic
f1c5830
Minor tweaks to the star-query detection and processing.
by drh
· 6 months ago
299fe02
When looking for star-queries, do not count a table as a dimension table
by drh
· 6 months ago
1519675
Fix a possible infinity loop in debugging-printf logic in the query planner.
by drh
· 6 months ago
3640785
Add an SQLITE_TESTCTRL_OPTIMIZATION mask that can disable the query planner
by drh
· 6 months ago
0f4de9b
Add a simple test case (many more are coming soon to TH3). Fix an obsolete
by drh
· 6 months ago
without-rowid-autoidx
50c4420
Add support for automatic query-time indexes on WITHOUT ROWID tables.
by drh
· 6 months ago
e432f2a
For the purpose of the query planner heuristic added by [38db9b5c83], a query
by drh
· 6 months ago
d1047fa
When choosing between two indexes with the same cost, pick the one with the
by drh
· 6 months ago
consider-idx-width
874b5e9
Variable names and conditional logic simplified in where.c. These
by drh
· 6 months ago
f1747f9
Remove a stray tab character from a comment.
by drh
· 6 months ago
ded37f3
Add comment to the columnIsGoodIndexCandidate() routine to record the results
by drh
· 7 months ago
9ee0251
Fix a harmless compiler warning that comes up when using SQLITE_DEBUG in
by drh
· 7 months ago
c29bc73
Add NEVER() around branches that seems to have been made obsolete by
by drh
· 7 months ago
60ad526
Enhancements to sqlite3ExprImpliesExpr() so that it realizes that
by drh
· 8 months ago
d4a65cf
Provide the sqlite3ShowWhereTerm() interface callable interactively from
by drh
· 8 months ago
3dbddc5
Changes to EXPLAIN QUERY PLAN to identify covering index plan that use indexes on expressions.
by dan
· 9 months ago
624cb96
An assortment of comment typo fixes discovered by aspell. Add several new words to tool/custom.txt. No code changes.
by stephan
· 9 months ago
14101a3
Experimental change to explain query plan to identify covering indexes on expressions.
by dan
· 9 months ago
eqp-covering-index-on-expr
c857b9e
Experimental change to allow expressions with subtypes to be read from indexes in situations where they are not used as function parameters.
by dan
· 10 months ago
7f0e0c7
New assert()s to help verify union access. No logic changes. Testing and
by drh
· 10 months ago
c4e84b7
A testcase() macro added to help ensure that the fix to the omit-noop-join
by drh
· 11 months ago
934e796
Ensure that the WhereInfo.revMask bitmap is adjusted when tables are removed
by drh
· 11 months ago
27095fc
Ensure that the WhereLoop.u.btree.pOrderBy field added by the
by drh
· 11 months ago
d55ab84
Add the SQLITE_INDEX_SCAN_HEX bit to the sqlite3_index_info.idxFlags bitmask.
by drh
· 11 months ago
9904d82
Improved comments on byte-code subroutine calls to materialize subqueries.
by drh
· 11 months ago
1521ca4
Refactor the SrcItem object so that information about subqueries is stored
by drh
· 11 months ago
b204b6a
Give unique names to fields in the SrcItem object, to facilitate analysis of
by drh
· 11 months ago
2ed4f50
Fix handling of COLLATE. Add test cases for the same. Code cleanup for
by drh
· 11 months ago
order-by-subquery
42f997d
Bug fix in the subquery ORDER BY propagator.
by drh
· 11 months ago
7431886
Improvements to the subquery ORDER BY decision algorithm. Fewer false-negatives.
by drh
· 11 months ago
235b5d0
If a subquery is materialized due to an ORDER BY and that ordering is useful
by drh
· 11 months ago
6010980
Fix behavior change in the offset() SQL function introduced by
by drh
· 11 months ago
8bc2647
Do not attempt to use a covering index based purely on columns-used
by drh
· 11 months ago
3a799b3
Fix to the previous checkin: The colUsed parameter should have high-order bit
by drh
· 12 months ago
0a83dac
Ensure the sqlite3_index_info.colUsed mask always includes the PK fields of WITHOUT ROWID vtabs in cases where they may be used.
by dan
· 12 months ago
vtab-pk-colUsed-fix
c855df6
Improved debugging output when using PRAGMA vdbe_addoptrace:
by drh
· 12 months ago
9175b18
Do not omit the ORDER BY clause from a recursive CTE just because the
by drh
· 1 year, 1 month ago
2fbb3fb
Disable the omit-noop-join optimization when there are 64 or more terms in
by drh
· 1 year, 1 month ago
4703b7d
Better optimize queries that use parameters in the LIMIT clause.
by drh
· 1 year, 1 month ago
7d24afa
Better handle WHERE terms that are common to two or more OR branches when planning virtual table queries.
by dan
· 1 year, 2 months ago
0507e6e
Be more aggressive about freeing memory associated with the
by drh
· 1 year, 2 months ago
xbestindex-or-terms
cadfdd4
Better handle WHERE terms that are common to two or more OR branches when planning virtual table queries.
by dan
· 1 year, 2 months ago
5ef9c89
Do not even try star-schema detection if the join has fewer than 5 tables,
by drh
· 1 year, 2 months ago
d72ca8f
Document the OP_Explain opcode. Add the WhereLoop.rRun value as P3 in
by drh
· 1 year, 2 months ago
1344b54
Ensure that the second pass call to wherePathSolver() always reports a positive
by drh
· 1 year, 2 months ago
1085eee
Change an assert() (incorrectly) added by the previous check-in into a
by drh
· 1 year, 2 months ago
star-schema
eccb42e
Small performance enhancement in wherePathSolver()
by drh
· 1 year, 2 months ago
bb24c75
Improvements to comments and debugging output.
by drh
· 1 year, 2 months ago
54bfc94
Remember the amount of the heuristic cost adjustment associated with
by drh
· 1 year, 2 months ago
c34ff12
Use a heuristic in the query planner to help it better cope with large
by drh
· 1 year, 2 months ago
05665e9
Tweaks to the query planner so that it is better able to deal with star
by drh
· 1 year, 2 months ago
efe474a
Increase the number of parallel paths in the query solver from 12 to 20.
by drh
· 1 year, 2 months ago
18970da
Improve the automatic-index decision such that no attempt is made to create
by drh
· 1 year, 2 months ago
38af125
Query planner tuning: Increase the maximum number of simultaneous solutions
by drh
· 1 year, 2 months ago
b23f92b
Avoid creating an automatic index on a column that is known to be not very
by drh
· 1 year, 2 months ago
auto-index-improvements
294cd87
Merge various enhancements that were being held on a branch until after the
by drh
· 1 year, 2 months ago
0462499
Fix the definition of sqlite3_vtab_distinct() such that return codes 2 and
by drh
· 1 year, 2 months ago
0445cd1
Fix a problem in where.c preventing SQLite from identifying some ONEROW scans, leading to (slightly) sub-optimal byte-code.
by dan
· 1 year, 2 months ago
fix-onerow-opt
2eb9adb
Assume that a function is able to return a subtype if either (1) it is itself
by drh
· 1 year, 3 months ago
func-rw-subtype
297472a
Have where.c ignore any plan from a virtual table that tries to use LIMIT/OFFSET without also using all WHERE constraints.
by dan
· 1 year, 3 months ago
14602ea
Fix a problem with vector IN operators used with an index where the affinities
by drh
· 1 year, 3 months ago
0309fb9
Fix an uninitialized variable problem in the new code on this branch.
by dan
· 1 year, 3 months ago
vector-in-fix
4f2f6c7
Extra robustness in the code that causes cursors to return NULL when they
by drh
· 1 year, 3 months ago
5749e1e
Slight performance improvement for the new code on this branch.
by dan
· 1 year, 3 months ago
d737fee
Fix a problem where an expression like (a, b) IN (SELECT ...) might not use an index on (a, b) if the affinities and collation sequences of "a" and "b" are not identical.
by dan
· 1 year, 3 months ago
0526db3
Correct handling of OUTER JOIN when on or the other operand is a subquery
by drh
· 1 year, 3 months ago
6951c49
Do not allow changes to sqlite3ExprIsTableConstant() that support pushdown of
by drh
· 1 year, 3 months ago
b411c4d
Check-in [a9657c87c53c1922] is wrong: the IndexedExpr.bMaybeNullRow flag is
by drh
· 1 year, 4 months ago
8ce73ce
Fix typos in comments. Provided ".wheretrace" debugging output for the
by drh
· 1 year, 4 months ago
interstage-heuristic
7f7d0b1
Add a heuristic in between the two solver() passes of the query planner that
by drh
· 1 year, 4 months ago
9352cfa
Improved comments in the query planner logic that computes the cost for a
by drh
· 1 year, 4 months ago
ed6c9aa
Fix an inaccuracy in automatic indexes that was exposed by the fix
by drh
· 1 year, 4 months ago
4a402b8
Improved "wheretrace" debugging output for calls to xBestIndex. No changes
by drh
· 1 year, 4 months ago
27a5ee8
Improvements to EXPLAIN QUERY PLAN output for multi-row VALUES claues.
by drh
· 1 year, 4 months ago
f696591
Enhance the sqlite3ExprIsConstant() function so that it recognizes
by drh
· 1 year, 4 months ago
815e055
Attempt to reduce the memory used by VALUES clauses in as many statements as possible, not just INSERT. This branch still has problems.
by dan
· 1 year, 4 months ago
Next »