Hi Julien,
thanks for the kind words.
The overhead is 21 bytes per batch plus 9 bytes per item stored into
the batch: so, if a batch has 2 items, the total overhead will be 21 +
9 + 9.
If you make lots of small writes, it certainly makes sense to batch
them as much as possible, even if this will have durability
implications, and if your writes are just a couple of bytes long, the
overhead would be sensible in any case.
There is no easy solution there: maybe you could think about how to
store them together by the application side, and then write into the
journal.
Hope that helps, feel free to get back with more questions.
Cheers,
Sergio B.
On Thu, Jan 17, 2013 at 4:11 AM, Julien Eluard <
julien...@gmail.com> wrote:
> Hi,
>
> any idea what is the overhead in size on disk per write?
> Does that make sense to write lots of small byte arrays (couple bytes)?
>
> PS: just started using Journal.IO and I am very impressed so far!
>
> Thanks,
> Julien
--
Sergio Bossa
http://www.linkedin.com/in/sergiob