The target size is approximately the minimum size of a file. Increasing it will not create small files. I suspect what's going on here is either compression is enabled and doing a really good job, or more likely, the database is being opened and closed frequently.
On August 6, 2015 8:49:23 AM EDT, Edouard Alligand <
edoua...@gmail.com> wrote:
>Why would you want to change kTargetFileSize? Also keep in mind it's
>the
>"target" size.
>
>On Wed, Aug 5, 2015 at 6:29 AM, 孙伟 <
hill.s...@gmail.com> wrote:
>
>>
>> any one can give me some tips on how to emerge this small files,
>> Thanks a lot!
>>
>> 在 2015年7月27日星期一 UTC+8下午11:47:45,孙伟写道:
>>
>>> Hi,
>>>
>>> i set
>>>
>>>
>>>
>>> *kTargetFileSize to 32M, so the sst file should be 32M.when i insert
>a
>>> lot of data to leveldb, i found a lot of sst file is 32Mand a great
>number
>>> of file is 1k, 2k, or 16kwhat's the problem, can someone tell how to
>>> compact the small sst into large sst file?*
--
Sent from my phone. Please excuse my brevity.