Does LMDB support multiple keys to same value mapping?
问题 is it possible to have multiple keys mapping to the same value? If not, is there a work around for this feature? 回答1: It isn't possible. One workaround that I use is to have the value on the second key be a pointer to the primary key. That is, the value of the second key is the primary key. In particular, I make a secondary-keys table (or "Named Database" in lmdb speak) where all the values are primary keys in the primary table. If you look further into other database this is exactly how they