diff options
| author | Vadim B. Mikheev | 1997-04-24 16:21:46 +0000 |
|---|---|---|
| committer | Vadim B. Mikheev | 1997-04-24 16:21:46 +0000 |
| commit | 2bbc2e2c0d748439398d5f60d7f7a6b4a1782c50 (patch) | |
| tree | 48c18224fab7e26322f3f2b7bfbb0a1b3d58bc45 /src/include/config.h.in | |
| parent | 67712200f1148ff0a3fb807c74d12859a4e6d898 (diff) | |
Added comments about FASTBUILD.
Added #define BTREE_VERSION_1.
Diffstat (limited to 'src/include/config.h.in')
| -rw-r--r-- | src/include/config.h.in | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/include/config.h.in b/src/include/config.h.in index 481b6461997..8e5b1941457 100644 --- a/src/include/config.h.in +++ b/src/include/config.h.in @@ -282,7 +282,25 @@ */ /* #define PSQL_ALWAYS_GET_PASSWORDS */ -/* Undocumented "features"? */ +/* + * Use btree bulkload code: + * this code is moderately slow (~10% slower) compared to the regular + * btree (insertion) build code on sorted or well-clustered data. on + * random data, however, the insertion build code is unusable -- the + * difference on a 60MB heap is a factor of 15 because the random + * probes into the btree thrash the buffer pool. + * + * Great thanks to Paul M. Aoki (aoki@CS.Berkeley.EDU) + */ #define FASTBUILD /* access/nbtree/nbtsort.c */ +/* + * BTREE_VERSION_1: we must guarantee that all tuples in A LEVEL + * are unique, not in ALL INDEX. So, we can use bti_itup->t_tid + * as unique identifier for a given index tuple (logical position + * within a level) and take off bti_oid & bti_dummy (8 bytes total) + * from btree items. + */ +#define BTREE_VERSION_1 + #endif /* CONFIG_H */ |
