You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When I already have a tuple of box_tuple_t type that I got from tarantool interface I want to be able to supply it as an argument to box_insert, box_replace. So that it will not be needed to first offload tuple contents to buffer and only then call box_*. Offloading to buffer causes performance and memory overhead.
Describe the solution you'd like
To add function:
int box_replace_tuple(uint32_t space_id, box_tuple_t *tuple, box_tuple_t **result)
Is your feature request related to a problem? Please describe.
When I already have a tuple of
box_tuple_t
type that I got from tarantool interface I want to be able to supply it as an argument tobox_insert
,box_replace
. So that it will not be needed to first offload tuple contents to buffer and only then call box_*. Offloading to buffer causes performance and memory overhead.Describe the solution you'd like
To add function:
int box_replace_tuple(uint32_t space_id, box_tuple_t *tuple, box_tuple_t **result)
In addition to already existing:
int box_replace(uint32_t space_id, const char *tuple, const char *tuple_end, box_tuple_t **result)
Similarly do it for
box_insert
Describe alternatives you've considered
Change the interface of
box_replace
. But I don't see the need to break compatibility over this.Additional context
box_replace docs
Definition of Done
box_insert_tuple
andbox_replace_tuple
functions added to C APIThe text was updated successfully, but these errors were encountered: