SQLite VDBE opcode

CursorHint

Provide a hint to cursor P1.

An example

None of the 178 statements we compiled against the sample database with SQLite 3.54.1 uses CursorHint. Some opcodes appear only in debugging builds or with particular compile-time options, and some only in rare query plans.

What the SQLite documentation says

Provide a hint to cursor P1.

If P4 is of type P4_EXPR, then the hint is that the cursor need only return rows that satisfy the Expr in P4. TK_REGISTER terms in the P4 expression refer to values currently held in registers. TK_COLUMN terms in the P4 expression refer to columns in the b-tree to which cursor P1 is pointing. P3 is ignore in this case.

Or, if P4 is P4_NOTUSED, then the hint is that cursor P1 is an index cursor used to drive table cursor P3. In other words, that this VM may execute DeferredSeek instructions to lazily position P3 based on current position of P1.

From sqlite.org's list of opcodes for SQLite 3.54.1, in the public domain. Opcodes are not a stable interface and change between releases.

← CreateBtree · CursorLock →