From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E048327B1B for ; Thu, 21 Feb 2019 06:10:52 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aBd4YW3Gp9ht for ; Thu, 21 Feb 2019 06:10:52 -0500 (EST) Received: from smtp34.i.mail.ru (smtp34.i.mail.ru [94.100.177.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id A0B7021BA5 for ; Thu, 21 Feb 2019 06:10:52 -0500 (EST) Received: from [185.6.245.178] (port=55038 helo=atlas.local) by smtp34.i.mail.ru with esmtpa (envelope-from ) id 1gwmFf-0007Xa-6v for tarantool-patches@freelists.org; Thu, 21 Feb 2019 14:10:51 +0300 Date: Thu, 21 Feb 2019 14:10:51 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH 07/12] vinyl: sanitize full/empty key stmt detection Message-ID: <20190221111051.GG3872@chai> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org * Vladimir Davydov [19/02/21 13:31]: > Historically, we use tuple_field_count to check whether a statement > represents an empty key (match all) or a full key (point lookup): if > the number of fields in a tuple is greater than or equal to the number > of parts in a key definition, it can be used as a full key; if the > number of fields is zero, then the statement represents an empty key. I don't understand the purpose of this patch yet. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov