I am inserting records in Kyoto TreeDB. The key is simply a counter which I increment and the value is fixed.

After 100 million records, insertion gradually keeps slowing down. Has anyone tried to insert more records in Kyoto Cabinet?

有帮助吗?

解决方案

You're probably getting hash collisions. It will put records into an overflow area if that happens. I believe that degenerates to a searched list.

其他提示

HashDB is more memory efficient than TreeDB. Since you are using TreeDB you may want to tinker with the cache option to keep insertions fast.

Did you increase bnum and msiz accordingly?

I had very poor insert performance with a too low msiz value.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top