reduce default datapage_size to 1 (4096) to avoid useless seeks for small values

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@1234 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
sears 2010-10-05 16:23:31 +00:00
parent f9a1f411e1
commit b9dd11a7e4

View file

@ -33,7 +33,8 @@ public:
//
// 6GB ~= 100B * 500 GB / (datapage_size * 4KB)
// (100B * 500GB) / (6GB * 4KB) = 2.035
logtable(pageid_t internal_region_size = 1000, pageid_t datapage_region_size = 10000, pageid_t datapage_size = 2);
// RCS: Set this to 1 so that we do (on average) one seek per b-tree read.
logtable(pageid_t internal_region_size = 1000, pageid_t datapage_region_size = 10000, pageid_t datapage_size = 1);
~logtable();