From: dan Date: Mon, 25 Sep 2023 17:46:02 +0000 (+0000) Subject: In partial index scans, if the WHERE clause implies a constant value for a table... X-Git-Tag: version-3.44.0~182 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47b427423d7b2206b44f2b29f8c21df0d4a6eabb;p=thirdparty%2Fsqlite.git In partial index scans, if the WHERE clause implies a constant value for a table column, replace occurences of that table column with the constant. This increases the likelihood of the partial index being a covering index. FossilOrigin-Name: 8d4160910d6512469cb0a060b89c2509dde1c8e33d9358034d7fb39cd494eabe --- 47b427423d7b2206b44f2b29f8c21df0d4a6eabb diff --cc manifest index 921d0e421a,f85f89e245..074e7e215b --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C Enable\s-Wall\sfor\sthe\scompiler\son\s--enable-debug\sbuilds. - D 2023-09-25T14:20:07.380 -C Another\svery\sminor\stweak\sto\scode\son\sthis\sbranch\sto\ssave\scycles. -D 2023-09-25T17:21:53.474 ++C In\spartial\sindex\sscans,\sif\sthe\sWHERE\sclause\simplies\sa\sconstant\svalue\sfor\sa\stable\scolumn,\sreplace\soccurences\sof\sthat\stable\scolumn\swith\sthe\sconstant.\sThis\sincreases\sthe\slikelihood\sof\sthe\spartial\sindex\sbeing\sa\scovering\sindex. ++D 2023-09-25T17:46:02.262 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724 @@@ -2121,8 -2122,8 +2122,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 5655c51f103c6dfade799ffb5ca2eb21b4360ada598741f373c952ae732535aa - R 1fdce7fde8f7912c67e4883b280923da - U drh - Z 0b02ef336b3df456883148d78452b947 -P f80dc64483a54a488e507da140836261ae1b864577cc95d8e869919d5a25e73c -R 59ae5630a4db4ae46ec6891560befc86 ++P 63a7b521390001939909d43d908af78f7df7cb92272d2b74f038da918c2bef05 2c805dc68112db7f06aea56a731a33e046e876851bdda3e725ba96f6da1bf2ee ++R 6be385139a174b4b0100f8c1bdb9ec34 ++T +closed 2c805dc68112db7f06aea56a731a33e046e876851bdda3e725ba96f6da1bf2ee + U dan -Z 8b429c87204b6a5d38a57baa10ce58aa ++Z 7fdbd4c7ea8abf3c4a48b87d977519f6 # Remove this line to create a well-formed Fossil manifest. diff --cc manifest.uuid index b8d5e01fa4,4fb2645b3c..2213ddb52f --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - 63a7b521390001939909d43d908af78f7df7cb92272d2b74f038da918c2bef05 -2c805dc68112db7f06aea56a731a33e046e876851bdda3e725ba96f6da1bf2ee ++8d4160910d6512469cb0a060b89c2509dde1c8e33d9358034d7fb39cd494eabe