-
We use FasterKv successfully for a LRU cache and we have significant amounts of data stored on disk. The data stored is mostly very small chunks, so that compressing these individually does not yield good results. However, many of the chunks are very similar, thus compression of our Faster logs would be quite efficient in terms of space: On a small test instance we have compressed 16.5 GB to 2.5GB just using NTFS compression. We wonder, however, if this is something which would be OK to be used in production or not? Are there issues to be expected? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It should be fine to use any compression. We have users in production that add CRC etc. at the IDevice level, so I don't see why compression would be any different. You just need to adhere to the API precisely. |
Beta Was this translation helpful? Give feedback.
-
I see, thanks for the clarification. On Windows, FASTER uses LocalStorageDevice by default, which uses sector aligned writes (via windows file APIs, overlapped asynchronous IO) which may not work with NTFS compression. However, you can instead use ManagedLocalStorageDevice as your device, that should be fine as it simply uses standard .NET file APIs. This is the device used by default on Linux as well. |
Beta Was this translation helpful? Give feedback.
I see, thanks for the clarification. On Windows, FASTER uses LocalStorageDevice by default, which uses sector aligned writes (via windows file APIs, overlapped asynchronous IO) which may not work with NTFS compression. However, you can instead use ManagedLocalStorageDevice as your device, that should be fine as it simply uses standard .NET file APIs. This is the device used by default on Linux as well.