MaxPgcnt
Try to set the maximum page count for database P1 to the value in P3.
An example
1 of the 178 statements we compiled against the sample database use MaxPgcnt. This is the one with the shortest program; the rows that use MaxPgcnt are highlighted.
PRAGMA max_page_count = 1000
| addr | opcode | p1 | p2 | p3 | p4 | p5 |
|---|---|---|---|---|---|---|
| 0 | Init | 0 | 5 | 0 | 0 | |
| 1 | Expire | 1 | 1 | 0 | 0 | |
| 2 | MaxPgcnt | 0 | 3 | 1000 | 0 | |
| 3 | ResultRow | 3 | 1 | 0 | 0 | |
| 4 | Halt | 0 | 0 | 0 | 0 | |
| 5 | Transaction | 0 | 0 | 1 | 0 | 1 |
| 6 | Goto | 0 | 1 | 0 | 0 |
Open it in the EXPLAIN visualizer →
Also in this program: Expire, Goto, Halt, Init, ResultRow, Transaction.
What the SQLite documentation says
Try to set the maximum page count for database P1 to the value in P3. Do not let the maximum page count fall below the current page count and do not change the maximum page count value if P3==0.
Store the maximum page count after the change in register P2.
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.
← MakeRecord · MemMax →