Level / leveldown

Pure C++ Node.js LevelDB binding. An abstract-leveldown compliant store.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snappy compression

kingrupam opened this issue · comments

  1. If disable Snappy compression then will it make my database little bit faster?
    because compress and compress make cost resources.

  2. Will key and value both compressed or only value will compressed?

If disable Snappy compression then will it make my database little bit faster?

Yes, but just a little bit. Snappy is fast.

Will key and value both compressed or only value will compressed?

LevelDB compresses blocks of data, at a higher level.

how much snappy compressed data, if total database size is hundred MB. that is my last question. if possible please tell me the percentage.

Depends on the data, so it's best to test it yourself. For ballpark numbers see https://en.wikipedia.org/wiki/Snappy_(compression) and https://github.com/google/snappy.

Thanks For Your answer