jankotek / JDBM3

Embedded Key Value Java Database
367 stars 94 forks source link

A suggestion: can like "LevevDB" way, so that the database is composed of many small files, reducing the risk of loss. #62

Closed wjw465150 closed 12 years ago

wjw465150 commented 12 years ago

A suggestion: can like "LevevDB" way, so that the database is composed of many small files, reducing the risk of loss.

jankotek commented 12 years ago

Not a chance. Heaving large amount of files slows down write operations, as calling sync() on large number of files is slow. Also JDBM have very little redundancies, so risk of corruption of entire store is high, even with small data loss.

You may implement this on your own by extending 'Store'. It should be soon part of public API. But I will not integrate such patch.