Hi,
By the way, about compacting a store, I think I understand now the reason why the file does not shrink.
I guess you didn't wait 45 seconds :-) I don't blame you, as you couldn't possibly have known, and I forgot about that as well.
I understand it might be a bit strange to wait for such a long time before overwriting old data or truncating the file. But the alternative is to call fsync, which doesn't always work reliably. And is very slow if it does work.
Maybe fsync could be called, multiple times to just make sure, when closing the store. This is something to consider.
Regards,
Thomas