aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-07-22 20:02:19 +0000
committerdrh <drh@noemail.net>2014-07-22 20:02:19 +0000
commit3526319b483fac1aba4dd19c93ebd61aa2663b97 (patch)
treebdbc66cef06da1ddfa50b7bc274542cd14bf6b11 /src/sqliteInt.h
parenta45fdc7b1e3faabdd579e89415db4551d4d38005 (diff)
downloadsqlite-3526319b483fac1aba4dd19c93ebd61aa2663b97.tar.gz
sqlite-3526319b483fac1aba4dd19c93ebd61aa2663b97.zip
Add the OP_ReopenIdx opcode that works like OP_OpenRead except that it becomes
a no-op if the cursor is already open on the same index. Update the OR-optimization logic to make use of OP_ReopenIdx in order to avoid unnecessary cursor open requests sent to the B-Tree layer. FossilOrigin-Name: 77f412caf0192d3e7fecb377d6d72123d8b64424
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 8f256d52f..7edc04ca4 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -2136,6 +2136,7 @@ struct SrcList {
#define WHERE_DISTINCTBY 0x0200 /* pOrderby is really a DISTINCT clause */
#define WHERE_WANT_DISTINCT 0x0400 /* All output needs to be distinct */
#define WHERE_SORTBYGROUP 0x0800 /* Support sqlite3WhereIsSorted() */
+#define WHERE_REOPEN_IDX 0x1000 /* Try to use OP_ReopenIdx */
/* Allowed return values from sqlite3WhereIsDistinct()
*/