Added comments about FASTBUILD.
authorVadim B. Mikheev
Thu, 24 Apr 1997 16:21:46 +0000 (16:21 +0000)
committerVadim B. Mikheev
Thu, 24 Apr 1997 16:21:46 +0000 (16:21 +0000)
Added #define BTREE_VERSION_1.

src/include/config.h.in

index 481b646199725fcf863dcb8ffe0524d92e9e4b52..8e5b19414573c7eef2fe02e7b0546348a57c55b4 100644 (file)
  */
 /* #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 ([email protected])
+ */
 #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 */