From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 4 Apr 2019 15:08:59 +0300 From: Vladimir Davydov Subject: Re: [PATCH 04/13] vinyl: store tuple comparison hints in tx read set Message-ID: <20190404120858.7oivak3nmak4qtvl@esperanza> References: <20190404114232.GC28969@chai> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190404114232.GC28969@chai> To: Konstantin Osipov Cc: tarantool-patches@freelists.org List-ID: On Thu, Apr 04, 2019 at 02:42:32PM +0300, Konstantin Osipov wrote: > * Vladimir Davydov [19/04/02 20:35]: > > This patch incorporates tuple comparison hints into the transaction > > read set. Now, beside a statement, each read interval also stores hints > > of boundary statements, which are used in all comparison operations. > > > > Apart from speeding up lookups, this is also needed for multikey index > > support, because multikey indexes will reuse hints to store offsets of > > indexed array entries. > > OK to push. > > > --- a/src/box/vy_read_set.h > > +++ b/src/box/vy_read_set.h > > @@ -39,6 +39,7 @@ > > #define RB_COMPACT 1 > > #include > > > > +#include "key_def.h" > > Isn't it better to define hint_t in tuple_compare.h to avoid extra > includes? Makes sense. I'll move it in v2.