문제

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