From: drh <> Date: Wed, 29 May 2024 15:08:20 +0000 (+0000) Subject: Use a heuristic of artifically lowering the cost of fact tables in a X-Git-Tag: version-3.47.0~370 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c327bd0354f253d105f029d5b81590342236838d;p=thirdparty%2Fsqlite.git Use a heuristic of artifically lowering the cost of fact tables in a star-schema query in order to prevent plans where the fact tables are in outer loops from being trimmed by the path limiter. This helps to generate better (faster) query plans in those particular cases. FossilOrigin-Name: 38db9b5c83dfb3021333365b2f6b11e3b54afd7033e9f4dadf0c0df1d4b082d8 --- c327bd0354f253d105f029d5b81590342236838d diff --cc manifest index ada3a3fbf8,87b3f96cd0..21fc713357 --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C [forum:/forumpost/c9b8d923d5|Fix\ssqldiff\sout-of-bounds\schar\sclassification\serror\smentioned\sin\sthe\sforum.] - D 2024-05-29T03:35:40.577 -C Change\san\sassert()\s(incorrectly)\sadded\sby\sthe\sprevious\scheck-in\sinto\sa\ntestcase(). -D 2024-05-29T14:32:22.539 ++C Use\sa\sheuristic\sof\sartifically\slowering\sthe\scost\sof\sfact\stables\sin\sa\nstar-schema\squery\sin\sorder\sto\sprevent\splans\swhere\sthe\sfact\stables\sare\nin\souter\sloops\sfrom\sbeing\strimmed\sby\sthe\spath\slimiter.\s\sThis\shelps\sto\ngenerate\sbetter\s(faster)\squery\splans\sin\sthose\sparticular\scases. ++D 2024-05-29T15:08:20.872 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724 @@@ -2193,8 -2194,8 +2194,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 273504b74cb9c3cfa2497a1339e706a1f2d2c3ce81b23a16beb47da9292535e0 - R 3d29219632b829c340a5b12dd13b21a4 - U larrybr - Z ea2c1f12bb191533813291014e73a3d6 -P bdab69641df4704f7b080cf7841bbf39da9160222f7b664a79ed662b70ca7b0a -R 2a6ba38d83a3c0f2b4854f963fadd689 ++P b31933d87301bd93763f0923e0ce06a183700875e6107c9f185faffbd99797d9 5e64b541d175c10a5df67ef3419ecd74fcb51392af5f5458973cea85ee6a3246 ++R a7284e1bb0965e7b34781f7fb4e63af1 ++T +closed 5e64b541d175c10a5df67ef3419ecd74fcb51392af5f5458973cea85ee6a3246 + U drh -Z bf4a72e79f5764478d8942ced8c501c4 ++Z 539ceed68c0106ac122fd205cce60827 # Remove this line to create a well-formed Fossil manifest. diff --cc manifest.uuid index 9d57e9af9c,4b2f92a750..0234c23118 --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - b31933d87301bd93763f0923e0ce06a183700875e6107c9f185faffbd99797d9 -5e64b541d175c10a5df67ef3419ecd74fcb51392af5f5458973cea85ee6a3246 ++38db9b5c83dfb3021333365b2f6b11e3b54afd7033e9f4dadf0c0df1d4b082d8