Tuning Krati for low numbers of keys

23 views
Skip to first unread message

Willie

unread,
Mar 4, 2011, 4:41:13 PM3/4/11
to Krati
Hi,

I'm attempting to improve the performance on Krati for lower numbers
of keys - 100k or so. I'm currently using:

new DynamicDataStore(
path,
InitialLevel = 4,
SegmentFileSize = 64,
new MemorySegmentFactory()
);

The keys are 40 bytes and the values are usually not more than 4k
bytes.

Anyone have any thoughts? Thanks!

Best,
Willie

Jingwei

unread,
Mar 4, 2011, 5:42:12 PM3/4/11
to Krati
Hi willie,

You can try the following if you have a roughly fixed number of keys.

new StaticDataStore(path,
1000000, /* capacity 1Million */
1000, /* updateBatchSize */
5, /* numSyncBatched */
64, /*segmentFileSizeMB */
new MemorySegmentFactory())

Thanks.

-jingwei
Reply all
Reply to author
Forward
0 new messages