[tarantool-patches] Re: [PATCH v3 2/3] box: run check constraint tests on space alter

  • From: Kirill Shcherbatov <kshcherbatov@xxxxxxxxxxxxx>
  • To: tarantool-patches@xxxxxxxxxxxxx, Konstantin Osipov <kostja@xxxxxxxxxxxxx>, "n.pettik" <korablev@xxxxxxxxxxxxx>
  • Date: Mon, 13 May 2019 10:09:55 +0300

To be honest, I don’t get what Konstantin really meant in his next letter.
I’m ok with your approach.

What is it that is unclear?

It's better to fetch the bound field upon first access.
Most paths of the CHECK constraint may not touch most of the
fields.

As far as I understand, Kostya wants something like binding on
demand for VDBE; maybe something like new op

"OP_Fetch | struct tuple * | fieldno" =

static inline const char *
tuple_field(struct tuple *tuple, uint32_t fieldno)
+
result cache in VDBE

Other related posts: