From: drh <> Date: Wed, 19 Oct 2022 10:56:05 +0000 (+0000) Subject: If a query uses an index where one or more of the columns of the index is X-Git-Tag: version-3.40.0~134 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=805055f734b1dde892dfeb4c66888b448fb25cff;p=thirdparty%2Fsqlite.git If a query uses an index where one or more of the columns of the index is an expression or a virtual column, and if the corresponding expression is used elsewhere in the query, then strive to read the value of the expression out of the index, rather than recomputing it. This is the "Indexed Expression Optimizations". FossilOrigin-Name: 2435112867fbd7b6ebb7f2c2b9da57cdf1e23fab6c2869870b66133a9f9faedc --- 805055f734b1dde892dfeb4c66888b448fb25cff diff --cc manifest index 6e9ac6d0cc,d02cffb63f..6cc52db63f --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C Update\sthe\swasm/js\s'push'\srule\sto\saccount\sfor\sthis\smorning's\schanges. - D 2022-10-19T07:51:12.703 -C If\sa\svirtual\scolumn\swhose\svalue\sis\sconstant\sgets\sindexed,\sdo\snot\sinclude\nthat\scolumn\sin\sthe\sIndexedExpr\slist.\ndbsqlfuzz\s59ac17a99b9a5c4930ee71cc153c9428a0c0e794 -D 2022-10-18T22:37:07.303 ++C If\sa\squery\suses\san\sindex\swhere\sone\sor\smore\sof\sthe\scolumns\sof\sthe\sindex\sis\nan\sexpression\sor\sa\svirtual\scolumn,\sand\sif\sthe\scorresponding\sexpression\sis\nused\selsewhere\sin\sthe\squery,\sthen\sstrive\sto\sread\sthe\svalue\sof\sthe\sexpression\nout\sof\sthe\sindex,\srather\sthan\srecomputing\sit.\s\sThis\sis\sthe\n"Indexed\sExpression\sOptimizations". ++D 2022-10-19T10:56:05.300 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724 @@@ -2036,8 -2036,8 +2036,9 @@@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a9 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 - P 9c85835f6f50eb3b1a2b89c817816335743f04440c48bfa05aa89ec519cc0d51 - R a9a6139814485c7e9bf06cc091e7f39f - U stephan - Z dc0807c91bdea09652a27e395e493617 -P bf6d837fddbf74d5b3f40ad01ea4564edfac00b651d6f3f0e996cc5dc18bb06c -R 4b10826dbdabc43e45460aaf0b235a26 ++P c4a0f745fbaf6f950810f92765cbe66dde66e226b78ec5dd9017473bf4c9c268 c21eb903f06a16d4fafa5f895be08414fa58e6a91c148030aec8676b40c2d66d ++R 099250bc6a2990d79990297a12d3039b ++T +closed c21eb903f06a16d4fafa5f895be08414fa58e6a91c148030aec8676b40c2d66d + U drh -Z be3c5dec512d6ceddfe2e2950bc8e7bf ++Z 09e5a4ee4f8f7eb5b6479975bdf31b92 # Remove this line to create a well-formed Fossil manifest. diff --cc manifest.uuid index a16b04e95f,5b7598c5ff..a7c20b191b --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - c4a0f745fbaf6f950810f92765cbe66dde66e226b78ec5dd9017473bf4c9c268 -c21eb903f06a16d4fafa5f895be08414fa58e6a91c148030aec8676b40c2d66d ++2435112867fbd7b6ebb7f2c2b9da57cdf1e23fab6c2869870b66133a9f9faedc