Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
analyze.c
691b44a
Back out the "low-quality index" query planner hack of check-in
by drh
· 9 weeks ago
c071c47
Tamp down various harmless compiler warnings. Use "int" in places instead
by drh
· 5 months ago
ef86b94
Code changes that make it easier to prove that no 32-bit integer overflows
by drh
· 5 months ago
7fd936e
Further reduction in the amount of memset() needed to initialize the Parse
by drh
· 5 months ago
fe15ed4
Fixes from code inspection:
by drh
· 9 months ago
b812341
Ensure that memory allocations in ANALYZE are always 8-byte aligned in order
by drh
· 11 months ago
a592883
Add extra assert() statements to the fixes on this branch.
by dan
· 1 year ago
alignment-fixes
09a71d8
Add in a VdbeCoverage() macro needed by STAT4 that should have been part of
by drh
· 1 year, 5 months ago
e7bdb21
If a table has one or more rows and it has a partial index has zero rows,
by drh
· 1 year, 5 months ago
optimize-after-shrink
4cfc19f
Remove some unnecessary computations from ANALYZE so that ANALYZE runs with
by drh
· 1 year, 7 months ago
avoid-low-quality-indexes
4ccf707
Extra steps taken to avoid using low-quality indexes in a query plan.
by drh
· 1 year, 7 months ago
04b9247
Extra space to prevent a buffer overread on corrupt STAT4 records.
by drh
· 2 years, 1 month ago
790adfd
Do not overflow the Index.aSample[] array if the same index appears in
by drh
· 2 years, 3 months ago
8777bdb
Do not even attempt to load the sqlite_stat4 table if the use of STAT4 is
by drh
· 2 years, 3 months ago
223c6b4
The sqlite_stat4.idx field is case insensitive. It should work even if
by drh
· 2 years, 3 months ago
a9fd5f2
New #ifdefs to omit code that is unused except under STAT4.
by drh
· 2 years, 4 months ago
aa9192e
Improvements to register allocation, especially in the ANALYZE command.
by drh
· 2 years, 4 months ago
418f947
Disable factoring of constant values during ANALYZE. This is a temporary
by drh
· 2 years, 4 months ago
52786ec
Add the tag-20230325-1 comment that was omitted from the prior check-in.
by drh
· 2 years, 4 months ago
4924e82
The fix at [2bf5413dc2c19d5f] was incomplete in that it failed to clear
by drh
· 2 years, 4 months ago
28fe02c
Fix byte-code register allocation in ANALYZE for STAT4 when there multiple
by drh
· 2 years, 4 months ago
45ae9d6
New assert() statements to verify that sqlite3DeleteIndexSamples() is always
by drh
· 2 years, 6 months ago
4bc1cc1
This experimental branch attempts to use columns for an index-on-expression
by drh
· 2 years, 9 months ago
6099592
When computing STAT1 values using ANALYZE, if a ratio comes out to be between
by drh
· 3 years, 3 months ago
c45924e
Remove unused P4 types on the Opcode object. Saves a few bytes of code
by drh
· 3 years, 5 months ago
9966621
Use the IsOrdinaryTable() macro, not a test of tnum, to distinguish tables
by drh
· 3 years, 9 months ago
5bf4715
Add the sqlite3ResultStrAccum() internal interface to simplify the
by drh
· 3 years, 10 months ago
e85e1da
Fix harmless compiler warnings.
by drh
· 3 years, 10 months ago
ebd1ff6
Ensure that sqlite_stat1 and sqlite_stat4 are ordinary tables (not views or
by drh
· 3 years, 10 months ago
cf9d36d
Refactor field names in the Column object, zCnName and zCnColl, to make them
by drh
· 4 years ago
4038696
Sometimes it makes sense to do a full table scan rather than try to use
by drh
· 4 years, 9 months ago
abc3815
Continuing work toward supporting unsigned 32-bit page numbers.
by drh
· 5 years ago
e557b01
Improved VDBE comments on the ANALYZE code generator. This change
by drh
· 5 years ago
3d42fb7
Fix harmless compiler warnings.
by drh
· 5 years ago
f72981f
Add a missing VdbeCoverage() macro.
by drh
· 5 years ago
approximate-analyze
31e3744
Simple fixes to PRAGMA analysis_limit.
by drh
· 5 years ago
49a76a8
Add "PRAGMA analysis_limit=N;" to limit the number of rows visited by
by drh
· 5 years ago
78a50d7
Fix the build for when SQLITE_ENABLE_STAT4 is defined.
by drh
· 5 years ago
59a8cb7
Add the SQLITE_ANALYZE_LIMIT compile-time option (expected to be temporary)
by drh
· 5 years ago
9f27463
Provide an estimated row count to stat_init() for STAT1 analysis.
by drh
· 5 years ago
e50478d
Remove the SQLITE_OMIT_BTREECOUNT option. Btree count is required.
by drh
· 5 years ago
dc4a168
Improved bytecode comments for the ANALYZE command.
by drh
· 5 years ago
9d33d9e
Background work for experiments trying to enhance ANALYZE so that it runs
by drh
· 5 years ago
afa1eca
Cleaner separation of the STAT4-specific logic in the implementation of ANALYZE.
by drh
· 5 years ago
920cf59
Simplify the bytecode generation for SQL function calls such that the
by drh
· 6 years ago
b9bcf7c
Refactor names of column index transformation functions, for clarity.
by drh
· 6 years ago
31f6962
Performance optimization to the lookaside-memory disabling mechanism.
by drh
· 6 years ago
725dd72
Ensure that the optional "sz=N" parameter that can be manually added to the
by drh
· 6 years ago
5eae1d1
More legacy STAT3 code removed.
by drh
· 6 years ago
omit-stat3
175b8f0
Remove support for STAT3. The sqlite_stat3 tables are ignored, if they
by drh
· 6 years ago
ec4ccdb
A new implementation of sqlite3VdbeMakeLabel() is faster and makes fewer
by drh
· 7 years ago
72d03a6
Change the SQLITE_Stat34 bit of the optimization test-control so that it
by drh
· 7 years ago
6ccbd27
Further improvements to bytecode branch testing. Fix cases where the
by drh
· 7 years ago
980cf25
Update Makefile.msc to include window.c in the build.
by dan
· 7 years ago
86fb6e1
Start of experimental implementation of SQL window functions. Does not yet work.
by dan
· 7 years ago
cedfecf
Fix the ANALYZE command so that it will process tables whose names begin
by drh
· 7 years ago
3739f29
Fix a problem in the sessions module with logging sqlite_stat1 rows for which
by dan
· 8 years ago
614efe2
Experimental change to include changes made to the sqlite_stat1 table in
by dan
· 8 years ago
49297c8
Fix an incorrect assert in the ANALYZE logic for STAT4 on WITHOUT ROWID tables.
by drh
· 8 years ago
bce0414
Do a single OP_Expire at the very end of "PRAGMA optimize", and omit the
by drh
· 8 years ago
114ce7a
Merge integrity_check and other improvements from trunk.
by drh
· 8 years ago
24d772c
Move a branch condition in analyze.c inside an #ifdef SQLITE_ENABLE_STAT4 block.
by dan
· 8 years ago
bd1d270
Improve the performance of ANALYZE when SQLITE_ENABLE_STAT4 is defined.
by dan
· 8 years ago
4a54bb5
Add the OP_SqlExec opcode and use it to implement "PRAGMA analyze_as_needed",
by drh
· 8 years ago
dfe11ba
Fix errors in the table resize detection.
by drh
· 8 years ago
182e84c
In the analyze_as_needed pragma, avoid running unnecessary OP_LoadAnalysis
by drh
· 8 years ago
5e98e83
The analyze_as_needed pragma now responds to table size growth and will
by drh
· 8 years ago
72052a7
Add the "PRAGMA analyze_as_needed" command.
by drh
· 8 years ago
33bec3f
Enhance the Index and Table objects so that they remember if their stats come
by drh
· 8 years ago
35497fc
Improved comments on the statGet() implementation in ANALYZE. No changes
by drh
· 8 years ago
785d8ed
In the STAT4 computations, ensure that the aAvgEq values do not go negative.
by drh
· 9 years ago
895decf
Avoid passing NULL pointers to memcmp() or memcpy(), even when the
by dan
· 9 years ago
69c3382
Rename the Db.zName field to Db.zDbSName to make it more descriptive and to
by drh
· 9 years ago
51b55a3
Fix harmless compiler warnings.
by drh
· 9 years ago
f6661a8
When reading an sqlite_stat1 table with missing entries for some indexes,
by drh
· 9 years ago
32c4990
Add the SQLITE_NOMEM_BKPT macro to enhance the ability to debug OOM errors.
by drh
· 9 years ago
80738d9
Improvements to the application-defined function mechanism so that it is
by drh
· 9 years ago
many-app-functions
fad3039
Enhance ability to debug out-of-memory errors.
by mistachkin
· 9 years ago
575fad6
Add the slightly faster sqlite3DbMallocRawNN(db,n) routine for the majority
by drh
· 9 years ago
oom-handling
4a642b6
Improvements to the way that OOM errors are processed.
by drh
· 9 years ago
9b34abe
Use sqlite3VdbeAddOp4() rather than a separate sqlite3VdbeChangeP4() call, for
by drh
· 10 years ago
2d80151
Combine the xFunc and xStep pointers of the FuncDef object into a single
by drh
· 10 years ago
8b4a94a
Add the sqlite3_strlike() interface, which might be useful for implementing
by drh
· 10 years ago
vtab-like-operator
34de0c8
Merge enhancements from trunk.
by drh
· 10 years ago
076e85f
Add the sqlite3VdbeLoadString() and sqlite3VdbeMultiLoad() routines to help
by drh
· 10 years ago
2991ba0
Add the sqlite3VdbeAddGoto(v,i) routine as a shorthand for
by drh
· 10 years ago
1f9ca2c
Add code to maintain indexes with expression arguments across DELETE, INSERT,
by drh
· 10 years ago
9c7c913
Cache the sqlite3_context structure in the P4 operand of VDBE programs
by drh
· 10 years ago
4eed053
Fix a memory leak caused by duplicate entries in the sqlite_stat1 table.
by dan
· 10 years ago
4081d5d
Add logic to releasetest.tcl that detects -fsanitize=undefined errors.
by drh
· 11 years ago
5cca94e
Fix a buffer overread that might occur in analyze.c if SQLITE_ENABLE_STAT4 was defined.
by dan
· 11 years ago
0da10d32
Always reinitialized the Index.bUnordered and Index.noSkipscan flags before
by drh
· 11 years ago
664f85d
Add an ALWAYS on an always-true branch in wal.c.
by drh
· 11 years ago
f9df2fb
Adding the "noskipscan" token to an sqlite_stat1.stat field prevents an
by drh
· 11 years ago
noskipscan-token
d7d7147
Change the 0x800 bit of SQLITE_TESTCTRL_OPTIMIZATIONS so that it disables
by drh
· 11 years ago
9f07cf7
Take steps to avoid misestimating range query costs based on STAT4 data
by drh
· 11 years ago
85d117b
Remove unreachable branches in decodeIntArray() when compiling without
by drh
· 11 years ago
75b170b
Avoid leaking Index.aiRowEst memory if an OOM causes a rollback which deletes
by drh
· 11 years ago
0c1a18b
Fix a division-by-zero error that might occur if the sqlite_stat1 table is corrupt.
by dan
· 11 years ago
43085d7
Improve the accuracy of the estimates used when searching an index for values not present in any stat4 samples under some circumstances.
by dan
· 11 years ago
Next »