sqlite: patch performance regression
more info: https://sqlite.org/src/info/aa6bd6dff751223e https://lore.kernel.org/distributions/87wn35bod7.fsf@gentoo.org/T/
This commit is contained in:
parent
f63b537cdd
commit
9802ddbba7
2 changed files with 20 additions and 1 deletions
19
srcpkgs/sqlite/patches/3.41-perf-regression.patch
Normal file
19
srcpkgs/sqlite/patches/3.41-perf-regression.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
Patch-Source: https://sqlite.org/src/info/aa6bd6dff751223e
|
||||||
|
https://sqlite.org/forum/forumpost/3a180ba0d4
|
||||||
|
|
||||||
|
Can be removed in 3.42.x
|
||||||
|
|
||||||
|
diff --git a/sqlite3.c b/sqlite3.c
|
||||||
|
index 947a154..bf9ce16 100644
|
||||||
|
--- a/sqlite3.c
|
||||||
|
+++ b/sqlite3.c
|
||||||
|
@@ -143420,9 +143420,6 @@ static int pushDownWhereTerms(
|
||||||
|
if( pSel->pWin ) return 0; /* restriction (6b) */
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
- if( compoundHasDifferentAffinities(pSubq) ){
|
||||||
|
- return 0; /* restriction (9) */
|
||||||
|
- }
|
||||||
|
if( notUnionAll ){
|
||||||
|
/* If any of the compound arms are connected using UNION, INTERSECT,
|
||||||
|
** or EXCEPT, then we must ensure that none of the columns use a
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'sqlite'
|
# Template file for 'sqlite'
|
||||||
pkgname=sqlite
|
pkgname=sqlite
|
||||||
version=3.41.2
|
version=3.41.2
|
||||||
revision=1
|
revision=2
|
||||||
_amalgamationver=$(printf "%d%02d%02d00\n" ${version//./ })
|
_amalgamationver=$(printf "%d%02d%02d00\n" ${version//./ })
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-threadsafe --enable-dynamic-extensions --enable-fts5"
|
configure_args="--enable-threadsafe --enable-dynamic-extensions --enable-fts5"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue