From: Konstantin Osipov <kostja.osipov@gmail.com>
To: Mergen Imeev <imeevma@tarantool.org>
Cc: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>,
tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH v4 2/2] box: introduce _vsession_settings sysview
Date: Wed, 27 Nov 2019 14:05:05 +0300 [thread overview]
Message-ID: <20191127110505.GA9233@atlas> (raw)
In-Reply-To: <20191127105206.GA16682@tarantool.org>
* Mergen Imeev <imeevma@tarantool.org> [19/11/27 13:56]:
> Hi! Thanks for the review. However, I think you are a little
> wrong. We do not save these settings anywhere except for the
> struct session. When a user reads from the space, it creates
> tuples on the fly and passes them to the user. All of this can
> actually be read from the commit-message:
>
>
> box: introduce _vsession_settings sysview
>
> This patch creates the _vsession_settings sysview. This sysview
> contains names and values of the session settings.
>
> This sysview creates tuples on the fly using its own get() and
> create_iterator() methods. This allows us to get a tuple without
> having to save it anywhere. But this means that every time we get
> a tuple from this system view, it is a new tuple, even if they
> look the same:
>
> tarantool> v = box.space._vsession_settings
> tarantool> v:get({'sql_default_engine'}) ~= v:get({'sql_default_engine'})
> ---
> - true
> ...
>
> Currently, only SQL settings can be extracted from this sysview,
> since the only session settings are SQL settings.
Where do you get the value from to build the tuple?
Where is it stored? If it is stored per-session, I mean
struct-session, then my comment is still valid.
I'm not challenging the implementation details (I did not read the
patch indeed), I am challenging the semantics.
The view is called _vsession_settings, so I assume its state
(semantically) is local to each database connection, to which I
objected.
--
Konstantin Osipov, Moscow, Russia
next prev parent reply other threads:[~2019-11-27 11:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-23 12:11 [Tarantool-patches] [PATCH v4 0/2] " imeevma
2019-11-23 12:11 ` [Tarantool-patches] [PATCH v4 1/2] sysview: make get() and create_iterator() methods virtual imeevma
2019-11-23 12:12 ` [Tarantool-patches] [PATCH v4 2/2] box: introduce _vsession_settings sysview imeevma
2019-11-24 15:27 ` Vladislav Shpilevoy
2019-11-27 9:53 ` Mergen Imeev
2019-11-27 23:14 ` Vladislav Shpilevoy
2019-11-26 21:12 ` Konstantin Osipov
2019-11-27 5:15 ` Kirill Yukhin
2019-11-27 10:34 ` Konstantin Osipov
2019-11-27 10:52 ` Mergen Imeev
2019-11-27 11:05 ` Konstantin Osipov [this message]
2019-11-27 11:18 ` Mergen Imeev
2019-11-27 11:37 ` Konstantin Osipov
2019-11-27 12:12 ` Mergen Imeev
2019-11-28 8:46 [Tarantool-patches] [PATCH v4 0/2] Introduce " imeevma
2019-11-28 8:46 ` [Tarantool-patches] [PATCH v4 2/2] box: introduce " imeevma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191127110505.GA9233@atlas \
--to=kostja.osipov@gmail.com \
--cc=imeevma@tarantool.org \
--cc=tarantool-patches@dev.tarantool.org \
--cc=v.shpilevoy@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH v4 2/2] box: introduce _vsession_settings sysview' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox