[tarantool-patches] Re: [PATCH 3/8] vinyl: do not use column mask as trigger for turning REPLACE into INSERT

  • From: Konstantin Osipov <kostja@xxxxxxxxxxxxx>
  • To: tarantool-patches@xxxxxxxxxxxxx
  • Date: Tue, 23 Oct 2018 10:37:44 +0300

* Vladimir Davydov <vdavydov.dev@xxxxxxxxx> [18/10/15 10:15]:

If a REPLACE statement was generated by an UPDATE operation that updated
a column indexed by a secondary key, we can turn it into INSERT when the
secondary index is dumped, because there can't be an older statement
with the same key other than DELETE. Currently, we use the statement
column mask to detect such REPLACEs in the write iterator, but I'm
planning to get rid of vy_stmt_column_mask so let's instead introduce
a new statement flag to mark such REPLACEs.

OK to push.
---
 src/box/vinyl.c             |  3 +++
 src/box/vy_stmt.c           |  8 ++++++++
 src/box/vy_stmt.h           | 11 ++++++++++-
 src/box/vy_write_iterator.c |  5 ++---
 4 files changed, 23 insertions(+), 4 deletions(-)

-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov

Other related posts: