diff options
author | drh <drh@noemail.net> | 2007-03-29 05:51:49 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2007-03-29 05:51:49 +0000 |
commit | e4d90813075a8e86d04f7e0fc7e3d9f6a7977f68 (patch) | |
tree | 79eb0d99ae767dfbdcdb959c1f7f8afb33a44233 /src/sqliteInt.h | |
parent | f1d68b30965c54bf8dc5e1335fb9761ac137d879 (diff) | |
download | sqlite-e4d90813075a8e86d04f7e0fc7e3d9f6a7977f68.tar.gz sqlite-e4d90813075a8e86d04f7e0fc7e3d9f6a7977f68.zip |
Change BtreeMoveto so that it can be biased to the right or to the center.
Use a right bias when appending and a center bias when searching. This
gives about a 15% reduction in calls to sqlite3VdbeRecordCompare. (CVS 3741)
FossilOrigin-Name: ad4a6b1a91bcefd8a4c75e8dc99c1153c72c31a3
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 354e242e9..71c21eac2 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -11,7 +11,7 @@ ************************************************************************* ** Internal interface definitions for SQLite. ** -** @(#) $Id: sqliteInt.h,v 1.546 2007/03/28 14:30:07 drh Exp $ +** @(#) $Id: sqliteInt.h,v 1.547 2007/03/29 05:51:49 drh Exp $ */ #ifndef _SQLITEINT_H_ #define _SQLITEINT_H_ @@ -1376,6 +1376,7 @@ struct AuthContext { #define OPFLAG_NCHANGE 1 /* Set to update db->nChange */ #define OPFLAG_LASTROWID 2 /* Set to update db->lastRowid */ #define OPFLAG_ISUPDATE 4 /* This OP_Insert is an sql UPDATE */ +#define OPFLAG_APPEND 8 /* This is likely to be an append */ /* * Each trigger present in the database schema is stored as an instance of @@ -1692,7 +1693,7 @@ void sqlite3GenerateRowDelete(sqlite3*, Vdbe*, Table*, int, int); void sqlite3GenerateRowIndexDelete(Vdbe*, Table*, int, char*); void sqlite3GenerateIndexKey(Vdbe*, Index*, int); void sqlite3GenerateConstraintChecks(Parse*,Table*,int,char*,int,int,int,int); -void sqlite3CompleteInsertion(Parse*, Table*, int, char*, int, int, int); +void sqlite3CompleteInsertion(Parse*, Table*, int, char*, int, int, int, int); void sqlite3OpenTableAndIndices(Parse*, Table*, int, int); void sqlite3BeginWriteOperation(Parse*, int, int); Expr *sqlite3ExprDup(Expr*); |