pmem / pmemkv

Key/Value Datastore for Persistent Memory
https://pmem.io
Other
398 stars 119 forks source link

Implement clear() and destroy() method #662

Open igchor opened 4 years ago

igchor commented 4 years ago

clear - https://github.com/pmem/pmemkv/issues/57 destroy - needed to free the engine itself - especially important when using oids

igchor commented 4 years ago

After implementing destroy() we should extend tests as in: https://github.com/pmem/libpmemobj-cpp/issues/617

karczex commented 3 years ago
lukaszstolarczuk commented 2 years ago

copy pasted from 57:

Efficient way to clear all persisted keys & their values

More important when using device DAX (https://github.com/pmem/pmemkv/issues/60), since formatting the entire device >takes a long time. Truncating can be much faster since only the used portion of the device needs to be reset.