lmdb-zero icon indicating copy to clipboard operation
lmdb-zero copied to clipboard

Default behavior of Put

Open pakipaki2000 opened this issue 6 years ago • 1 comments

Hi,

I'm sorry, I've read your whole doc but I don't understand the exact behavior regarding Updates. When I update data using: lmdb_zero::put

Will it insert them by default in double or just replace them?

Thanks again

pakipaki2000 avatar Apr 13 '19 04:04 pakipaki2000

Based on the docs, I would expect that it creates or overwrites the key if the database was not created with duplicates enabled, and it creates or appends to the key if the database was created with duplicates enabled, based on the presence of the two flags that disable those behaviours.

AltSysrq avatar Apr 16 '19 04:04 AltSysrq