In my Use Case, I need to delete a Bin from a record if the content of that Bin is no longer needed. It is a Bin with 1~3KB of bytes. The purpose is to let the memory of deleted Bin can be freed/reused (In-Memory mode).
1 Like
Is as_record_set_nil() to set a Bin’s value as as_nil for this purpose?
Yes. In the C client, using the as_record_set_nil()
will cause the bin to be removed from the record.
In the other client libraries (languages), there are similar concepts for removing bins: null in Node.js, or None in Python, nil in Go, etc.
This should be documented in the API docs and in the client manual. I will see to it that it does.
1 Like