This discussion is archived
1 Reply Latest reply: May 9, 2013 10:07 AM by greybird RSS

Does DBD uses padding?

1008026 Newbie
Currently Being Moderated
Hi all, I'm quite new in DBD. I will give my first steps using DPL features of BDB JE.

I was researching in several NoSql technologies and for example MongoDB has a concept of padding, so when you store an entity it automatically adds extra bytes, this way if you update the entity it can use padding bytes for store new data, avoiding the task of moving whole entity into disk.

Does DBD has this kind of feature?
  • 1. Re: Does DBD uses padding?
    greybird Expert
    Currently Being Moderated
    No, BDB JE does not add padding. I don't know what the MongoDB optimization is about, but I assume from your description it is to allow overwriting a record on disk when it is updated and its size has grown. This doesn't apply to BDB JE, since it always appends data to the end of a file -- it never overwrites. It uses a no-overwrite, append-only log structured storage system. This is described in the documentation.

    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points