diff options
author | dan <dan@noemail.net> | 2012-08-06 18:50:11 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2012-08-06 18:50:11 +0000 |
commit | 428c218c90cce7bbff210a19ee01ecdc01511076 (patch) | |
tree | 70a786e7696405b715daf18df4c858e25427a467 /src/sqliteInt.h | |
parent | 8c5287ec73659e982e593c339b92e6ea2f5ff3d1 (diff) | |
download | sqlite-428c218c90cce7bbff210a19ee01ecdc01511076.tar.gz sqlite-428c218c90cce7bbff210a19ee01ecdc01511076.zip |
When reusing pages as part of creating a new index, allocate the leaves from each free-list trunk page in ascending order, instead of trying to maximize localization for each individual allocation. This increases the chance that pages will be written to disk in ascending order by a large CREATE INDEX statement, improving overall performance.
FossilOrigin-Name: d045f8b2d44e388d8c4549ff02d4ca7eff4e2038
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index c525ebd16..b3cdb2363 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -2317,6 +2317,8 @@ struct AuthContext { #define OPFLAG_CLEARCACHE 0x20 /* Clear pseudo-table cache in OP_Column */ #define OPFLAG_LENGTHARG 0x40 /* OP_Column only used for length() */ #define OPFLAG_TYPEOFARG 0x80 /* OP_Column only used for typeof() */ +#define OPFLAG_BULKCSR 0x01 /* OP_Open** used to open bulk cursor */ +#define OPFLAG_P2ISREG 0x02 /* P2 to OP_Open** is a register number */ /* * Each trigger present in the database schema is stored as an instance of |