From 3526319b483fac1aba4dd19c93ebd61aa2663b97 Mon Sep 17 00:00:00 2001 From: drh Date: Tue, 22 Jul 2014 20:02:19 +0000 Subject: 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 --- src/vdbeInt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vdbeInt.h') diff --git a/src/vdbeInt.h b/src/vdbeInt.h index d629802a6..f541aa717 100644 --- a/src/vdbeInt.h +++ b/src/vdbeInt.h @@ -76,6 +76,7 @@ struct VdbeCursor { Bool useRandomRowid:1;/* Generate new record numbers semi-randomly */ Bool isTable:1; /* True if a table requiring integer keys */ Bool isOrdered:1; /* True if the underlying table is BTREE_UNORDERED */ + Pgno pgnoRoot; /* Root page of the open btree cursor */ sqlite3_vtab_cursor *pVtabCursor; /* The cursor for a virtual table */ i64 seqCount; /* Sequence counter */ i64 movetoTarget; /* Argument to the deferred sqlite3BtreeMoveto() */ -- cgit v1.2.3