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
If the return_raw flag is set, net.box will return response data
wrapped in a msgpack object (see msgpack.object()) instead of decoding
it to Lua. This can be useful when a response is supposed to be passed
through without decoding or with partial decoding - creating a msgpack
object can reduce pressure on the Lua garbage collector in this case.
The option is ignored for methods that return nil (begin, commit, rollback, upsert, prepare will return nil even if return_raw is
set) and for index.count (it returns a number). For execute, the
option is applied only to data (rows) while metadata is decoded
irrespective of the value of return_raw.
Requested by @locker in tarantool/tarantool@4423456.
The text was updated successfully, but these errors were encountered:
xuniq
changed the title
Document return_raw net.box option
[3pt] Document return_raw net.box option
Jan 10, 2022
xuniq
added
feature
A new functionality
reference
[location] Tarantool manual, Reference part
server
[area] Task relates to Tarantool's server (core) functionality
labels
Jan 10, 2022
Document
return_raw
net.box option.Product: Tarantool
Since: 2.10.0-beta2
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/
SME: @ locker
Peer reviewer: @
Details
If the
return_raw
flag is set, net.box will return response datawrapped in a msgpack object (see
msgpack.object()
) instead of decodingit to Lua. This can be useful when a response is supposed to be passed
through without decoding or with partial decoding - creating a msgpack
object can reduce pressure on the Lua garbage collector in this case.
Example:
The option is ignored for methods that return nil (
begin
,commit
,rollback
,upsert
,prepare
will return nil even ifreturn_raw
isset) and for
index.count
(it returns a number). Forexecute
, theoption is applied only to data (
rows
) while metadata is decodedirrespective of the value of
return_raw
.Requested by @locker in tarantool/tarantool@4423456.
The text was updated successfully, but these errors were encountered: