]> git.ipfire.org Git - thirdparty/sqlite.git/commit
When doing an UPDATE or DELETE using a multi-column index where only a few
authordan <dan@noemail.net>
Mon, 17 Aug 2020 21:03:53 +0000 (21:03 +0000)
committerdan <dan@noemail.net>
Mon, 17 Aug 2020 21:03:53 +0000 (21:03 +0000)
commit296f59ae54479bcb43ef93b98d47dd96b03f4d52
tree87f1011627ba1606a60073150a4a7ce6027cff8b
parent9539a0963406c9f77185af8c3197319c592829e0
When doing an UPDATE or DELETE using a multi-column index where only a few
of the earlier columns of the index are useful for the index lookup,
postpone doing the main table seek until after all WHERE clause constraints
have been evaluated, in case those constraints can be covered by unused
later terms of the index, thus avoiding unnecessary main table seeks.

FossilOrigin-Name: 0ecda433718f0bc973078099b19955dcfb0dcd15b68455e53156ac708e9d92e5
12 files changed:
ext/rtree/rtreefuzz001.test
manifest
manifest.uuid
src/delete.c
src/sqliteInt.h
src/update.c
src/vdbe.c
src/vdbeInt.h
src/vdbeaux.c
src/where.c
src/whereInt.h
src/wherecode.c