SQLITE_STMTSTATUS_FULLSCAN_STEP(3)

SQLITE_STMTSTATUS_FULLSCAN_STEP(3) | Library Functions Manual | SQLITE_STMTSTATUS_FULLSCAN_STEP(3)

# NAME

`SQLITE_STMTSTATUS_FULLSCAN_STEP`, `SQLITE_STMTSTATUS_SORT`, `SQLITE_STMTSTATUS_AUTOINDEX`, `SQLITE_STMTSTATUS_VM_STEP`, `SQLITE_STMTSTATUS_REPREPARE`, `SQLITE_STMTSTATUS_RUN`, `SQLITE_STMTSTATUS_MEMUSED` —
Status Parameters for prepared statements

# SYNOPSIS

`#define SQLITE_STMTSTATUS_FULLSCAN_STEP`
`#define SQLITE_STMTSTATUS_SORT`
`#define SQLITE_STMTSTATUS_AUTOINDEX`
`#define SQLITE_STMTSTATUS_VM_STEP`
`#define SQLITE_STMTSTATUS_REPREPARE`
`#define SQLITE_STMTSTATUS_RUN`
`#define SQLITE_STMTSTATUS_MEMUSED`

# DESCRIPTION

These preprocessor macros define integer codes that name counter values associated with the sqlite3_stmt_status() interface. The meanings of the various counters are as follows:

SQLITE_STMTSTATUS_FULLSCAN_STEP
  This is the number of times that SQLite has stepped forward in a table as part of a full table scan. Large numbers for this counter may indicate opportunities for performance improvement through careful use of indices.
SQLITE_STMTSTATUS_SORT
  This is the number of sort operations that have occurred. A non-zero value in this counter may indicate an opportunity to improvement performance through careful use of indices.
SQLITE_STMTSTATUS_AUTOINDEX
  This is the number of rows inserted into transient indices that were created automatically in order to help joins run faster. A non-zero value in this counter may indicate an opportunity to improvement performance by adding permanent indices that do not need to be reinitialized each time the statement is run.
SQLITE_STMTSTATUS_VM_STEP
  This is the number of virtual machine operations executed by the prepared statement if that number is less than or equal to 2147483647. The number of virtual machine operations can be used as a proxy for the total work done by the prepared statement. If the number of virtual machine operations exceeds 2147483647 then the value returned by this statement status code is undefined.
SQLITE_STMTSTATUS_REPREPARE
  This is the number of times that the prepare statement has been automatically regenerated due to schema changes or change to bound parameters that might affect the query plan.
SQLITE_STMTSTATUS_RUN
  This is the number of times that the prepared statement has been run. A single "run" for the purposes of this counter is one or more calls to sqlite3_step() followed by a call to sqlite3_reset(). The counter is incremented on the first sqlite3_step() call of each cycle.
SQLITE_STMTSTATUS_MEMUSED
  This is the approximate number of bytes of heap memory used to store the prepared statement. This value is not actually a counter, and so the resetFlg parameter to sqlite3_stmt_status() is ignored when the opcode is SQLITE_STMTSTATUS_MEMUSED.

# SEE ALSO

sqlite3_reset(3), sqlite3_step(3), sqlite3_stmt_status(3)

December 19, 2018 | NetBSD 10.1