File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 282
282
*/
283
283
/* #define PSQL_ALWAYS_GET_PASSWORDS */
284
284
285
- /* Undocumented "features"? */
285
+ /*
286
+ * Use btree bulkload code:
287
+ * this code is moderately slow (~10% slower) compared to the regular
288
+ * btree (insertion) build code on sorted or well-clustered data. on
289
+ * random data, however, the insertion build code is unusable -- the
290
+ * difference on a 60MB heap is a factor of 15 because the random
291
+ * probes into the btree thrash the buffer pool.
292
+ *
293
+ * Great thanks to Paul M. Aoki (aoki@CS.Berkeley.EDU)
294
+ */
286
295
#define FASTBUILD /* access/nbtree/nbtsort.c */
287
296
297
+ /*
298
+ * BTREE_VERSION_1: we must guarantee that all tuples in A LEVEL
299
+ * are unique, not in ALL INDEX. So, we can use bti_itup->t_tid
300
+ * as unique identifier for a given index tuple (logical position
301
+ * within a level) and take off bti_oid & bti_dummy (8 bytes total)
302
+ * from btree items.
303
+ */
304
+ #define BTREE_VERSION_1
305
+
288
306
#endif /* CONFIG_H */
You can’t perform that action at this time.
0 commit comments