example4   [plain text]


# A single private environment, with two databases, a primary and secondary
# index pair.
environment env1 {
	home TESTDIR
	cachesize 2 0 4			# 2GB, 4 caches

	database db1 {			# Primary database.
		type btree

		transaction
		pagesize 32768
	}
	database db2 {
		type btree

		# The secondary is a btree database, the primary is "db1".
		# The secondary key is a 4-byte unsigned int, starting at
		# byte offset 10.
		primary db1
		key_type u_int32_t
		secondary_offset 10 4

		transaction
		pagesize 32768
	}
}