1

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?

bazzinga
  • 219
  • 1
  • 8

3 Answers3

1

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.

Jay
  • 13,803
  • 4
  • 42
  • 69
  • I don't see any option to tune TreeDB for higher number of records. I want to insert 1 billion records. – bazzinga Jul 03 '12 at 19:23
0

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.

fjxx
  • 945
  • 10
  • 20
  • ok. I will see into that. But I want to insert 1 billion records & in HashDB when I increase the bucket size to 2 billion, it takes a lot of time to insert. – bazzinga Jul 03 '12 at 19:22
0

Did you increase bnum and msiz accordingly?

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

MechanTOurS
  • 1,485
  • 2
  • 15
  • 18