hyc (Howard Chu)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Sunday

  • Clear sailing ahead.

User Details

User Since
Apr 10 2019, 2:29 PM (263 w, 1 d)
Availability
Available

Recent Activity

Oct 17 2019

hyc added a comment to T9805: Overhaul Baloo database scheme.

hurikhan's suggestion makes good sense.

Oct 17 2019, 12:04 AM · Baloo

May 25 2019

hyc added a comment to T9805: Overhaul Baloo database scheme.

Had planned to release LMDB 1.0 this summer, but I've been a bit too busy with other things to get all the feature branches merged. Sadly, I would advise you not to hold your breath.

May 25 2019, 4:41 PM · Baloo

Apr 11 2019

hyc added a comment to T9805: Overhaul Baloo database scheme.
In T9805#181577, @bruns wrote:
In T9805#181576, @hyc wrote:

The MDB_val for the data contains a size. Divide by the size of a single DUPFIXED item to get the number of items returned in that page.

Yes, makes sense. For put, the second MDB_val is required as the fixed val size is not known to LMDB until the first put?

Apr 11 2019, 6:54 AM · Baloo
hyc added a comment to T9805: Overhaul Baloo database scheme.
In T9805#181560, @bruns wrote:
In T9805#181517, @hyc wrote:

Fwiw, @poboiko is correct here.

Just because you hide the RMW, it does not mean it does not happen. For LMDB, duplicate keys are just a plain array, see e.g. MDB_APPENDDUP in http://www.lmdb.tech/doc/group__mdb.html#ga4fa8573d9236d54687c61827ebf8cac0

Nothing on that link implies use of an array anywhere.

MDB_GET_MULTIPLE returns "up to a page of duplicate data items from current cursor position", so apparently the values for DUPFIXED are packed, or is the page created during the mdb_cursor_get call?

Apr 11 2019, 1:10 AM · Baloo

Apr 10 2019

hyc added a comment to T9805: Overhaul Baloo database scheme.

Fwiw, @poboiko is correct here.

Apr 10 2019, 2:32 PM · Baloo