OpenRiak / riak_kv

Riak Key/Value Store
0 stars 0 forks source link

Replication objects and sub-binaries #37

Open martinsumner opened 3 months ago

martinsumner commented 3 months ago

Buckets and Keys are pattern matched in nextgenrepl replication binaries - so that they be treated within the memory management as sub-binaries. A reference will be kept for the Bucket/Key - potentially until the Bucket/Key is persisted to a L0 file - but this means that a reference to the replicated binary must be kept.

It would be more efficient to binary:copy/1 the Type/Bucket/Key when extracting so that the full replication object can be de-referenced once it has been decoded.